diff options
author | jkeiser <jkeiser@opscode.com> | 2012-12-20 16:42:02 -0800 |
---|---|---|
committer | jkeiser <jkeiser@opscode.com> | 2012-12-20 16:42:02 -0800 |
commit | 255ef3250bc2604284f56845e027200856a81d78 (patch) | |
tree | efb60fb34c049c6699f0a471655a4309c7a7dec0 /playground | |
parent | f0de46d1436c5ab858070d2db20d1bea9c61749a (diff) | |
download | chef-zero-255ef3250bc2604284f56845e027200856a81d78.tar.gz |
Create playground for easy testing of Chef server
Diffstat (limited to 'playground')
-rw-r--r-- | playground/.chef/knife.rb | 5 | ||||
-rw-r--r-- | playground/cookbooks/blah/metadata.rb | 3 | ||||
-rw-r--r-- | playground/cookbooks/blah/recipes/default.rb | 1 | ||||
-rw-r--r-- | playground/cookbooks/blah/templates/default/hi | 1 | ||||
-rw-r--r-- | playground/cookbooks/blork/recipes/default.rb | 1 | ||||
-rw-r--r-- | playground/cookbooks/blork/templates/default/hi | 1 | ||||
-rw-r--r-- | playground/data_bags/foo/bar.json | 1 | ||||
-rw-r--r-- | playground/data_bags/foo/baz.json | 1 | ||||
-rw-r--r-- | playground/data_bags/foo/blarghle.json | 1 | ||||
-rw-r--r-- | playground/data_bags/foom/x.json | 5 | ||||
-rw-r--r-- | playground/data_bags/widdle/blank.json | 1 | ||||
-rw-r--r-- | playground/data_bags/widdle/wow.json | 1 | ||||
-rw-r--r-- | playground/environments/desert.json | 13 | ||||
-rw-r--r-- | playground/environments/rainforest.json | 13 | ||||
-rw-r--r-- | playground/environments/semi_arid_plains.json | 13 | ||||
-rw-r--r-- | playground/nodes/blah.json | 5 | ||||
-rw-r--r-- | playground/nodes/blarrrrgh.json | 5 | ||||
-rw-r--r-- | playground/nodes/boxer.json | 5 | ||||
-rw-r--r-- | playground/nodes/camel.json | 5 | ||||
-rw-r--r-- | playground/nodes/monkey.json | 5 |
20 files changed, 86 insertions, 0 deletions
diff --git a/playground/.chef/knife.rb b/playground/.chef/knife.rb new file mode 100644 index 0000000..bc76282 --- /dev/null +++ b/playground/.chef/knife.rb @@ -0,0 +1,5 @@ +chef_repo = File.join(File.dirname(__FILE__), "..") +chef_server_url "http://127.0.0.1:8889" +node_name "admin" +client_key false +cookbook_path "#{chef_repo}/cookbooks" diff --git a/playground/cookbooks/blah/metadata.rb b/playground/cookbooks/blah/metadata.rb new file mode 100644 index 0000000..a6ca124 --- /dev/null +++ b/playground/cookbooks/blah/metadata.rb @@ -0,0 +1,3 @@ +version "1.5.1" + +depends "blork" diff --git a/playground/cookbooks/blah/recipes/default.rb b/playground/cookbooks/blah/recipes/default.rb new file mode 100644 index 0000000..947d931 --- /dev/null +++ b/playground/cookbooks/blah/recipes/default.rb @@ -0,0 +1 @@ +template "/tmp/hii" diff --git a/playground/cookbooks/blah/templates/default/hi b/playground/cookbooks/blah/templates/default/hi new file mode 100644 index 0000000..1937459 --- /dev/null +++ b/playground/cookbooks/blah/templates/default/hi @@ -0,0 +1 @@ +helloooooooooo world diff --git a/playground/cookbooks/blork/recipes/default.rb b/playground/cookbooks/blork/recipes/default.rb new file mode 100644 index 0000000..947d931 --- /dev/null +++ b/playground/cookbooks/blork/recipes/default.rb @@ -0,0 +1 @@ +template "/tmp/hii" diff --git a/playground/cookbooks/blork/templates/default/hi b/playground/cookbooks/blork/templates/default/hi new file mode 100644 index 0000000..12d88af --- /dev/null +++ b/playground/cookbooks/blork/templates/default/hi @@ -0,0 +1 @@ +hhellooooooo world diff --git a/playground/data_bags/foo/bar.json b/playground/data_bags/foo/bar.json new file mode 100644 index 0000000..8c90f5a --- /dev/null +++ b/playground/data_bags/foo/bar.json @@ -0,0 +1 @@ +{ "id": "bar" } diff --git a/playground/data_bags/foo/baz.json b/playground/data_bags/foo/baz.json new file mode 100644 index 0000000..5419fb9 --- /dev/null +++ b/playground/data_bags/foo/baz.json @@ -0,0 +1 @@ +{ "id": "baz" } diff --git a/playground/data_bags/foo/blarghle.json b/playground/data_bags/foo/blarghle.json new file mode 100644 index 0000000..a93c258 --- /dev/null +++ b/playground/data_bags/foo/blarghle.json @@ -0,0 +1 @@ +{ "id": "blarghle", "name": "sldfkja" } diff --git a/playground/data_bags/foom/x.json b/playground/data_bags/foom/x.json new file mode 100644 index 0000000..e1b7d13 --- /dev/null +++ b/playground/data_bags/foom/x.json @@ -0,0 +1,5 @@ +{ + "id": "x", + "foo": "barr", + "wow": "ee" +} diff --git a/playground/data_bags/widdle/blank.json b/playground/data_bags/widdle/blank.json new file mode 100644 index 0000000..460bafc --- /dev/null +++ b/playground/data_bags/widdle/blank.json @@ -0,0 +1 @@ +{ "id": "blank" } diff --git a/playground/data_bags/widdle/wow.json b/playground/data_bags/widdle/wow.json new file mode 100644 index 0000000..7fd3b97 --- /dev/null +++ b/playground/data_bags/widdle/wow.json @@ -0,0 +1 @@ +{ "id": "wow" } diff --git a/playground/environments/desert.json b/playground/environments/desert.json new file mode 100644 index 0000000..dccc695 --- /dev/null +++ b/playground/environments/desert.json @@ -0,0 +1,13 @@ +{ + "name": "desert", + "default_attributes": { + }, + "json_class": "Chef::Environment", + "description": "This is your just desert", + "cookbook_versions": { + "bork": "> 2.0" + }, + "override_attributes": { + }, + "chef_type": "environment" +} diff --git a/playground/environments/rainforest.json b/playground/environments/rainforest.json new file mode 100644 index 0000000..19d173d --- /dev/null +++ b/playground/environments/rainforest.json @@ -0,0 +1,13 @@ +{ + "name": "rainforest", + "description": "Aaaaagh! Save me!", + "cookbook_versions": { + }, + "json_class": "Chef::Environment", + "chef_type": "environment", + "default_attributes": { + "a": "b" + }, + "override_attributes": { + } +} diff --git a/playground/environments/semi_arid_plains.json b/playground/environments/semi_arid_plains.json new file mode 100644 index 0000000..feb8245 --- /dev/null +++ b/playground/environments/semi_arid_plains.json @@ -0,0 +1,13 @@ +{ + "name": "semi_arid_plains", + "description": "The plains, they are so arid", + "cookbook_versions": { + }, + "json_class": "Chef::Environment", + "chef_type": "environment", + "default_attributes": { + "derp": true + }, + "override_attributes": { + } +}
\ No newline at end of file diff --git a/playground/nodes/blah.json b/playground/nodes/blah.json new file mode 100644 index 0000000..669e1af --- /dev/null +++ b/playground/nodes/blah.json @@ -0,0 +1,5 @@ +{ + "chef_type": "node", + "name": "blah", + "chef_environment": "_default" +} diff --git a/playground/nodes/blarrrrgh.json b/playground/nodes/blarrrrgh.json new file mode 100644 index 0000000..358e4d5 --- /dev/null +++ b/playground/nodes/blarrrrgh.json @@ -0,0 +1,5 @@ +{ + "chef_type": "node", + "name": "blarrrrgh", + "chef_environment": "_default" +}
\ No newline at end of file diff --git a/playground/nodes/boxer.json b/playground/nodes/boxer.json new file mode 100644 index 0000000..7643fa7 --- /dev/null +++ b/playground/nodes/boxer.json @@ -0,0 +1,5 @@ +{ + "chef_type": "node", + "name": "boxer", + "chef_environment": "_default" +}
\ No newline at end of file diff --git a/playground/nodes/camel.json b/playground/nodes/camel.json new file mode 100644 index 0000000..c69d048 --- /dev/null +++ b/playground/nodes/camel.json @@ -0,0 +1,5 @@ +{ + "chef_type": "node", + "name": "camel", + "chef_environment": "desert" +}
\ No newline at end of file diff --git a/playground/nodes/monkey.json b/playground/nodes/monkey.json new file mode 100644 index 0000000..3170252 --- /dev/null +++ b/playground/nodes/monkey.json @@ -0,0 +1,5 @@ +{ + "chef_type": "node", + "name": "monkey", + "chef_environment": "rainforest" +}
\ No newline at end of file |