diff options
author | Seth Chisamore <schisamo@opscode.com> | 2012-10-30 10:39:35 -0400 |
---|---|---|
committer | Seth Chisamore <schisamo@opscode.com> | 2012-10-30 10:39:35 -0400 |
commit | 24dc69a9a97e82a6e4207de68d6dcc664178249b (patch) | |
tree | 19bb289c9f88b4bbab066bc56b95d6d222fd5c35 /spec/data/cookbooks | |
parent | 9348c1c9c80ee757354d624b7dc1b78ebc7605c4 (diff) | |
download | chef-24dc69a9a97e82a6e4207de68d6dcc664178249b.tar.gz |
[OC-3564] move core Chef to the repo root \o/ \m/
The opscode/chef repository now only contains the core Chef library code
used by chef-client, knife and chef-solo!
Diffstat (limited to 'spec/data/cookbooks')
26 files changed, 95 insertions, 0 deletions
diff --git a/spec/data/cookbooks/angrybash/recipes/default.rb b/spec/data/cookbooks/angrybash/recipes/default.rb new file mode 100644 index 0000000000..458a29103e --- /dev/null +++ b/spec/data/cookbooks/angrybash/recipes/default.rb @@ -0,0 +1,8 @@ +bash "go off the rails" do + code <<-END + for i in localhost 127.0.0.1 #{Socket.gethostname()} + do + echo "grant all on *.* to root@'$i' identified by 'a_password'; flush privileges;" | mysql -u root -h 127.0.0.1 + done + END +end diff --git a/spec/data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl b/spec/data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl new file mode 100644 index 0000000000..6cce6229c4 --- /dev/null +++ b/spec/data/cookbooks/apache2/files/default/apache2_module_conf_generate.pl @@ -0,0 +1,2 @@ +# apache2_module_conf_generate.pl +# this is just here for show. diff --git a/spec/data/cookbooks/apache2/recipes/default.rb b/spec/data/cookbooks/apache2/recipes/default.rb new file mode 100644 index 0000000000..c2fa53be32 --- /dev/null +++ b/spec/data/cookbooks/apache2/recipes/default.rb @@ -0,0 +1,3 @@ +# +# Nothing ot see here +#
\ No newline at end of file diff --git a/spec/data/cookbooks/borken/recipes/default.rb b/spec/data/cookbooks/borken/recipes/default.rb new file mode 100644 index 0000000000..caf40b3974 --- /dev/null +++ b/spec/data/cookbooks/borken/recipes/default.rb @@ -0,0 +1,2 @@ +a cat walked on the keyboard one day... +(*&(*&(*&(*&(*^%$%^%#^^&(*)(*{}}}}}}}}+++++===))))))
\ No newline at end of file diff --git a/spec/data/cookbooks/borken/templates/default/borken.erb b/spec/data/cookbooks/borken/templates/default/borken.erb new file mode 100644 index 0000000000..cbb32c1cd7 --- /dev/null +++ b/spec/data/cookbooks/borken/templates/default/borken.erb @@ -0,0 +1,2 @@ +a cat walked on the keyboard one day... +<%= (*&)(*^^^^*******++_+_--- }}}}]]]end)%>
\ No newline at end of file diff --git a/spec/data/cookbooks/chefignore b/spec/data/cookbooks/chefignore new file mode 100644 index 0000000000..cfd4e65832 --- /dev/null +++ b/spec/data/cookbooks/chefignore @@ -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 diff --git a/spec/data/cookbooks/java/files/default/java.response b/spec/data/cookbooks/java/files/default/java.response new file mode 100644 index 0000000000..eb4aa3c124 --- /dev/null +++ b/spec/data/cookbooks/java/files/default/java.response @@ -0,0 +1,2 @@ +# Hi, I'm pretending to be the preseed file for installing the Sun JDK on debian +# or Ubuntu
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/attributes/default.rb b/spec/data/cookbooks/openldap/attributes/default.rb new file mode 100644 index 0000000000..d0756f17e3 --- /dev/null +++ b/spec/data/cookbooks/openldap/attributes/default.rb @@ -0,0 +1,16 @@ +chef_env ||= nil +case chef_env +when "prod" + default[:ldap_server] = "ops1prod" + default[:ldap_basedn] = "dc=hjksolutions,dc=com" + default[:ldap_replication_password] = "yes" +when "corp" + default[:ldap_server] = "ops1prod" + default[:ldap_basedn] = "dc=hjksolutions,dc=com" + default[:ldap_replication_password] = "yougotit" +else + + default[:ldap_server] = "ops1prod" + default[:ldap_basedn] = "dc=hjksolutions,dc=com" + default[:ldap_replication_password] = "forsure" +end diff --git a/spec/data/cookbooks/openldap/attributes/smokey.rb b/spec/data/cookbooks/openldap/attributes/smokey.rb new file mode 100644 index 0000000000..4489c6a7ac --- /dev/null +++ b/spec/data/cookbooks/openldap/attributes/smokey.rb @@ -0,0 +1 @@ +default[:smokey] = "robinson" diff --git a/spec/data/cookbooks/openldap/definitions/client.rb b/spec/data/cookbooks/openldap/definitions/client.rb new file mode 100644 index 0000000000..ac81831d11 --- /dev/null +++ b/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/spec/data/cookbooks/openldap/definitions/server.rb b/spec/data/cookbooks/openldap/definitions/server.rb new file mode 100644 index 0000000000..2df437aa84 --- /dev/null +++ b/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/spec/data/cookbooks/openldap/files/default/.dotfile b/spec/data/cookbooks/openldap/files/default/.dotfile new file mode 100644 index 0000000000..35ae928f91 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/.dotfile @@ -0,0 +1 @@ +I am here to test .dotfiles work in file directories. diff --git a/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa b/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa new file mode 100644 index 0000000000..20a3ea410a --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa @@ -0,0 +1 @@ +FAKE KEY
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir b/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir new file mode 100644 index 0000000000..f44a956c15 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/.a_dotdir/.a_dotfile_in_a_dotdir @@ -0,0 +1 @@ +this is a dotfile in a dotdir diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt new file mode 100644 index 0000000000..7632730912 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt @@ -0,0 +1,3 @@ +# remote directory +# file specificity: default +# relpath: remotedir/remote_dir_file1.txt
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt new file mode 100644 index 0000000000..fab0433922 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt @@ -0,0 +1,3 @@ +# remote directory +# file specificity: default +# relpath: remotedir/remote_dir_file2.txt
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile new file mode 100644 index 0000000000..9a2b2a4b5f --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/.a_dotfile @@ -0,0 +1 @@ +this is a file with a name beginning with a . dot diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt new file mode 100644 index 0000000000..611294cb81 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt @@ -0,0 +1,3 @@ +# remote directory +# file specificity: default +# relpath: remotedir/remotesubdir/remote_dir_file1.txt
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt new file mode 100644 index 0000000000..e0396542a4 --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt @@ -0,0 +1,3 @@ +# remote directory +# file specificity: default +# relpath: remotedir/remotesubdir/remote_dir_file2.txt
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt b/spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt new file mode 100644 index 0000000000..bc47369aad --- /dev/null +++ b/spec/data/cookbooks/openldap/files/default/remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt @@ -0,0 +1,3 @@ +# remote directory +# file specificity: default +# relpath: remotedir/subdir_with_no_file_just_a_subsubdir/the_subsubdir/some_file.txt diff --git a/spec/data/cookbooks/openldap/recipes/default.rb b/spec/data/cookbooks/openldap/recipes/default.rb new file mode 100644 index 0000000000..0ac8a9bb4b --- /dev/null +++ b/spec/data/cookbooks/openldap/recipes/default.rb @@ -0,0 +1,3 @@ +cat "blanket" do + pretty_kitty true +end diff --git a/spec/data/cookbooks/openldap/recipes/gigantor.rb b/spec/data/cookbooks/openldap/recipes/gigantor.rb new file mode 100644 index 0000000000..b450eca7cd --- /dev/null +++ b/spec/data/cookbooks/openldap/recipes/gigantor.rb @@ -0,0 +1,3 @@ +cat "blanket" do + pretty_kitty false +end diff --git a/spec/data/cookbooks/openldap/recipes/one.rb b/spec/data/cookbooks/openldap/recipes/one.rb new file mode 100644 index 0000000000..d2d3cfd409 --- /dev/null +++ b/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/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb b/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb new file mode 100644 index 0000000000..af82f1d96c --- /dev/null +++ b/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb @@ -0,0 +1 @@ +slappiness is <%= node[:slappiness] -%>
\ No newline at end of file diff --git a/spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb b/spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb new file mode 100644 index 0000000000..e0041c9f99 --- /dev/null +++ b/spec/data/cookbooks/openldap/templates/default/openldap_variable_stuff.conf.erb @@ -0,0 +1 @@ +super secret is <%= @secret -%> diff --git a/spec/data/cookbooks/openldap/templates/default/test.erb b/spec/data/cookbooks/openldap/templates/default/test.erb new file mode 100644 index 0000000000..f39fa7da89 --- /dev/null +++ b/spec/data/cookbooks/openldap/templates/default/test.erb @@ -0,0 +1 @@ +We could be diving for pearls! |