diff options
Diffstat (limited to 'features/data/cookbooks')
186 files changed, 0 insertions, 2635 deletions
diff --git a/features/data/cookbooks/attribute_include/README.rdoc b/features/data/cookbooks/attribute_include/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/attribute_include/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/attribute_include/attributes/a.rb b/features/data/cookbooks/attribute_include/attributes/a.rb deleted file mode 100644 index ea03d1a275..0000000000 --- a/features/data/cookbooks/attribute_include/attributes/a.rb +++ /dev/null @@ -1,4 +0,0 @@ -include_attribute 'attribute_include::b' -set[:mars_volta] = mars_volta_name -set[:mars_volta_is] = mars_volta_will_be - diff --git a/features/data/cookbooks/attribute_include/attributes/b.rb b/features/data/cookbooks/attribute_include/attributes/b.rb deleted file mode 100644 index bd5e056c04..0000000000 --- a/features/data/cookbooks/attribute_include/attributes/b.rb +++ /dev/null @@ -1,2 +0,0 @@ -set[:mars_volta_name] = 'mars_volta' -set[:mars_volta_will_be] = 'dope' diff --git a/features/data/cookbooks/attribute_include/metadata.rb b/features/data/cookbooks/attribute_include/metadata.rb deleted file mode 100644 index 07c1801d28..0000000000 --- a/features/data/cookbooks/attribute_include/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures recipe_include" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/attribute_include/recipes/default.rb b/features/data/cookbooks/attribute_include/recipes/default.rb deleted file mode 100644 index a211dc5928..0000000000 --- a/features/data/cookbooks/attribute_include/recipes/default.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: recipe_include -# Recipe:: second -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "append to #{node[:tmpdir]}/mars_volta" do - command "echo '#{node.mars_volta} is #{node.mars_volta_is}' >> #{node[:tmpdir]}/mars_volta" -end - diff --git a/features/data/cookbooks/attribute_include_default/README.rdoc b/features/data/cookbooks/attribute_include_default/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/attribute_include_default/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/attribute_include_default/attributes/a.rb b/features/data/cookbooks/attribute_include_default/attributes/a.rb deleted file mode 100644 index 53b60c55de..0000000000 --- a/features/data/cookbooks/attribute_include_default/attributes/a.rb +++ /dev/null @@ -1,5 +0,0 @@ -# should be equivalent to include_attribute 'attribute_include_default::default' -include_attribute 'attribute_include_default' -set[:mars_volta] = mars_volta_name -set[:mars_volta_is] = mars_volta_will_be - diff --git a/features/data/cookbooks/attribute_include_default/attributes/default.rb b/features/data/cookbooks/attribute_include_default/attributes/default.rb deleted file mode 100644 index bd5e056c04..0000000000 --- a/features/data/cookbooks/attribute_include_default/attributes/default.rb +++ /dev/null @@ -1,2 +0,0 @@ -set[:mars_volta_name] = 'mars_volta' -set[:mars_volta_will_be] = 'dope' diff --git a/features/data/cookbooks/attribute_include_default/metadata.rb b/features/data/cookbooks/attribute_include_default/metadata.rb deleted file mode 100644 index 07c1801d28..0000000000 --- a/features/data/cookbooks/attribute_include_default/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures recipe_include" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/attribute_include_default/recipes/default.rb b/features/data/cookbooks/attribute_include_default/recipes/default.rb deleted file mode 100644 index a211dc5928..0000000000 --- a/features/data/cookbooks/attribute_include_default/recipes/default.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: recipe_include -# Recipe:: second -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "append to #{node[:tmpdir]}/mars_volta" do - command "echo '#{node.mars_volta} is #{node.mars_volta_is}' >> #{node[:tmpdir]}/mars_volta" -end - diff --git a/features/data/cookbooks/attribute_settings/README.rdoc b/features/data/cookbooks/attribute_settings/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/attribute_settings/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/attribute_settings/attributes/default.rb b/features/data/cookbooks/attribute_settings/attributes/default.rb deleted file mode 100644 index 735f7c82bf..0000000000 --- a/features/data/cookbooks/attribute_settings/attributes/default.rb +++ /dev/null @@ -1,3 +0,0 @@ -default[:attribute_priority_was] = "came from recipe[attribute_settings] attributes" - - diff --git a/features/data/cookbooks/attribute_settings/default.rb b/features/data/cookbooks/attribute_settings/default.rb deleted file mode 100644 index 9ad0bdd8c6..0000000000 --- a/features/data/cookbooks/attribute_settings/default.rb +++ /dev/null @@ -1 +0,0 @@ -default[:attribute_priority_was] = 0 diff --git a/features/data/cookbooks/attribute_settings/metadata.rb b/features/data/cookbooks/attribute_settings/metadata.rb deleted file mode 100644 index ed2938fa6d..0000000000 --- a/features/data/cookbooks/attribute_settings/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures attribute_settings" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/attribute_settings/recipes/default.rb b/features/data/cookbooks/attribute_settings/recipes/default.rb deleted file mode 100644 index 23aa2e1c51..0000000000 --- a/features/data/cookbooks/attribute_settings/recipes/default.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - diff --git a/features/data/cookbooks/attribute_settings/recipes/default_in_recipe.rb b/features/data/cookbooks/attribute_settings/recipes/default_in_recipe.rb deleted file mode 100644 index 611f00fab9..0000000000 --- a/features/data/cookbooks/attribute_settings/recipes/default_in_recipe.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.default[:attribute_priority_was] = "came from recipe[attribute_settings::default_in_recipe]" - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - - - diff --git a/features/data/cookbooks/attribute_settings_normal/README.rdoc b/features/data/cookbooks/attribute_settings_normal/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/attribute_settings_normal/attributes/.default.rb.swo b/features/data/cookbooks/attribute_settings_normal/attributes/.default.rb.swo Binary files differdeleted file mode 100644 index fc5d646009..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/attributes/.default.rb.swo +++ /dev/null diff --git a/features/data/cookbooks/attribute_settings_normal/attributes/default.rb b/features/data/cookbooks/attribute_settings_normal/attributes/default.rb deleted file mode 100644 index 9a9fabd4ff..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/attributes/default.rb +++ /dev/null @@ -1,2 +0,0 @@ -normal[:attribute_priority_was] = "came from recipe[attribute_settings_normal] attributes" - diff --git a/features/data/cookbooks/attribute_settings_normal/default.rb b/features/data/cookbooks/attribute_settings_normal/default.rb deleted file mode 100644 index 9ad0bdd8c6..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/default.rb +++ /dev/null @@ -1 +0,0 @@ -default[:attribute_priority_was] = 0 diff --git a/features/data/cookbooks/attribute_settings_normal/metadata.rb b/features/data/cookbooks/attribute_settings_normal/metadata.rb deleted file mode 100644 index ed2938fa6d..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures attribute_settings" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/attribute_settings_normal/recipes/.default.rb.swo b/features/data/cookbooks/attribute_settings_normal/recipes/.default.rb.swo Binary files differdeleted file mode 100644 index 369e8d73ce..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/recipes/.default.rb.swo +++ /dev/null diff --git a/features/data/cookbooks/attribute_settings_normal/recipes/.default_in_recipe.rb.swo b/features/data/cookbooks/attribute_settings_normal/recipes/.default_in_recipe.rb.swo Binary files differdeleted file mode 100644 index 5804d58505..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/recipes/.default_in_recipe.rb.swo +++ /dev/null diff --git a/features/data/cookbooks/attribute_settings_normal/recipes/default.rb b/features/data/cookbooks/attribute_settings_normal/recipes/default.rb deleted file mode 100644 index 23aa2e1c51..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/recipes/default.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - diff --git a/features/data/cookbooks/attribute_settings_normal/recipes/normal_in_recipe.rb b/features/data/cookbooks/attribute_settings_normal/recipes/normal_in_recipe.rb deleted file mode 100644 index 5badb699dc..0000000000 --- a/features/data/cookbooks/attribute_settings_normal/recipes/normal_in_recipe.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.normal[:attribute_priority_was] = "came from recipe[attribute_settings_normal::normal_in_recipe]" - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - - - diff --git a/features/data/cookbooks/attribute_settings_override/README.rdoc b/features/data/cookbooks/attribute_settings_override/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/attribute_settings_override/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/attribute_settings_override/attributes/default.rb b/features/data/cookbooks/attribute_settings_override/attributes/default.rb deleted file mode 100644 index a0caa1b4b8..0000000000 --- a/features/data/cookbooks/attribute_settings_override/attributes/default.rb +++ /dev/null @@ -1,2 +0,0 @@ -override[:attribute_priority_was] = "came from recipe[attribute_settings_override] override attributes" - diff --git a/features/data/cookbooks/attribute_settings_override/default.rb b/features/data/cookbooks/attribute_settings_override/default.rb deleted file mode 100644 index 9ad0bdd8c6..0000000000 --- a/features/data/cookbooks/attribute_settings_override/default.rb +++ /dev/null @@ -1 +0,0 @@ -default[:attribute_priority_was] = 0 diff --git a/features/data/cookbooks/attribute_settings_override/metadata.rb b/features/data/cookbooks/attribute_settings_override/metadata.rb deleted file mode 100644 index ed2938fa6d..0000000000 --- a/features/data/cookbooks/attribute_settings_override/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures attribute_settings" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/attribute_settings_override/recipes/default.rb b/features/data/cookbooks/attribute_settings_override/recipes/default.rb deleted file mode 100644 index 23aa2e1c51..0000000000 --- a/features/data/cookbooks/attribute_settings_override/recipes/default.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - diff --git a/features/data/cookbooks/attribute_settings_override/recipes/normal_in_recipe.rb b/features/data/cookbooks/attribute_settings_override/recipes/normal_in_recipe.rb deleted file mode 100644 index 6e7807f073..0000000000 --- a/features/data/cookbooks/attribute_settings_override/recipes/normal_in_recipe.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.override[:attribute_priority_was] = 5 - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - - - diff --git a/features/data/cookbooks/attribute_settings_override/recipes/override_in_recipe.rb b/features/data/cookbooks/attribute_settings_override/recipes/override_in_recipe.rb deleted file mode 100644 index 88a28dce0e..0000000000 --- a/features/data/cookbooks/attribute_settings_override/recipes/override_in_recipe.rb +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) 2009, 2011 Opscode, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.override[:attribute_priority_was] = "came from recipe[attribute_settings_override::override_in_recipe]" - -execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - - - diff --git a/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb b/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb deleted file mode 100644 index 5136e3aa64..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/bad_syntax_notifies.rb +++ /dev/null @@ -1,14 +0,0 @@ - -# Should never be executed, see comment below -execute("echo should-not-execute") - -execute("echo foo") do - # refers to the resource below but the syntax is wrong - # expected behavior is for the reference to be resolved later - # and the notification to work correctly - notifies(:create, /file\[.*notified_file\.txt\]/) #regex isn't a valid argument here -end - -file "#{node[:tmpdir]}/notified_file.txt" do - action :nothing -end diff --git a/features/data/cookbooks/delayed_notifications/recipes/default.rb b/features/data/cookbooks/delayed_notifications/recipes/default.rb deleted file mode 100644 index 70d0071bc5..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: delayed_notifications -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb b/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb deleted file mode 100644 index 14d82eef0c..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/forward_references.rb +++ /dev/null @@ -1,10 +0,0 @@ -execute("echo foo") do - # refers to the resource below, which isn't defined yet. - # expected behavior is for the reference to be resolved later - # and the notification to work correctly - notifies(:create, "file[#{node[:tmpdir]}/notified_file.txt]") -end - -file "#{node[:tmpdir]}/notified_file.txt" do - action :nothing -end diff --git a/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb b/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb deleted file mode 100644 index d636611dc0..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/invalid_forward_reference.rb +++ /dev/null @@ -1,16 +0,0 @@ - -# Should never be executed, see comment below -execute("echo should-not-execute") - -execute("echo foo") do - # refers to the resource below, but there is an intentional typo - # expected behavior is for the reference to be resolved *before* - # Chef starts converging resources, so that the above execute - # resource is never called. - # Also, the error message should be helpful. - notifies(:create, "file[#{node[:tmpdir]}/notified_file.txt]") -end - -file "#{node[:tmpdir]}/not-notified_file.txt" do - action :nothing -end diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb deleted file mode 100644 index 9ab2a9a6fe..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_a_single_source.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: delayed_notifications -# Recipe:: notify_a_resource_from_a_single_source -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/notified_file.txt" do - action :nothing -end - -execute "echo foo" do - notifies :create, resources("file[#{node[:tmpdir]}/notified_file.txt]"), :delayed -end diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb deleted file mode 100644 index 74fc68a0f3..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/notify_a_resource_from_multiple_sources.rb +++ /dev/null @@ -1,31 +0,0 @@ -# -# Cookbook Name:: delayed_notifications -# Recipe:: notify_a_resource_from_multiple_sources -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "bob dylan" do - command "echo 'bob dylan' >> #{node[:tmpdir]}/notified_file.txt" - action :nothing -end - -execute "echo foo" do - notifies :run, resources("execute[bob dylan]"), :delayed -end - -execute "echo bar" do - notifies :run, resources("execute[bob dylan]"), :delayed -end diff --git a/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb b/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb deleted file mode 100644 index 3180bbe4c2..0000000000 --- a/features/data/cookbooks/delayed_notifications/recipes/notify_different_resources_for_different_actions.rb +++ /dev/null @@ -1,31 +0,0 @@ -# -# Cookbook Name:: delayed_notifications -# Recipe:: notify_different_resources_for_different_actions -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/notified_file_2.txt" do - action :nothing -end - -file "#{node[:tmpdir]}/notified_file_3.txt" do - action :nothing -end - -execute "echo foo" do - notifies([{resources("file[#{node[:tmpdir]}/notified_file_2.txt]") => [:create, :delayed]}, - {resources("file[#{node[:tmpdir]}/notified_file_3.txt]") => [:create, :delayed]}]) -end diff --git a/features/data/cookbooks/deploy/recipes/callbacks.rb b/features/data/cookbooks/deploy/recipes/callbacks.rb deleted file mode 100644 index 7d19c90446..0000000000 --- a/features/data/cookbooks/deploy/recipes/callbacks.rb +++ /dev/null @@ -1,78 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -%w{ log pids system config sqlite deploy}.each do |dir| - directory "#{node[:tmpdir]}/deploy/shared/#{dir}" do - recursive true - mode "0775" - end -end - - -template "#{node[:tmpdir]}/deploy/shared/config/database.yml" do - source "database.yml.erb" - mode "0664" -end - -template "#{node[:tmpdir]}/deploy/shared/config/app_config.yml" do - source "app_config.yml.erb" - mode "0664" -end - -template "#{node[:tmpdir]}/deploy/shared/deploy/before_migrate.rb" do - source "sneaky_before_migrate_hook.rb.erb" - mode "0644" -end - -template "#{node[:tmpdir]}/deploy/shared/deploy/before_symlink.rb" do - source "sneaky_before_symlink_hook.rb.erb" - mode "0644" -end - -template "#{node[:tmpdir]}/deploy/shared/deploy/before_restart.rb" do - source "sneaky_before_restart_hook.rb.erb" - mode "0644" -end - -template "#{node[:tmpdir]}/deploy/shared/deploy/after_restart.rb" do - source "sneaky_after_restart_hook.rb.erb" - mode "0644" -end - -file "#{node[:tmpdir]}/deploy/shared/sqlite/production.sqlite3" do - mode "0664" -end - -deploy "#{node[:tmpdir]}/deploy" do - repo "#{node[:tmpdir]}/gitrepo/myapp/" - environment "RAILS_ENV" => "production" - revision "HEAD" - action :deploy - migration_command "rake db:migrate --trace" - migrate true - restart_command "touch tmp/restart.txt" - create_dirs_before_symlink %w{tmp public config deploy} - symlink_before_migrate "config/database.yml" => "config/database.yml" - - symlinks "system" => "public/system", "pids" => "tmp/pids", "log" => "log", - "deploy/before_migrate.rb" => "deploy/before_migrate.rb", - "deploy/before_symlink.rb" => "deploy/before_symlink.rb", - "deploy/before_restart.rb" => "deploy/before_restart.rb", - "deploy/after_restart.rb" => "deploy/after_restart.rb" -end diff --git a/features/data/cookbooks/deploy/recipes/default.rb b/features/data/cookbooks/deploy/recipes/default.rb deleted file mode 100644 index 39ff3fd040..0000000000 --- a/features/data/cookbooks/deploy/recipes/default.rb +++ /dev/null @@ -1,51 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -%w{ log pids system config sqlite}.each do |dir| - directory "#{node[:tmpdir]}/deploy/shared/#{dir}" do - recursive true - mode "0775" - end -end - - -template "#{node[:tmpdir]}/deploy/shared/config/database.yml" do - source "database.yml.erb" - mode "0664" -end - -template "#{node[:tmpdir]}/deploy/shared/config/app_config.yml" do - source "app_config.yml.erb" - mode "0664" -end - -file "#{node[:tmpdir]}/deploy/shared/sqlite/production.sqlite3" do - mode "0664" -end - -deploy "#{node[:tmpdir]}/deploy" do - repo "#{node[:tmpdir]}/gitrepo/myapp/" - environment "RAILS_ENV" => "production" - revision "HEAD" - action :deploy - migration_command "rake db:migrate --trace" - migrate true - restart_command "touch tmp/restart.txt" -end - diff --git a/features/data/cookbooks/deploy/recipes/deploy_commit1.rb b/features/data/cookbooks/deploy/recipes/deploy_commit1.rb deleted file mode 100644 index f2b28a8874..0000000000 --- a/features/data/cookbooks/deploy/recipes/deploy_commit1.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: deploy_commit1 -# -# Copyright 2010, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -deploy "deploy" do - deploy_to "#{node[:tmpdir]}/deploy" - repo "#{node[:tmpdir]}/test_git_repo" - revision "commit1" - action :deploy -end diff --git a/features/data/cookbooks/deploy/recipes/deploy_commit2.rb b/features/data/cookbooks/deploy/recipes/deploy_commit2.rb deleted file mode 100644 index 87231bb272..0000000000 --- a/features/data/cookbooks/deploy/recipes/deploy_commit2.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: deploy_commit2 -# -# Copyright 2010, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -deploy "deploy" do - deploy_to "#{node[:tmpdir]}/deploy" - repo "#{node[:tmpdir]}/test_git_repo" - revision "commit2" - action :deploy -end diff --git a/features/data/cookbooks/deploy/recipes/embedded_recipe_callbacks.rb b/features/data/cookbooks/deploy/recipes/embedded_recipe_callbacks.rb deleted file mode 100644 index 56804eaf50..0000000000 --- a/features/data/cookbooks/deploy/recipes/embedded_recipe_callbacks.rb +++ /dev/null @@ -1,70 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: embedded_recipe_callbacks -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -%w{ log pids system config sqlite deploy}.each do |dir| - directory "#{node[:tmpdir]}/deploy/shared/#{dir}" do - recursive true - mode "0775" - end -end - - -template "#{node[:tmpdir]}/deploy/shared/config/database.yml" do - source "database.yml.erb" - mode "0664" -end - -file "#{node[:tmpdir]}/deploy/shared/sqlite/production.sqlite3" do - mode "0664" -end - -timestamped_deploy "#{node[:tmpdir]}/deploy" do - repo "#{node[:tmpdir]}/gitrepo/myapp/" - environment "RAILS_ENV" => "production" - revision "HEAD" - action :deploy - migration_command "rake db:migrate --trace" - migrate true - - # Callback awesomeness: - before_migrate do - current_release = release_path - - directory "#{current_release}/deploy" do - mode "0755" - end - - # creates a callback for before_symlink - template "#{current_release}/deploy/before_symlink_callback.rb" do - source "embedded_recipe_before_symlink.rb.erb" - mode "0644" - end - - end - - before_symlink "deploy/before_symlink_callback.rb" - - restart do - current_release = release_path - file "#{release_path}/tmp/restart.txt" do - mode "0644" - end - end - -end diff --git a/features/data/cookbooks/deploy/recipes/revision_deploy.rb b/features/data/cookbooks/deploy/recipes/revision_deploy.rb deleted file mode 100644 index 666d70df2f..0000000000 --- a/features/data/cookbooks/deploy/recipes/revision_deploy.rb +++ /dev/null @@ -1,51 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -%w{ log pids system config sqlite}.each do |dir| - directory "#{node[:tmpdir]}/deploy/shared/#{dir}" do - recursive true - mode "0775" - end -end - - -template "#{node[:tmpdir]}/deploy/shared/config/database.yml" do - source "database.yml.erb" - mode "0664" -end - -template "#{node[:tmpdir]}/deploy/shared/config/app_config.yml" do - source "app_config.yml.erb" - mode "0664" -end - -file "#{node[:tmpdir]}/deploy/shared/sqlite/production.sqlite3" do - mode "0664" -end - -deploy_revision "#{node[:tmpdir]}/deploy" do - repo "#{node[:tmpdir]}/gitrepo/myapp/" - environment "RAILS_ENV" => "production" - revision "HEAD" - action :deploy - migration_command "rake db:migrate --trace" - migrate true - restart_command "touch tmp/restart.txt" -end - diff --git a/features/data/cookbooks/deploy/recipes/revision_rollback.rb b/features/data/cookbooks/deploy/recipes/revision_rollback.rb deleted file mode 100644 index faa39c2f42..0000000000 --- a/features/data/cookbooks/deploy/recipes/revision_rollback.rb +++ /dev/null @@ -1,28 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -deploy_revision "#{node[:tmpdir]}/deploy" do - repo "#{node[:tmpdir]}/gitrepo/myapp/" - environment "RAILS_ENV" => "production" - revision "HEAD" - action :rollback - migration_command "rake db:migrate --trace" - migrate true - restart_command "touch tmp/restart.txt" -end diff --git a/features/data/cookbooks/deploy/recipes/rollback_commit2.rb b/features/data/cookbooks/deploy/recipes/rollback_commit2.rb deleted file mode 100644 index 08720964b8..0000000000 --- a/features/data/cookbooks/deploy/recipes/rollback_commit2.rb +++ /dev/null @@ -1,24 +0,0 @@ -# -# Cookbook Name:: deploy -# Recipe:: rollback_commit2 -# -# Copyright 2010, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -deploy "deploy" do - deploy_to "#{node[:tmpdir]}/deploy" - repo "#{node[:tmpdir]}/test_git_repo" - action :rollback -end diff --git a/features/data/cookbooks/deploy/templates/default/app_config.yml.erb b/features/data/cookbooks/deploy/templates/default/app_config.yml.erb deleted file mode 100644 index 40bb98ee93..0000000000 --- a/features/data/cookbooks/deploy/templates/default/app_config.yml.erb +++ /dev/null @@ -1,23 +0,0 @@ ---- -default: &default - name: masquerade - host: localhost:3000 - use_ssl: false - time_zone: Berlin - email: info@your.domain.com - session: - session_key: openidserver_session_id - secret: replacethiswithyourowntopsecretsessionsecretsothatnoonewillknowit - mailer: - address: localhost - domain: your.domain.com - from: info@your.domain.com - -development: - <<: *default - -test: - <<: *default - -production: - <<: *default diff --git a/features/data/cookbooks/deploy/templates/default/database.yml.erb b/features/data/cookbooks/deploy/templates/default/database.yml.erb deleted file mode 100644 index 1793d95f55..0000000000 --- a/features/data/cookbooks/deploy/templates/default/database.yml.erb +++ /dev/null @@ -1,18 +0,0 @@ -development: - adapter: sqlite3 - database: dev.sqlite3 - encoding: utf8 - -test: - adapter: sqlite3 - host: localhost - database: masquerade_test - username: masquerade - password: - encoding: utf8 - -production: - adapter: sqlite3 - host: localhost - database: db/production.sqlite3 - encoding: utf8
\ No newline at end of file diff --git a/features/data/cookbooks/deploy/templates/default/embedded_recipe_before_symlink.rb.erb b/features/data/cookbooks/deploy/templates/default/embedded_recipe_before_symlink.rb.erb deleted file mode 100644 index 8b489f15ac..0000000000 --- a/features/data/cookbooks/deploy/templates/default/embedded_recipe_before_symlink.rb.erb +++ /dev/null @@ -1,4 +0,0 @@ -current_release = release_path -file "#{current_release}/app/before_symlink_was_here.txt" do - mode "0644" -end
\ No newline at end of file diff --git a/features/data/cookbooks/deploy/templates/default/sneaky_after_restart_hook.rb.erb b/features/data/cookbooks/deploy/templates/default/sneaky_after_restart_hook.rb.erb deleted file mode 100644 index 90f93f4183..0000000000 --- a/features/data/cookbooks/deploy/templates/default/sneaky_after_restart_hook.rb.erb +++ /dev/null @@ -1,4 +0,0 @@ -hook_name = "after_restart" -::File.open(@release_path + "/app/#{hook_name}", "a+") do |fd| - fd.puts( {:hook_name => hook_name, :env => @configuration[:environment]}.to_json ) -end
\ No newline at end of file diff --git a/features/data/cookbooks/deploy/templates/default/sneaky_before_migrate_hook.rb.erb b/features/data/cookbooks/deploy/templates/default/sneaky_before_migrate_hook.rb.erb deleted file mode 100644 index 59a251e48d..0000000000 --- a/features/data/cookbooks/deploy/templates/default/sneaky_before_migrate_hook.rb.erb +++ /dev/null @@ -1,2 +0,0 @@ -# NOOP -# This file isn't symlinked in yet when its callback would be run.
\ No newline at end of file diff --git a/features/data/cookbooks/deploy/templates/default/sneaky_before_restart_hook.rb.erb b/features/data/cookbooks/deploy/templates/default/sneaky_before_restart_hook.rb.erb deleted file mode 100644 index d514674d4e..0000000000 --- a/features/data/cookbooks/deploy/templates/default/sneaky_before_restart_hook.rb.erb +++ /dev/null @@ -1,4 +0,0 @@ -hook_name = "before_restart" -::File.open(@release_path + "/app/#{hook_name}", "a+") do |fd| - fd.puts( {:hook_name => hook_name, :env => @configuration[:environment]}.to_json ) -end
\ No newline at end of file diff --git a/features/data/cookbooks/deploy/templates/default/sneaky_before_symlink_hook.rb.erb b/features/data/cookbooks/deploy/templates/default/sneaky_before_symlink_hook.rb.erb deleted file mode 100644 index de5fd98645..0000000000 --- a/features/data/cookbooks/deploy/templates/default/sneaky_before_symlink_hook.rb.erb +++ /dev/null @@ -1,2 +0,0 @@ -# NOOP -# This file isn't symlinked to the correct path when its callback fires
\ No newline at end of file diff --git a/features/data/cookbooks/directory_provider/recipes/create.rb b/features/data/cookbooks/directory_provider/recipes/create.rb deleted file mode 100644 index 7cc7f4ce84..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/create.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: directory_provider -# Recipe:: create -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/isis" do - mode "755" - owner "nobody" - action :create -end - diff --git a/features/data/cookbooks/directory_provider/recipes/default.rb b/features/data/cookbooks/directory_provider/recipes/default.rb deleted file mode 100644 index 41f6776dfc..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: directory_provider -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/directory_provider/recipes/delete.rb b/features/data/cookbooks/directory_provider/recipes/delete.rb deleted file mode 100644 index f9a81e8e2c..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/delete.rb +++ /dev/null @@ -1,29 +0,0 @@ -# -# Cookbook Name:: directory_provider -# Recipe:: delete -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -r = directory "#{node[:tmpdir]}/particles" do - action :nothing -end -r.run_action(:create) - -directory "#{node[:tmpdir]}/particles" do - action :delete -end - - diff --git a/features/data/cookbooks/directory_provider/recipes/delete_nonexistent.rb b/features/data/cookbooks/directory_provider/recipes/delete_nonexistent.rb deleted file mode 100644 index ed89bfe3d0..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/delete_nonexistent.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: directory_ -# Recipe:: delete_nonexistent -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/particles" do - action :delete -end - diff --git a/features/data/cookbooks/directory_provider/recipes/owner_update.rb b/features/data/cookbooks/directory_provider/recipes/owner_update.rb deleted file mode 100644 index 7cfb0618f5..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/owner_update.rb +++ /dev/null @@ -1,31 +0,0 @@ -# -# Cookbook Name:: directory_provider -# Recipe:: create -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/isis" do - mode "755" - owner "nobody" - action :create -end - -directory "#{node[:tmpdir]}/isis" do - mode "755" - owner "root" - action :create -end - diff --git a/features/data/cookbooks/directory_provider/recipes/set_the_accessibility_of_a_created_directory.rb b/features/data/cookbooks/directory_provider/recipes/set_the_accessibility_of_a_created_directory.rb deleted file mode 100644 index 913a11a62b..0000000000 --- a/features/data/cookbooks/directory_provider/recipes/set_the_accessibility_of_a_created_directory.rb +++ /dev/null @@ -1,55 +0,0 @@ -# -# Cookbook Name:: directory_provider -# Recipe:: set_the_accesiibility_of_a_created_directory -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this directory except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/octal0644" do - mode 0644 - action :create -end - -directory "#{node[:tmpdir]}/octal2644" do - mode 02644 - action :create -end - -directory "#{node[:tmpdir]}/decimal644" do - mode 644 - action :create -end - -directory "#{node[:tmpdir]}/decimal2644" do - mode 2644 - action :create -end - -directory "#{node[:tmpdir]}/string644" do - mode "644" - action :create -end - -directory "#{node[:tmpdir]}/string0644" do - mode "0644" - action :create -end - -directory "#{node[:tmpdir]}/string2644" do - mode "2644" - action :create -end - - diff --git a/features/data/cookbooks/execute_commands/metadata.rb b/features/data/cookbooks/execute_commands/metadata.rb deleted file mode 100644 index 591168fae2..0000000000 --- a/features/data/cookbooks/execute_commands/metadata.rb +++ /dev/null @@ -1,5 +0,0 @@ - -version "1.0" -maintainer "opscode" -maintainer_email "donotreply@opscode.com" -long_description "excercise the execute provider" diff --git a/features/data/cookbooks/execute_commands/recipes/4k.rb b/features/data/cookbooks/execute_commands/recipes/4k.rb deleted file mode 100644 index bc810bd979..0000000000 --- a/features/data/cookbooks/execute_commands/recipes/4k.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Author:: Adam Jacob (<adam@opscode.com>) -# Copyright:: Copyright (c) 2008 Opscode, Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "create-4k-file" do - command "dd if=/dev/random of=#{node[:tmpdir]}/execute-4k.txt bs=1024 count=5" -end - -execute "read-4k-file" do - command "cat #{node[:tmpdir]}/execute-4k.txt" -end diff --git a/features/data/cookbooks/execute_commands/recipes/debug.rb b/features/data/cookbooks/execute_commands/recipes/debug.rb deleted file mode 100644 index 5b76380508..0000000000 --- a/features/data/cookbooks/execute_commands/recipes/debug.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Author:: Adam Jacob (<adam@opscode.com>) -# Copyright:: Copyright (c) 2008 Opscode, Inc. -# License:: Apache License, Version 2.0 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "debug-log" do - command "ruby -e 'puts \"whats up\"; STDERR.puts \"doc!\"'" -end - diff --git a/features/data/cookbooks/execute_commands/recipes/default.rb b/features/data/cookbooks/execute_commands/recipes/default.rb deleted file mode 100644 index 6a6f98361f..0000000000 --- a/features/data/cookbooks/execute_commands/recipes/default.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: execute_commands -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "create-mastodon" do - command "echo wewt > #{node[:tmpdir]}/mastodon_rocks" -end diff --git a/features/data/cookbooks/execute_commands/recipes/umask.rb b/features/data/cookbooks/execute_commands/recipes/umask.rb deleted file mode 100644 index 7343c07eed..0000000000 --- a/features/data/cookbooks/execute_commands/recipes/umask.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: execute_commands -# Recipe:: umask -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "create-mastodon" do - umask '777' - command "echo wewt > /mastodon_rocks_umask" -end diff --git a/features/data/cookbooks/integration_setup/attributes/integration.rb b/features/data/cookbooks/integration_setup/attributes/integration.rb deleted file mode 100644 index c9da6119dc..0000000000 --- a/features/data/cookbooks/integration_setup/attributes/integration.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: integration_setup -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'tmpdir' - -int(Mash.new) -int[:tmpdir] = File.join(Dir.tmpdir, "chef_integration") - -tmpdir int[:tmpdir] diff --git a/features/data/cookbooks/integration_setup/recipes/default.rb b/features/data/cookbooks/integration_setup/recipes/default.rb deleted file mode 100644 index e89bbc3b1d..0000000000 --- a/features/data/cookbooks/integration_setup/recipes/default.rb +++ /dev/null @@ -1,24 +0,0 @@ -# -# Cookbook Name:: integration_setup -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory node[:int][:tmpdir] do - mode "1777" - action :create -end - diff --git a/features/data/cookbooks/lwrp/providers/default.rb b/features/data/cookbooks/lwrp/providers/default.rb deleted file mode 100644 index f66e2914f6..0000000000 --- a/features/data/cookbooks/lwrp/providers/default.rb +++ /dev/null @@ -1,9 +0,0 @@ -action :print_message do - puts new_resource.message -end - -action :touch_file do - file "#{node[:tmpdir]}/#{new_resource.filename}" do - action :create - end -end diff --git a/features/data/cookbooks/lwrp/providers/lwp_non_default.rb b/features/data/cookbooks/lwrp/providers/lwp_non_default.rb deleted file mode 100644 index f51dcae369..0000000000 --- a/features/data/cookbooks/lwrp/providers/lwp_non_default.rb +++ /dev/null @@ -1,3 +0,0 @@ -action :print_message do - puts new_resource.message -end diff --git a/features/data/cookbooks/lwrp/providers/lwp_overridden_load_current_resource.rb b/features/data/cookbooks/lwrp/providers/lwp_overridden_load_current_resource.rb deleted file mode 100644 index 58689150ee..0000000000 --- a/features/data/cookbooks/lwrp/providers/lwp_overridden_load_current_resource.rb +++ /dev/null @@ -1,8 +0,0 @@ -def load_current_resource - puts "Overridden load_current_resource" -end - -action :print_message do - puts new_resource.message -end - diff --git a/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb b/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb deleted file mode 100644 index 8c512e0f1e..0000000000 --- a/features/data/cookbooks/lwrp/providers/provider_is_omitted.rb +++ /dev/null @@ -1,3 +0,0 @@ -action :print_classes do - puts "P=#{self.class}, R=#{new_resource.class}" -end diff --git a/features/data/cookbooks/lwrp/recipes/default_everything.rb b/features/data/cookbooks/lwrp/recipes/default_everything.rb deleted file mode 100644 index 9125f0f90e..0000000000 --- a/features/data/cookbooks/lwrp/recipes/default_everything.rb +++ /dev/null @@ -1,4 +0,0 @@ -lwrp :default do - message "Default everything" - action :print_message -end diff --git a/features/data/cookbooks/lwrp/recipes/non_default_provider.rb b/features/data/cookbooks/lwrp/recipes/non_default_provider.rb deleted file mode 100644 index 019f3aa9ab..0000000000 --- a/features/data/cookbooks/lwrp/recipes/non_default_provider.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :non_default_provider do - message "Non-default provider" - action :print_message - - provider :lwrp_lwp_non_default -end diff --git a/features/data/cookbooks/lwrp/recipes/non_default_resource.rb b/features/data/cookbooks/lwrp/recipes/non_default_resource.rb deleted file mode 100644 index 8df71ca218..0000000000 --- a/features/data/cookbooks/lwrp/recipes/non_default_resource.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp_lwr_non_default :non_default_lwr do - message "Non-default resource" - action :print_message - - provider Chef::Provider::Lwrp -end diff --git a/features/data/cookbooks/lwrp/recipes/overridden_provider_load_current_resource.rb b/features/data/cookbooks/lwrp/recipes/overridden_provider_load_current_resource.rb deleted file mode 100644 index 0b525aa541..0000000000 --- a/features/data/cookbooks/lwrp/recipes/overridden_provider_load_current_resource.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :overridden_provider_load_current_resource do - message "meep meep" - action :print_message - - provider Chef::Provider::LwrpLwpOverriddenLoadCurrentResource -end diff --git a/features/data/cookbooks/lwrp/recipes/overridden_resource_initialize.rb b/features/data/cookbooks/lwrp/recipes/overridden_resource_initialize.rb deleted file mode 100644 index 6982ce35fa..0000000000 --- a/features/data/cookbooks/lwrp/recipes/overridden_resource_initialize.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp_lwr_overridden_initialize :overridden_resource_initialize do - message "meep meep" - action :print_message - - provider Chef::Provider::Lwrp -end diff --git a/features/data/cookbooks/lwrp/recipes/provider_invokes_resource.rb b/features/data/cookbooks/lwrp/recipes/provider_invokes_resource.rb deleted file mode 100644 index c2e94aa064..0000000000 --- a/features/data/cookbooks/lwrp/recipes/provider_invokes_resource.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :lwrp_provider_invokes_resource do - filename "lwrp_touch_file.txt" - action :touch_file - - provider :lwrp -end diff --git a/features/data/cookbooks/lwrp/recipes/provider_is_a_class.rb b/features/data/cookbooks/lwrp/recipes/provider_is_a_class.rb deleted file mode 100644 index efdda31b0e..0000000000 --- a/features/data/cookbooks/lwrp/recipes/provider_is_a_class.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :provider_is_a_class do - message "Provider is a class" - action :print_message - - provider Chef::Provider::Lwrp -end diff --git a/features/data/cookbooks/lwrp/recipes/provider_is_a_string.rb b/features/data/cookbooks/lwrp/recipes/provider_is_a_string.rb deleted file mode 100644 index 78f333bcd4..0000000000 --- a/features/data/cookbooks/lwrp/recipes/provider_is_a_string.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :provider_is_a_string do - message "Provider is a string" - action :print_message - - provider "lwrp" -end diff --git a/features/data/cookbooks/lwrp/recipes/provider_is_a_symbol.rb b/features/data/cookbooks/lwrp/recipes/provider_is_a_symbol.rb deleted file mode 100644 index 2ca9963fd5..0000000000 --- a/features/data/cookbooks/lwrp/recipes/provider_is_a_symbol.rb +++ /dev/null @@ -1,6 +0,0 @@ -lwrp :provider_is_a_symbol do - message "Provider is a symbol" - action :print_message - - provider :lwrp -end diff --git a/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb b/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb deleted file mode 100644 index 89a15b385e..0000000000 --- a/features/data/cookbooks/lwrp/recipes/provider_is_omitted.rb +++ /dev/null @@ -1,3 +0,0 @@ -lwrp_provider_is_omitted :provider_is_omitted do - action :print_classes -end diff --git a/features/data/cookbooks/lwrp/resources/default.rb b/features/data/cookbooks/lwrp/resources/default.rb deleted file mode 100644 index 00be531184..0000000000 --- a/features/data/cookbooks/lwrp/resources/default.rb +++ /dev/null @@ -1,4 +0,0 @@ -actions :print_message, :touch_file - -attribute :message, :kind_of => String -attribute :filename, :kind_of => String diff --git a/features/data/cookbooks/lwrp/resources/lwr_non_default.rb b/features/data/cookbooks/lwrp/resources/lwr_non_default.rb deleted file mode 100644 index c29654eba3..0000000000 --- a/features/data/cookbooks/lwrp/resources/lwr_non_default.rb +++ /dev/null @@ -1,3 +0,0 @@ -actions :print_message - -attribute :message, :kind_of => String diff --git a/features/data/cookbooks/lwrp/resources/lwr_overridden_initialize.rb b/features/data/cookbooks/lwrp/resources/lwr_overridden_initialize.rb deleted file mode 100644 index 635ba237d5..0000000000 --- a/features/data/cookbooks/lwrp/resources/lwr_overridden_initialize.rb +++ /dev/null @@ -1,8 +0,0 @@ -def initialize(name, run_context=nil) - super - puts "Overridden initialize" -end - -actions :print_message - -attribute :message, :kind_of => String diff --git a/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb b/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb deleted file mode 100644 index 564537e6bf..0000000000 --- a/features/data/cookbooks/lwrp/resources/provider_is_omitted.rb +++ /dev/null @@ -1 +0,0 @@ -actions :print_classes diff --git a/features/data/cookbooks/manage_files/recipes/create_a_file.rb b/features/data/cookbooks/manage_files/recipes/create_a_file.rb deleted file mode 100644 index ae64c9a583..0000000000 --- a/features/data/cookbooks/manage_files/recipes/create_a_file.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/create_a_file.txt" do - action :create -end diff --git a/features/data/cookbooks/manage_files/recipes/default.rb b/features/data/cookbooks/manage_files/recipes/default.rb deleted file mode 100644 index 8b9f7ab0cf..0000000000 --- a/features/data/cookbooks/manage_files/recipes/default.rb +++ /dev/null @@ -1,19 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - diff --git a/features/data/cookbooks/manage_files/recipes/delete_a_file.rb b/features/data/cookbooks/manage_files/recipes/delete_a_file.rb deleted file mode 100644 index 85c5fec84f..0000000000 --- a/features/data/cookbooks/manage_files/recipes/delete_a_file.rb +++ /dev/null @@ -1,24 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -include_recipe 'manage_files::create_a_file' - -file "#{node[:tmpdir]}/create_a_file.txt" do - action :delete -end diff --git a/features/data/cookbooks/manage_files/recipes/delete_a_file_that_does_not_already_exist.rb b/features/data/cookbooks/manage_files/recipes/delete_a_file_that_does_not_already_exist.rb deleted file mode 100644 index 5121bc67fa..0000000000 --- a/features/data/cookbooks/manage_files/recipes/delete_a_file_that_does_not_already_exist.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/create_a_file.txt" do - action :delete -end diff --git a/features/data/cookbooks/manage_files/recipes/manage_file_contents.rb b/features/data/cookbooks/manage_files/recipes/manage_file_contents.rb deleted file mode 100644 index 0eccce0b5b..0000000000 --- a/features/data/cookbooks/manage_files/recipes/manage_file_contents.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/aqua_teen.txt" do - content "I am using the e-photo plugin, you pop it on your back and go" - action :create -end diff --git a/features/data/cookbooks/manage_files/recipes/set_the_accessibility_of_a_created_file.rb b/features/data/cookbooks/manage_files/recipes/set_the_accessibility_of_a_created_file.rb deleted file mode 100644 index a4aac8ddfa..0000000000 --- a/features/data/cookbooks/manage_files/recipes/set_the_accessibility_of_a_created_file.rb +++ /dev/null @@ -1,79 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/octal0111.txt" do - owner 'nobody' - mode 0111 - action :create -end - -file "#{node[:tmpdir]}/octal0644.txt" do - owner 'nobody' - mode 0644 - action :create -end - -file "#{node[:tmpdir]}/octal2644.txt" do - owner 'nobody' - mode 02644 - action :create -end - -file "#{node[:tmpdir]}/decimal73.txt" do - owner 'nobody' - mode 73 - action :create -end - -file "#{node[:tmpdir]}/decimal644.txt" do - owner 'nobody' - mode 644 - action :create -end - -file "#{node[:tmpdir]}/decimal2644.txt" do - owner 'nobody' - mode 2644 - action :create -end - -file "#{node[:tmpdir]}/string111.txt" do - owner 'nobody' - mode "111" - action :create -end - -file "#{node[:tmpdir]}/string644.txt" do - owner 'nobody' - mode "644" - action :create -end - -file "#{node[:tmpdir]}/string0644.txt" do - owner 'nobody' - mode "0644" - action :create -end - -file "#{node[:tmpdir]}/string2644.txt" do - owner 'nobody' - mode "2644" - action :create -end - diff --git a/features/data/cookbooks/manage_files/recipes/set_the_owner_of_a_created_file.rb b/features/data/cookbooks/manage_files/recipes/set_the_owner_of_a_created_file.rb deleted file mode 100644 index f57c78650f..0000000000 --- a/features/data/cookbooks/manage_files/recipes/set_the_owner_of_a_created_file.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/create_a_file.txt" do - owner 'nobody' - action :create -end diff --git a/features/data/cookbooks/manage_files/recipes/touch_a_file.rb b/features/data/cookbooks/manage_files/recipes/touch_a_file.rb deleted file mode 100644 index 86c971c9ac..0000000000 --- a/features/data/cookbooks/manage_files/recipes/touch_a_file.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -file "#{node[:tmpdir]}/touch_test.txt" do - action :touch -end diff --git a/features/data/cookbooks/metadata/metadata.rb b/features/data/cookbooks/metadata/metadata.rb deleted file mode 100644 index 9c6923a1d2..0000000000 --- a/features/data/cookbooks/metadata/metadata.rb +++ /dev/null @@ -1,17 +0,0 @@ - -version "1.0" -maintainer "Bobo T. Clown" -maintainer_email "bobo@example.com" -long_description "I have a long arm!" -supports :ubuntu, "> 8.04" - -#depends "bobo", "= 1.0" -#depends "bobotclown", "= 1.1" -#recommends "snark", "< 3.0" -#suggests "kindness", "> 2.0" -#conflicts "hatred" -# -#depends "foo(:bar, :baz)" -#provides "foo(:bar, :baz)" -#replaces "snarkitron" - diff --git a/features/data/cookbooks/metadata/recipes/default.rb b/features/data/cookbooks/metadata/recipes/default.rb deleted file mode 100644 index 541b504f0b..0000000000 --- a/features/data/cookbooks/metadata/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: metadata -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/no_attributes/README.rdoc b/features/data/cookbooks/no_attributes/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/no_attributes/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/no_attributes/metadata.rb b/features/data/cookbooks/no_attributes/metadata.rb deleted file mode 100644 index ed2938fa6d..0000000000 --- a/features/data/cookbooks/no_attributes/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures attribute_settings" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/no_attributes/recipes/default.rb b/features/data/cookbooks/no_attributes/recipes/default.rb deleted file mode 100644 index 58c7aeb4f7..0000000000 --- a/features/data/cookbooks/no_attributes/recipes/default.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "echo snakes#{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt" - diff --git a/features/data/cookbooks/node_cookbook_sync/README.rdoc b/features/data/cookbooks/node_cookbook_sync/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/node_cookbook_sync/attributes/attr_file.rb b/features/data/cookbooks/node_cookbook_sync/attributes/attr_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/attributes/attr_file.rb +++ /dev/null diff --git a/features/data/cookbooks/node_cookbook_sync/definitions/def_file.rb b/features/data/cookbooks/node_cookbook_sync/definitions/def_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/definitions/def_file.rb +++ /dev/null diff --git a/features/data/cookbooks/node_cookbook_sync/libraries/lib_file.rb b/features/data/cookbooks/node_cookbook_sync/libraries/lib_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/libraries/lib_file.rb +++ /dev/null diff --git a/features/data/cookbooks/node_cookbook_sync/metadata.rb b/features/data/cookbooks/node_cookbook_sync/metadata.rb deleted file mode 100644 index 850a993fbb..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures node_cookbook_sync" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/node_cookbook_sync/recipes/default.rb b/features/data/cookbooks/node_cookbook_sync/recipes/default.rb deleted file mode 100644 index 7912164bf3..0000000000 --- a/features/data/cookbooks/node_cookbook_sync/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: node_cookbook_sync -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/packages/recipes/default.rb b/features/data/cookbooks/packages/recipes/default.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/packages/recipes/default.rb +++ /dev/null diff --git a/features/data/cookbooks/packages/recipes/gem_package.rb b/features/data/cookbooks/packages/recipes/gem_package.rb deleted file mode 100644 index b6bddffa8d..0000000000 --- a/features/data/cookbooks/packages/recipes/gem_package.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options "-i #{node[:tmpdir]}/installed-gems/" -end diff --git a/features/data/cookbooks/packages/recipes/install_apt_package.rb b/features/data/cookbooks/packages/recipes/install_apt_package.rb deleted file mode 100644 index 26db5b83fc..0000000000 --- a/features/data/cookbooks/packages/recipes/install_apt_package.rb +++ /dev/null @@ -1,3 +0,0 @@ -package("chef-integration-test") do - options("--force-yes") -end
\ No newline at end of file diff --git a/features/data/cookbooks/packages/recipes/install_dpkg_package.rb b/features/data/cookbooks/packages/recipes/install_dpkg_package.rb deleted file mode 100644 index f24b3f9814..0000000000 --- a/features/data/cookbooks/packages/recipes/install_dpkg_package.rb +++ /dev/null @@ -1,4 +0,0 @@ -dpkg_package("chef-integration-test") do - source("#{File.join(node[:tmpdir], 'chef-integration-test_1.0-1_amd64.deb')}") -end - diff --git a/features/data/cookbooks/packages/recipes/install_gem_noshell.rb b/features/data/cookbooks/packages/recipes/install_gem_noshell.rb deleted file mode 100644 index 27a0c7d2a4..0000000000 --- a/features/data/cookbooks/packages/recipes/install_gem_noshell.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options :install_dir => "#{node[:tmpdir]}/installed-gems/" -end diff --git a/features/data/cookbooks/packages/recipes/install_gem_package_twice.rb b/features/data/cookbooks/packages/recipes/install_gem_package_twice.rb deleted file mode 100644 index b6bddffa8d..0000000000 --- a/features/data/cookbooks/packages/recipes/install_gem_package_twice.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options "-i #{node[:tmpdir]}/installed-gems/" -end diff --git a/features/data/cookbooks/packages/recipes/macports_install_bad_package.rb b/features/data/cookbooks/packages/recipes/macports_install_bad_package.rb deleted file mode 100644 index 40ac646761..0000000000 --- a/features/data/cookbooks/packages/recipes/macports_install_bad_package.rb +++ /dev/null @@ -1,3 +0,0 @@ -package "fdsafdsa" do - action :install -end diff --git a/features/data/cookbooks/packages/recipes/macports_install_yydecode.rb b/features/data/cookbooks/packages/recipes/macports_install_yydecode.rb deleted file mode 100644 index 7c2475db37..0000000000 --- a/features/data/cookbooks/packages/recipes/macports_install_yydecode.rb +++ /dev/null @@ -1,3 +0,0 @@ -package "yydecode" do - action :install -end diff --git a/features/data/cookbooks/packages/recipes/macports_purge_yydecode.rb b/features/data/cookbooks/packages/recipes/macports_purge_yydecode.rb deleted file mode 100644 index e7ad245dfb..0000000000 --- a/features/data/cookbooks/packages/recipes/macports_purge_yydecode.rb +++ /dev/null @@ -1,3 +0,0 @@ -package "yydecode" do - action :purge -end diff --git a/features/data/cookbooks/packages/recipes/macports_remove_yydecode.rb b/features/data/cookbooks/packages/recipes/macports_remove_yydecode.rb deleted file mode 100644 index da1acca7ec..0000000000 --- a/features/data/cookbooks/packages/recipes/macports_remove_yydecode.rb +++ /dev/null @@ -1,3 +0,0 @@ -package "yydecode" do - action :remove -end diff --git a/features/data/cookbooks/packages/recipes/macports_upgrade_yydecode.rb b/features/data/cookbooks/packages/recipes/macports_upgrade_yydecode.rb deleted file mode 100644 index 3d008abdec..0000000000 --- a/features/data/cookbooks/packages/recipes/macports_upgrade_yydecode.rb +++ /dev/null @@ -1,7 +0,0 @@ -package "yydecode" do - action :remove -end - -package "yydecode" do - action :upgrade -end diff --git a/features/data/cookbooks/packages/recipes/manually_upgrade_gem_package.rb b/features/data/cookbooks/packages/recipes/manually_upgrade_gem_package.rb deleted file mode 100644 index db1de3fcbc..0000000000 --- a/features/data/cookbooks/packages/recipes/manually_upgrade_gem_package.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options "-i #{node[:tmpdir]}/installed-gems/" -end - -gem_package "chef-integration-test" do - source "http://localhost:8000" - options "-i #{node[:tmpdir]}/installed-gems/" - version "0.1.1" -end diff --git a/features/data/cookbooks/packages/recipes/upgrade_gem_noshell.rb b/features/data/cookbooks/packages/recipes/upgrade_gem_noshell.rb deleted file mode 100644 index c009f38fcd..0000000000 --- a/features/data/cookbooks/packages/recipes/upgrade_gem_noshell.rb +++ /dev/null @@ -1,33 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options :install_dir => "#{node[:tmpdir]}/installed-gems/" -end - -gem_package "chef-integration-test-upgrade" do - package_name 'chef-integration-test' - source "http://localhost:8000" - options :install_dir => "#{node[:tmpdir]}/installed-gems/" - action :upgrade -end diff --git a/features/data/cookbooks/packages/recipes/upgrade_gem_package.rb b/features/data/cookbooks/packages/recipes/upgrade_gem_package.rb deleted file mode 100644 index 636d8b771b..0000000000 --- a/features/data/cookbooks/packages/recipes/upgrade_gem_package.rb +++ /dev/null @@ -1,33 +0,0 @@ -# -# Cookbook Name:: packages -# Recipe:: gem_package -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -directory "#{node[:tmpdir]}/installed-gems/" - -gem_package "chef-integration-test" do - source "http://localhost:8000" - version "0.1.0" - options "-i #{node[:tmpdir]}/installed-gems/" -end - -gem_package "chef-integration-test-upgrade" do - package_name 'chef-integration-test' - source "http://localhost:8000" - options "-i #{node[:tmpdir]}/installed-gems/" - action :upgrade -end diff --git a/features/data/cookbooks/recipe_include/README.rdoc b/features/data/cookbooks/recipe_include/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/recipe_include/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/recipe_include/metadata.rb b/features/data/cookbooks/recipe_include/metadata.rb deleted file mode 100644 index 07c1801d28..0000000000 --- a/features/data/cookbooks/recipe_include/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures recipe_include" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/recipe_include/recipes/default.rb b/features/data/cookbooks/recipe_include/recipes/default.rb deleted file mode 100644 index f05c067f4b..0000000000 --- a/features/data/cookbooks/recipe_include/recipes/default.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Cookbook Name:: attribute_include -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -include_recipe "recipe_include::second" - diff --git a/features/data/cookbooks/recipe_include/recipes/second.rb b/features/data/cookbooks/recipe_include/recipes/second.rb deleted file mode 100644 index f6dbe99d2f..0000000000 --- a/features/data/cookbooks/recipe_include/recipes/second.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: recipe_include -# Recipe:: second -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -execute "append to #{node[:tmpdir]}/fire_once" do - command "echo mars_volta >> #{node[:tmpdir]}/fire_once" -end - diff --git a/features/data/cookbooks/roles/recipes/default.rb b/features/data/cookbooks/roles/recipes/default.rb deleted file mode 100644 index aeedd4fe2b..0000000000 --- a/features/data/cookbooks/roles/recipes/default.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: roles -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -Chef::Log.debug(node.override.inspect) -Chef::Log.debug(node.default.inspect) -execute "echo #{node.reason} > #{File.join(node.tmpdir, "role_test_reason.txt")}" -execute "echo #{node.ossining} > #{File.join(node.tmpdir, "role_test_ossining.txt")}" -execute "echo #{node["languages"]["ruby"]["version"]} > #{File.join(node.tmpdir, "role_test_ruby_version.txt")}" - - diff --git a/features/data/cookbooks/roles/recipes/env_test.rb b/features/data/cookbooks/roles/recipes/env_test.rb deleted file mode 100644 index 65b4c1b894..0000000000 --- a/features/data/cookbooks/roles/recipes/env_test.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: roles -# Recipe:: env_test -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -Chef::Log.debug(node.override.inspect) -Chef::Log.debug(node.default.inspect) -execute "echo #{node.reason} > #{File.join(node.tmpdir, "role_env_test_reason.txt")}" -execute "echo #{node.ossining} > #{File.join(node.tmpdir, "role_env_test_ossining.txt")}" -execute "echo #{node["languages"]["ruby"]["version"]} > #{File.join(node.tmpdir, "role_env_test_ruby_version.txt")}" - diff --git a/features/data/cookbooks/run_interval/recipes/default.rb b/features/data/cookbooks/run_interval/recipes/default.rb deleted file mode 100644 index d0e6c30d15..0000000000 --- a/features/data/cookbooks/run_interval/recipes/default.rb +++ /dev/null @@ -1,27 +0,0 @@ -# -# Cookbook Name:: run_interval -# Recipe:: default -# -# Copyright 2009, 2010, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Force chef-client to exit once this cookbook has been applied twice. -# The test depends on chef having run twice, so this number is tied to -# run_interval.feature! - -$run_interval_global ||= 2 - -$run_interval_global -= 1 -exit(2) if $run_interval_global == 0 diff --git a/features/data/cookbooks/scm/metadata.rb b/features/data/cookbooks/scm/metadata.rb deleted file mode 100644 index b9961a7123..0000000000 --- a/features/data/cookbooks/scm/metadata.rb +++ /dev/null @@ -1,9 +0,0 @@ -version "1.0" -maintainer "Ohai the Cat" -maintainer_email "ohai@cat.example.com" -description "SCM tests" -license 'Apache v2.0' -long_description "SCM integration/acceptance test recipes" - -recipe "scm::git", "git awesome" -recipe "scm::git-remotes", "git awesome repos" diff --git a/features/data/cookbooks/scm/recipes/git.rb b/features/data/cookbooks/scm/recipes/git.rb deleted file mode 100644 index a36f929e8e..0000000000 --- a/features/data/cookbooks/scm/recipes/git.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: scm -# Recipe:: git -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# If the features are not being run from a git clone, you're out of luck. -git "the chef repo" do - repository "#{node[:tmpdir]}/test_git_repo" - reference "HEAD" - destination "#{node[:tmpdir]}/gitchef" - action :sync -end diff --git a/features/data/cookbooks/search/attributes/search_attrs.rb b/features/data/cookbooks/search/attributes/search_attrs.rb deleted file mode 100644 index 2593b3065e..0000000000 --- a/features/data/cookbooks/search/attributes/search_attrs.rb +++ /dev/null @@ -1 +0,0 @@ -search_files([ "search_one.txt", "search_two.txt" ]) diff --git a/features/data/cookbooks/search/recipes/default.rb b/features/data/cookbooks/search/recipes/default.rb deleted file mode 100644 index 01a72f416e..0000000000 --- a/features/data/cookbooks/search/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: search -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/search/recipes/search_data.rb b/features/data/cookbooks/search/recipes/search_data.rb deleted file mode 100644 index 6deefed9b3..0000000000 --- a/features/data/cookbooks/search/recipes/search_data.rb +++ /dev/null @@ -1,28 +0,0 @@ -# -# Cookbook Name:: search -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# We have to sleep at least 10 seconds to confirm that the data has made it -# into the index. We can only rely on this because we are in a test environment -# in real-land Chef, the index is only eventually consistent.. and may take a -# variable amount of time. -sleep 10 -search(:users, "*:*") do |entry| - file "#{node[:tmpdir]}/#{entry["id"]}" -end - diff --git a/features/data/cookbooks/search/recipes/search_data_manual.rb b/features/data/cookbooks/search/recipes/search_data_manual.rb deleted file mode 100644 index af7b4e5f16..0000000000 --- a/features/data/cookbooks/search/recipes/search_data_manual.rb +++ /dev/null @@ -1,33 +0,0 @@ -# -# Cookbook Name:: search -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# We have to sleep at least 10 seconds to confirm that the data has made it -# into the index. We can only rely on this because we are in a test environment -# in real-land Chef, the index is only eventually consistent.. and may take a -# variable amount of time. - - -sleep 10 -objects, start, total = search(:users, "*:*", nil, 0, 10) - -objects.each do |entry| - file "#{node[:tmpdir]}/#{entry["id"]}" -end - - diff --git a/features/data/cookbooks/search/recipes/search_data_noblock.rb b/features/data/cookbooks/search/recipes/search_data_noblock.rb deleted file mode 100644 index b96c4688c2..0000000000 --- a/features/data/cookbooks/search/recipes/search_data_noblock.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Cookbook Name:: search -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# We have to sleep at least 10 seconds to confirm that the data has made it -# into the index. We can only rely on this because we are in a test environment -# in real-land Chef, the index is only eventually consistent.. and may take a -# variable amount of time. - - -sleep 10 -objects = search(:users, "*:*") - -objects.each do |entry| - file "#{node[:tmpdir]}/#{entry["id"]}" -end - diff --git a/features/data/cookbooks/show_cookbook/README.rdoc b/features/data/cookbooks/show_cookbook/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/show_cookbook/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/show_cookbook/attributes/attr_file.rb b/features/data/cookbooks/show_cookbook/attributes/attr_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/attributes/attr_file.rb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/definitions/def_file.rb b/features/data/cookbooks/show_cookbook/definitions/def_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/definitions/def_file.rb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/files/default/prime_time.txt b/features/data/cookbooks/show_cookbook/files/default/prime_time.txt deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/files/default/prime_time.txt +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/files/host-latte/prime_time.txt b/features/data/cookbooks/show_cookbook/files/host-latte/prime_time.txt deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/files/host-latte/prime_time.txt +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/files/mac_os_x-10.5/prime_time.txt b/features/data/cookbooks/show_cookbook/files/mac_os_x-10.5/prime_time.txt deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/files/mac_os_x-10.5/prime_time.txt +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/files/mac_os_x/prime_time.txt b/features/data/cookbooks/show_cookbook/files/mac_os_x/prime_time.txt deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/files/mac_os_x/prime_time.txt +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/libraries/lib_file.rb b/features/data/cookbooks/show_cookbook/libraries/lib_file.rb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/libraries/lib_file.rb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/metadata.rb b/features/data/cookbooks/show_cookbook/metadata.rb deleted file mode 100644 index 6f06805f62..0000000000 --- a/features/data/cookbooks/show_cookbook/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures show_cookbook" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "1.0" diff --git a/features/data/cookbooks/show_cookbook/recipes/default.rb b/features/data/cookbooks/show_cookbook/recipes/default.rb deleted file mode 100644 index 6f972192cb..0000000000 --- a/features/data/cookbooks/show_cookbook/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: show_cookbook -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/show_cookbook/templates/default/prime_time.txt.erb b/features/data/cookbooks/show_cookbook/templates/default/prime_time.txt.erb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/templates/default/prime_time.txt.erb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/templates/host-latte/prime_time.txt.erb b/features/data/cookbooks/show_cookbook/templates/host-latte/prime_time.txt.erb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/templates/host-latte/prime_time.txt.erb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/templates/mac_os_x-10.5/prime_time.txt.erb b/features/data/cookbooks/show_cookbook/templates/mac_os_x-10.5/prime_time.txt.erb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/templates/mac_os_x-10.5/prime_time.txt.erb +++ /dev/null diff --git a/features/data/cookbooks/show_cookbook/templates/mac_os_x/prime_time.txt.erb b/features/data/cookbooks/show_cookbook/templates/mac_os_x/prime_time.txt.erb deleted file mode 100644 index e69de29bb2..0000000000 --- a/features/data/cookbooks/show_cookbook/templates/mac_os_x/prime_time.txt.erb +++ /dev/null diff --git a/features/data/cookbooks/sync_library_original/README.rdoc b/features/data/cookbooks/sync_library_original/README.rdoc deleted file mode 100644 index 8d774805b9..0000000000 --- a/features/data/cookbooks/sync_library_original/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/sync_library_original/libraries/sync_library.rb b/features/data/cookbooks/sync_library_original/libraries/sync_library.rb deleted file mode 100644 index 659529670b..0000000000 --- a/features/data/cookbooks/sync_library_original/libraries/sync_library.rb +++ /dev/null @@ -1,27 +0,0 @@ - -require 'chef/index_queue/amqp_client' -$sync_library_go_count ||= 0 -module SyncLibrary - - def go - Chef::Log.info('First generation library') - - # Publish the first run - $sync_library_go_count += 1 - if $sync_library_go_count < 2 - amqp = Chef::IndexQueue::AmqpClient.instance - queue = amqp.amqp_client.queue('sync_library_test') - queue.publish("first run complete") - - # Wait until the message is consumed / the sync_library cookbook is updated - mcount = 1 - while mcount > 0 - Chef::Log.info("Sleeping while message is being consumed") - sleep 1 - mcount = queue.message_count - end - end - - end - -end
\ No newline at end of file diff --git a/features/data/cookbooks/sync_library_original/metadata.rb b/features/data/cookbooks/sync_library_original/metadata.rb deleted file mode 100644 index 0191f053a1..0000000000 --- a/features/data/cookbooks/sync_library_original/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures sync_library" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/sync_library_original/recipes/default.rb b/features/data/cookbooks/sync_library_original/recipes/default.rb deleted file mode 100644 index bb77f98632..0000000000 --- a/features/data/cookbooks/sync_library_original/recipes/default.rb +++ /dev/null @@ -1,30 +0,0 @@ -# -# Cookbook Name:: attribute_settings -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -class Chef::Recipe - include SyncLibrary -end - -# Run the library code -go - -$sync_library_global ||= 2 -$sync_library_global -= 1 -exit(2) if $sync_library_global == 0 - diff --git a/features/data/cookbooks/sync_library_updated/libraries/sync_library.rb b/features/data/cookbooks/sync_library_updated/libraries/sync_library.rb deleted file mode 100644 index 4a28bec485..0000000000 --- a/features/data/cookbooks/sync_library_updated/libraries/sync_library.rb +++ /dev/null @@ -1,8 +0,0 @@ - -module SyncLibrary - - def go - Chef::Log.info('Second generation library') - end - -end
\ No newline at end of file diff --git a/features/data/cookbooks/synchronize/recipes/default.rb b/features/data/cookbooks/synchronize/recipes/default.rb deleted file mode 100644 index b2c4976dc3..0000000000 --- a/features/data/cookbooks/synchronize/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: synchronize -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/synchronize_deps/metadata.json b/features/data/cookbooks/synchronize_deps/metadata.json deleted file mode 100644 index 146f154d6e..0000000000 --- a/features/data/cookbooks/synchronize_deps/metadata.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "synchronize_deps", - "description": "A fabulous new cookbook", - "long_description": "", - "maintainer": "Your Name", - "maintainer_email": "youremail@example.com", - "license": "Apache v2.0", - "platforms": { - }, - "dependencies": { - "synchronize": ">= 0.0.0" - }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, - "providing": { - }, - "replacing": { - }, - "attributes": { - }, - "groupings": { - }, - "recipes": { - }, - "version": "0.0.0" - }
\ No newline at end of file diff --git a/features/data/cookbooks/synchronize_deps/metadata.rb b/features/data/cookbooks/synchronize_deps/metadata.rb deleted file mode 100644 index b5b344c0bb..0000000000 --- a/features/data/cookbooks/synchronize_deps/metadata.rb +++ /dev/null @@ -1 +0,0 @@ -depends 'synchronize' diff --git a/features/data/cookbooks/synchronize_deps/recipes/default.rb b/features/data/cookbooks/synchronize_deps/recipes/default.rb deleted file mode 100644 index 007931b4c6..0000000000 --- a/features/data/cookbooks/synchronize_deps/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: synchronize_deps -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/template/README.rdoc b/features/data/cookbooks/template/README.rdoc deleted file mode 100644 index 3de2ec7a3c..0000000000 --- a/features/data/cookbooks/template/README.rdoc +++ /dev/null @@ -1,8 +0,0 @@ -= DESCRIPTION: - -= REQUIREMENTS: - -= ATTRIBUTES: - -= USAGE: - diff --git a/features/data/cookbooks/template/metadata.rb b/features/data/cookbooks/template/metadata.rb deleted file mode 100644 index ab4ed48e17..0000000000 --- a/features/data/cookbooks/template/metadata.rb +++ /dev/null @@ -1,6 +0,0 @@ -maintainer "Opscode" -maintainer_email "do_not_reply@opscode.com" -license "Apache 2.0" -description "Installs/Configures template" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "0.1" diff --git a/features/data/cookbooks/template/recipes/default.rb b/features/data/cookbooks/template/recipes/default.rb deleted file mode 100644 index bf251cec57..0000000000 --- a/features/data/cookbooks/template/recipes/default.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: template -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.set[:markov][:test] = { "value" => "sauce" } - -template "#{node[:tmpdir]}/template.txt" do - source "template.txt.erb" - variables node[:markov][:test] -end - diff --git a/features/data/cookbooks/template/recipes/interval.rb b/features/data/cookbooks/template/recipes/interval.rb deleted file mode 100644 index b7ff81984f..0000000000 --- a/features/data/cookbooks/template/recipes/interval.rb +++ /dev/null @@ -1,37 +0,0 @@ -# -# Cookbook Name:: template -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# can no longer set chef to run repeatedly in the foreground -# without some hackery like this: -Chef::Config[:interval] = 1 - -$run_count ||= %w{one two} -exit!(108) if $run_count.empty? - -Chef::Log.info("run count: #{$run_count}") - -vars = {:value => $run_count.shift} - -Chef::Log.error(:vars => vars.inspect, :RUN_COUNT => $run_count.inspect) - -template "#{node[:tmpdir]}/template.txt" do - source "template.txt.erb" - variables(vars) -end - diff --git a/features/data/cookbooks/template/recipes/render_node_attrs.rb b/features/data/cookbooks/template/recipes/render_node_attrs.rb deleted file mode 100644 index 336fb1c805..0000000000 --- a/features/data/cookbooks/template/recipes/render_node_attrs.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: template -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -node.set[:bawt] = "is fujins bot" -node.set[:botsnack] = "cheers!" - -template "#{node[:tmpdir]}/node.txt" do - source "node.txt.erb" -end - diff --git a/features/data/cookbooks/template/templates/default/node.txt.erb b/features/data/cookbooks/template/templates/default/node.txt.erb deleted file mode 100644 index 6c854288a7..0000000000 --- a/features/data/cookbooks/template/templates/default/node.txt.erb +++ /dev/null @@ -1,3 +0,0 @@ -bawt <%= node[:bawt] %> -!botsnack -<%= @node[:botsnack] %>
\ No newline at end of file diff --git a/features/data/cookbooks/template/templates/default/template.txt.erb b/features/data/cookbooks/template/templates/default/template.txt.erb deleted file mode 100644 index d568b87b40..0000000000 --- a/features/data/cookbooks/template/templates/default/template.txt.erb +++ /dev/null @@ -1 +0,0 @@ -<%= @value %> diff --git a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/bar.txt b/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/bar.txt deleted file mode 100644 index 3567f3874e..0000000000 --- a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/bar.txt +++ /dev/null @@ -1 +0,0 @@ -Space Manoeuvres stage 1
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/baz.txt b/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/baz.txt deleted file mode 100644 index 63c03878e1..0000000000 --- a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/baz.txt +++ /dev/null @@ -1 +0,0 @@ -micromega
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/foo.txt b/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/foo.txt deleted file mode 100644 index c964b2828b..0000000000 --- a/features/data/cookbooks/transfer_remote_directories/files/default/transfer_directory_feature/foo.txt +++ /dev/null @@ -1 +0,0 @@ -tyrantanic
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_remote_directories/recipes/transfer_directory.rb b/features/data/cookbooks/transfer_remote_directories/recipes/transfer_directory.rb deleted file mode 100644 index ce9163bc15..0000000000 --- a/features/data/cookbooks/transfer_remote_directories/recipes/transfer_directory.rb +++ /dev/null @@ -1,29 +0,0 @@ -# -# Cookbook Name:: transfer_remote_directories -# Recipe:: transfer_directory -# -# Copyright 2009, Daniel DeLeo -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -remote_directory "#{node[:tmpdir]}/transfer_directory" do - source "transfer_directory_feature" - files_backup 10 - files_owner "root" - files_group "staff" - files_mode "0644" - owner "nobody" - group "nogroup" - mode "0755" -end diff --git a/features/data/cookbooks/transfer_remote_files/files/default/transfer_a_file_from_a_cookbook.txt b/features/data/cookbooks/transfer_remote_files/files/default/transfer_a_file_from_a_cookbook.txt deleted file mode 100644 index 9fb38fab62..0000000000 --- a/features/data/cookbooks/transfer_remote_files/files/default/transfer_a_file_from_a_cookbook.txt +++ /dev/null @@ -1 +0,0 @@ -easy like sunday morning diff --git a/features/data/cookbooks/transfer_remote_files/metadata.json b/features/data/cookbooks/transfer_remote_files/metadata.json deleted file mode 100644 index 382d0e36b4..0000000000 --- a/features/data/cookbooks/transfer_remote_files/metadata.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "transfer_remote_files", - "description": "A fabulous new cookbook", - "long_description": "", - "maintainer": "Your Name", - "maintainer_email": "youremail@example.com", - "license": "Apache v2.0", - "platforms": { - }, - "dependencies": { - "transfer_remote_files_definition": ">= 0.0.0" - }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, - "providing": { - }, - "replacing": { - }, - "attributes": { - }, - "groupings": { - }, - "recipes": { - }, - "version": "0.0.0" - }
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_remote_files/metadata.rb b/features/data/cookbooks/transfer_remote_files/metadata.rb deleted file mode 100644 index 7c61151538..0000000000 --- a/features/data/cookbooks/transfer_remote_files/metadata.rb +++ /dev/null @@ -1 +0,0 @@ -depends "transfer_remote_files_definition" diff --git a/features/data/cookbooks/transfer_remote_files/recipes/change_remote_file_perms_trickery.rb b/features/data/cookbooks/transfer_remote_files/recipes/change_remote_file_perms_trickery.rb deleted file mode 100644 index 64ce440cc5..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/change_remote_file_perms_trickery.rb +++ /dev/null @@ -1,33 +0,0 @@ -# -# Cookbook Name:: change_remote_file_perms_trickery -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# The "trickery" comes from the fact that chef waits until all Resources are defined before actually - -r = remote_file "#{node[:tmpdir]}/transfer_a_file_from_a_cookbook.txt" do - source "transfer_a_file_from_a_cookbook.txt" - mode 0600 - action :nothing -end -# This creates the file out-of-band () -r.run_action(:create) - -remote_file "#{node[:tmpdir]}/transfer_a_file_from_a_cookbook.txt" do - source "transfer_a_file_from_a_cookbook.txt" - mode 0644 -end diff --git a/features/data/cookbooks/transfer_remote_files/recipes/default.rb b/features/data/cookbooks/transfer_remote_files/recipes/default.rb deleted file mode 100644 index 8bba761657..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: transfer_remote_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# diff --git a/features/data/cookbooks/transfer_remote_files/recipes/should_prefer_the_file_for_this_specific_host.rb b/features/data/cookbooks/transfer_remote_files/recipes/should_prefer_the_file_for_this_specific_host.rb deleted file mode 100644 index a89ea4c9af..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/should_prefer_the_file_for_this_specific_host.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: transfer_remote_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -remote_file "#{node[:tmpdir]}/host_specific.txt" do - source "host_specific.txt" -end diff --git a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_cookbook.rb b/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_cookbook.rb deleted file mode 100644 index ccc984e6d0..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_cookbook.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: transfer_remote_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -remote_file "#{node[:tmpdir]}/transfer_a_file_from_a_cookbook.txt" do - source "transfer_a_file_from_a_cookbook.txt" -end diff --git a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_specific_cookbook.rb b/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_specific_cookbook.rb deleted file mode 100644 index 1d2159f853..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_file_from_a_specific_cookbook.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# Cookbook Name:: transfer_remote_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -transfer_cookbook "from_definition.txt" diff --git a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_non-existent_file_from_a_cookbook.rb b/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_non-existent_file_from_a_cookbook.rb deleted file mode 100644 index 17cd8d24c8..0000000000 --- a/features/data/cookbooks/transfer_remote_files/recipes/transfer_a_non-existent_file_from_a_cookbook.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: transfer_remote_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -remote_file "#{node[:tmpdir]}/transfer_a_non-existent_file_from_a_cookbook.txt" do - source "transfer_a_non-existent_file_from_a_cookbook.txt" -end diff --git a/features/data/cookbooks/transfer_remote_files_definition/definitions/transfer.rb b/features/data/cookbooks/transfer_remote_files_definition/definitions/transfer.rb deleted file mode 100644 index 6784c2e765..0000000000 --- a/features/data/cookbooks/transfer_remote_files_definition/definitions/transfer.rb +++ /dev/null @@ -1,6 +0,0 @@ -define :transfer_cookbook do - remote_file "#{node[:tmpdir]}/#{params[:name]}" do - source "easy.txt" - cookbook "transfer_remote_files_definition" - end -end
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_remote_files_definition/files/default/easy.txt b/features/data/cookbooks/transfer_remote_files_definition/files/default/easy.txt deleted file mode 100644 index ba56156ef3..0000000000 --- a/features/data/cookbooks/transfer_remote_files_definition/files/default/easy.txt +++ /dev/null @@ -1 +0,0 @@ -easy like saturday morning
\ No newline at end of file diff --git a/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_be_transferred.txt b/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_be_transferred.txt deleted file mode 100644 index 5d01a3a2ba..0000000000 --- a/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_be_transferred.txt +++ /dev/null @@ -1,3 +0,0 @@ -This file should be transferred, since it's referred to in a "cookbook_file" directive in the -default recipe. - diff --git a/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_not_be_transferred.txt b/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_not_be_transferred.txt deleted file mode 100644 index eb8929c6e3..0000000000 --- a/features/data/cookbooks/transfer_some_cookbook_files/files/default/should_not_be_transferred.txt +++ /dev/null @@ -1,2 +0,0 @@ -This file should NOT be transferred, since it's not referred to in the default recipe. - diff --git a/features/data/cookbooks/transfer_some_cookbook_files/recipes/default.rb b/features/data/cookbooks/transfer_some_cookbook_files/recipes/default.rb deleted file mode 100644 index f6ceaaf5be..0000000000 --- a/features/data/cookbooks/transfer_some_cookbook_files/recipes/default.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: transfer_some_cookbook_files -# Recipe:: default -# -# Copyright 2009, Opscode -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -cookbook_file "#{node[:tmpdir]}/should_be_transferred.txt" do - source "should_be_transferred.txt" -end - -template "#{node[:tmpdir]}/template_should_be_transferred.txt" do - source "should_be_transferred.erb" -end diff --git a/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_be_transferred.erb b/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_be_transferred.erb deleted file mode 100644 index e551ee9379..0000000000 --- a/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_be_transferred.erb +++ /dev/null @@ -1,2 +0,0 @@ -Should be transferred, as it's referred to in the default recipe. -<%= node[:fqdn] %> diff --git a/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_not_be_transferred.erb b/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_not_be_transferred.erb deleted file mode 100644 index 3e8c34637f..0000000000 --- a/features/data/cookbooks/transfer_some_cookbook_files/templates/default/should_not_be_transferred.erb +++ /dev/null @@ -1,3 +0,0 @@ -Should NOT be transferred, as it's not referred to in the default recipe. -<%= node[:fqdn] %> - diff --git a/features/data/cookbooks/version_deps/metadata.rb b/features/data/cookbooks/version_deps/metadata.rb deleted file mode 100644 index f8a8be821c..0000000000 --- a/features/data/cookbooks/version_deps/metadata.rb +++ /dev/null @@ -1 +0,0 @@ -depends "versions", "= 0.1.0" diff --git a/features/data/cookbooks/version_deps/recipes/default.rb b/features/data/cookbooks/version_deps/recipes/default.rb deleted file mode 100644 index 96be727c43..0000000000 --- a/features/data/cookbooks/version_deps/recipes/default.rb +++ /dev/null @@ -1 +0,0 @@ -include_recipe "versions" diff --git a/features/data/cookbooks/versions/metadata.rb b/features/data/cookbooks/versions/metadata.rb deleted file mode 100644 index e5200c3336..0000000000 --- a/features/data/cookbooks/versions/metadata.rb +++ /dev/null @@ -1,5 +0,0 @@ -version "0.1.0" -maintainer "Bobo T. Clown" -maintainer_email "bobo@example.com" -long_description "Can haz versions?" - diff --git a/features/data/cookbooks/versions/recipes/default.rb b/features/data/cookbooks/versions/recipes/default.rb deleted file mode 100644 index ea319bf0fa..0000000000 --- a/features/data/cookbooks/versions/recipes/default.rb +++ /dev/null @@ -1,5 +0,0 @@ -file "#{node[:tmpdir]}/thundercats_are_go.txt" do - content "1" - action :create -end - |