diff options
Diffstat (limited to 'chef/spec/data')
30 files changed, 170 insertions, 0 deletions
diff --git a/chef/spec/data/bad-config.rb b/chef/spec/data/bad-config.rb new file mode 100644 index 0000000000..5477a69366 --- /dev/null +++ b/chef/spec/data/bad-config.rb @@ -0,0 +1 @@ +monkey_soup("tastes nice")
\ No newline at end of file diff --git a/chef/spec/data/compile/cookbooks/test/attributes/george.rb b/chef/spec/data/compile/cookbooks/test/attributes/george.rb new file mode 100644 index 0000000000..5df9567761 --- /dev/null +++ b/chef/spec/data/compile/cookbooks/test/attributes/george.rb @@ -0,0 +1 @@ +george "washington"
\ No newline at end of file diff --git a/chef/spec/data/compile/cookbooks/test/definitions/new_cat.rb b/chef/spec/data/compile/cookbooks/test/definitions/new_cat.rb new file mode 100644 index 0000000000..a49b53348c --- /dev/null +++ b/chef/spec/data/compile/cookbooks/test/definitions/new_cat.rb @@ -0,0 +1,5 @@ +define :new_cat, :is_pretty => true do + cat "#{params[:name]}" do + pretty_kitty params[:is_pretty] + end +end diff --git a/chef/spec/data/compile/cookbooks/test/recipes/default.rb b/chef/spec/data/compile/cookbooks/test/recipes/default.rb new file mode 100644 index 0000000000..d769dc826d --- /dev/null +++ b/chef/spec/data/compile/cookbooks/test/recipes/default.rb @@ -0,0 +1,5 @@ + +cat "einstein" do + pretty_kitty true +end + diff --git a/chef/spec/data/compile/cookbooks/test/recipes/one.rb b/chef/spec/data/compile/cookbooks/test/recipes/one.rb new file mode 100644 index 0000000000..7795cc1d4a --- /dev/null +++ b/chef/spec/data/compile/cookbooks/test/recipes/one.rb @@ -0,0 +1,7 @@ +cat "loulou" do + pretty_kitty true +end + +new_cat "birthday" do + pretty_kitty false +end diff --git a/chef/spec/data/compile/cookbooks/test/recipes/two.rb b/chef/spec/data/compile/cookbooks/test/recipes/two.rb new file mode 100644 index 0000000000..01def1b2ac --- /dev/null +++ b/chef/spec/data/compile/cookbooks/test/recipes/two.rb @@ -0,0 +1,7 @@ +cat "peanut" do + pretty_kitty true +end + +new_cat "fat peanut" do + pretty_kitty false +end diff --git a/chef/spec/data/compile/nodes/compile.rb b/chef/spec/data/compile/nodes/compile.rb new file mode 100644 index 0000000000..84d52bb1cf --- /dev/null +++ b/chef/spec/data/compile/nodes/compile.rb @@ -0,0 +1,5 @@ +## +# Nodes should have a unique name +## +name "compile" +recipes "test", "test::one", "test::two" diff --git a/chef/spec/data/config.rb b/chef/spec/data/config.rb new file mode 100644 index 0000000000..0b3340ce57 --- /dev/null +++ b/chef/spec/data/config.rb @@ -0,0 +1,6 @@ +# +# Sample Chef Config File +# + +cookbook_path "/etc/chef/cookbook", "/etc/chef/site-cookbook" + diff --git a/chef/spec/data/cookbooks/openldap/attributes/default.rb b/chef/spec/data/cookbooks/openldap/attributes/default.rb new file mode 100644 index 0000000000..204ae9ed77 --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/attributes/default.rb @@ -0,0 +1,15 @@ +chef_env ||= nil +case chef_env +when "prod" + ldap_server "ops1prod" + ldap_basedn "dc=hjksolutions,dc=com" + ldap_replication_password "yes" +when "corp" + ldap_server "ops1prod" + ldap_basedn "dc=hjksolutions,dc=com" + ldap_replication_password "yougotit" +else + ldap_server "ops1prod" + ldap_basedn "dc=hjksolutions,dc=com" + ldap_replication_password "forsure" +end diff --git a/chef/spec/data/cookbooks/openldap/attributes/smokey.rb b/chef/spec/data/cookbooks/openldap/attributes/smokey.rb new file mode 100644 index 0000000000..63f5b56c7f --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/attributes/smokey.rb @@ -0,0 +1 @@ +smokey "robinson"
\ No newline at end of file diff --git a/chef/spec/data/cookbooks/openldap/definitions/client.rb b/chef/spec/data/cookbooks/openldap/definitions/client.rb new file mode 100644 index 0000000000..ac81831d11 --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/definitions/client.rb @@ -0,0 +1,5 @@ +define :openldap_client, :mothra => "a big monster" do + cat "#{params[:name]}" do + pretty_kitty true + end +end diff --git a/chef/spec/data/cookbooks/openldap/definitions/server.rb b/chef/spec/data/cookbooks/openldap/definitions/server.rb new file mode 100644 index 0000000000..2df437aa84 --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/definitions/server.rb @@ -0,0 +1,5 @@ +define :openldap_server, :mothra => "a big monster" do + cat "#{params[:name]}" do + pretty_kitty true + end +end diff --git a/chef/spec/data/cookbooks/openldap/ignore b/chef/spec/data/cookbooks/openldap/ignore new file mode 100644 index 0000000000..e96f4e7df4 --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/ignore @@ -0,0 +1,6 @@ +# +# The ignore file allows you to skip files in cookbooks with the same name that appear +# later in the search path. +# + +recipes/ignoreme.rb
\ No newline at end of file diff --git a/chef/spec/data/cookbooks/openldap/recipes/default.rb b/chef/spec/data/cookbooks/openldap/recipes/default.rb new file mode 100644 index 0000000000..0ac8a9bb4b --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/recipes/default.rb @@ -0,0 +1,3 @@ +cat "blanket" do + pretty_kitty true +end diff --git a/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb b/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb new file mode 100644 index 0000000000..b450eca7cd --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/recipes/gigantor.rb @@ -0,0 +1,3 @@ +cat "blanket" do + pretty_kitty false +end diff --git a/chef/spec/data/cookbooks/openldap/recipes/one.rb b/chef/spec/data/cookbooks/openldap/recipes/one.rb new file mode 100644 index 0000000000..e1c3cff92e --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/recipes/one.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com default" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/chef/spec/data/cookbooks/openldap/templates/default/test.erb b/chef/spec/data/cookbooks/openldap/templates/default/test.erb new file mode 100644 index 0000000000..f39fa7da89 --- /dev/null +++ b/chef/spec/data/cookbooks/openldap/templates/default/test.erb @@ -0,0 +1 @@ +We could be diving for pearls! diff --git a/chef/spec/data/definitions/test.rb b/chef/spec/data/definitions/test.rb new file mode 100644 index 0000000000..b0d0effc27 --- /dev/null +++ b/chef/spec/data/definitions/test.rb @@ -0,0 +1,5 @@ +define :rico_suave, :rich => "smooth" do + zen_master "test" do + something "#{params[:rich]}" + end +end
\ No newline at end of file diff --git a/chef/spec/data/kitchen/openldap/attributes/default.rb b/chef/spec/data/kitchen/openldap/attributes/default.rb new file mode 100644 index 0000000000..d208959475 --- /dev/null +++ b/chef/spec/data/kitchen/openldap/attributes/default.rb @@ -0,0 +1,3 @@ +# +# Nothing to see here, move along +# diff --git a/chef/spec/data/kitchen/openldap/attributes/robinson.rb b/chef/spec/data/kitchen/openldap/attributes/robinson.rb new file mode 100644 index 0000000000..9d6b44d464 --- /dev/null +++ b/chef/spec/data/kitchen/openldap/attributes/robinson.rb @@ -0,0 +1,3 @@ +# +# Smokey lives here +#
\ No newline at end of file diff --git a/chef/spec/data/kitchen/openldap/definitions/client.rb b/chef/spec/data/kitchen/openldap/definitions/client.rb new file mode 100644 index 0000000000..d4c2263b54 --- /dev/null +++ b/chef/spec/data/kitchen/openldap/definitions/client.rb @@ -0,0 +1,3 @@ +# +# A sad client +# diff --git a/chef/spec/data/kitchen/openldap/definitions/drewbarrymore.rb b/chef/spec/data/kitchen/openldap/definitions/drewbarrymore.rb new file mode 100644 index 0000000000..510f0c35da --- /dev/null +++ b/chef/spec/data/kitchen/openldap/definitions/drewbarrymore.rb @@ -0,0 +1,3 @@ +# +# Was in people magazine this month... +#
\ No newline at end of file diff --git a/chef/spec/data/kitchen/openldap/recipes/gigantor.rb b/chef/spec/data/kitchen/openldap/recipes/gigantor.rb new file mode 100644 index 0000000000..70a41960eb --- /dev/null +++ b/chef/spec/data/kitchen/openldap/recipes/gigantor.rb @@ -0,0 +1,3 @@ +cat "blanket" do + pretty_kitty true +end
\ No newline at end of file diff --git a/chef/spec/data/kitchen/openldap/recipes/ignoreme.rb b/chef/spec/data/kitchen/openldap/recipes/ignoreme.rb new file mode 100644 index 0000000000..15095986c6 --- /dev/null +++ b/chef/spec/data/kitchen/openldap/recipes/ignoreme.rb @@ -0,0 +1,3 @@ +# +# this file will never be seen +#
\ No newline at end of file diff --git a/chef/spec/data/kitchen/openldap/recipes/woot.rb b/chef/spec/data/kitchen/openldap/recipes/woot.rb new file mode 100644 index 0000000000..44893dae36 --- /dev/null +++ b/chef/spec/data/kitchen/openldap/recipes/woot.rb @@ -0,0 +1,3 @@ +# +# Such a funny word.. +# diff --git a/chef/spec/data/nodes/default.rb b/chef/spec/data/nodes/default.rb new file mode 100644 index 0000000000..e1c3cff92e --- /dev/null +++ b/chef/spec/data/nodes/default.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com default" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/chef/spec/data/nodes/test.example.com.rb b/chef/spec/data/nodes/test.example.com.rb new file mode 100644 index 0000000000..9c374395bf --- /dev/null +++ b/chef/spec/data/nodes/test.example.com.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/chef/spec/data/nodes/test.rb b/chef/spec/data/nodes/test.rb new file mode 100644 index 0000000000..d968816d60 --- /dev/null +++ b/chef/spec/data/nodes/test.rb @@ -0,0 +1,15 @@ +## +# Nodes should have a unique name +## +name "test.example.com short" + +## +# Nodes can set arbitrary arguments +## +sunshine "in" +something "else" + +## +# Nodes should have recipes +## +recipes "operations-master", "operations-monitoring" diff --git a/chef/spec/data/recipes/test.rb b/chef/spec/data/recipes/test.rb new file mode 100644 index 0000000000..1c94b917f0 --- /dev/null +++ b/chef/spec/data/recipes/test.rb @@ -0,0 +1,7 @@ + +file "/etc/nsswitch.conf" do + action "create" + owner "root" + group "root" + mode 0644 +end diff --git a/chef/spec/data/seattle.txt b/chef/spec/data/seattle.txt new file mode 100644 index 0000000000..19f6290939 --- /dev/null +++ b/chef/spec/data/seattle.txt @@ -0,0 +1 @@ +Seattle is a great town. Next time you visit, you should buy me a beer.
\ No newline at end of file |