diff options
63 files changed, 0 insertions, 1132 deletions
@@ -112,15 +112,6 @@ task :dev => "dev:install" do end namespace :dev do - desc "Install a Devel instance of Chef with the example-repository" - task :install do - gems.each do |dir| - Dir.chdir(dir) { sh "rake install" } - end - Dir.chdir("example-repository") { sh("rake install") } - end - - desc "Install a test instance of Chef for doing features against" task :features do gems.each do |dir| diff --git a/example-repository/Rakefile b/example-repository/Rakefile deleted file mode 100644 index a30c1cf7ce..0000000000 --- a/example-repository/Rakefile +++ /dev/null @@ -1,36 +0,0 @@ -# -# Rakefile for Chef Server Repository -# -# 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. -# - -require 'rubygems' -require 'chef' -require 'json' - -# Make sure you have loaded constants first -require File.join(File.dirname(__FILE__), 'config', 'rake') - -# And choosen a VCS -if File.directory?(File.join(TOPDIR, ".svn")) - $vcs = :svn -elsif File.directory?(File.join(TOPDIR, ".git")) - $vcs = :git -end - -load 'chef/tasks/chef_repo.rake' - diff --git a/example-repository/config/client.rb b/example-repository/config/client.rb deleted file mode 100644 index 845e65b320..0000000000 --- a/example-repository/config/client.rb +++ /dev/null @@ -1,19 +0,0 @@ -# -# Chef Client Config File -# -# Will be overwritten -# - -log_level :info -log_location STDOUT -file_store_path "/var/chef/file_store" -file_cache_path "/var/chef/cache" -ssl_verify_mode :verify_none -registration_url "http://127.0.0.1:4000" -openid_url "http://127.0.0.1:4001" -template_url "http://127.0.0.1:4000" -remotefile_url "http://127.0.0.1:4000" -search_url "http://127.0.0.1:4000" - - - diff --git a/example-repository/config/rake.rb b/example-repository/config/rake.rb deleted file mode 100644 index 6f5525d4fd..0000000000 --- a/example-repository/config/rake.rb +++ /dev/null @@ -1,54 +0,0 @@ -### -# Company and SSL Details -### - -# The company name - used for SSL certificates, and in various other places -COMPANY_NAME = "Opscode" - -# The Country Name to use for SSL Certificates -SSL_COUNTRY_NAME = "US" - -# The State Name to use for SSL Certificates -SSL_STATE_NAME = "Washington" - -# The Locality Name for SSL - typically, the city -SSL_LOCALITY_NAME = "Seattle" - -# What department? -SSL_ORGANIZATIONAL_UNIT_NAME = "Operations" - -# The SSL contact email address -SSL_EMAIL_ADDRESS = "ops@example.com" - -# License for new Cookbooks -# Can be :apachev2 or :none -NEW_COOKBOOK_LICENSE = :apachev2 - -########################## -# Chef Repository Layout # -########################## - -# Where to find upstream cookbooks -COOKBOOK_PATH = "/var/chef/cookbooks" - -# Where to find site-local modifications to upstream cookbooks -SITE_COOKBOOK_PATH = "/var/chef/site-cookbooks" - -# Chef Config Path -CHEF_CONFIG_PATH = "/etc/chef" - -# The location of the Chef Server Config file (on the server) -CHEF_SERVER_CONFIG = File.join(CHEF_CONFIG_PATH, "server.rb") - -# The location of the Chef Client Config file (on the client) -CHEF_CLIENT_CONFIG = File.join(CHEF_CONFIG_PATH, "client.rb") - -### -# Useful Extras (which you probably don't need to change) -### - -# The top of the repository checkout -TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), "..")) - -# Where to store certificates generated with ssl_cert -CADIR = File.expand_path(File.join(TOPDIR, "certificates")) diff --git a/example-repository/config/server.rb b/example-repository/config/server.rb deleted file mode 100644 index 53f7c02bda..0000000000 --- a/example-repository/config/server.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Chef Server Config File -# -# Dynamically generated by Chef - local modifications will be replaced -# - - -log_level :info -log_location STDOUT -file_store_path "/var/chef/file_store" -file_cache_path "/var/chef/cache" -ssl_verify_mode :verify_none -registration_url "http://127.0.0.1:4000" -openid_url "http://127.0.0.1:4001" -template_url "http://127.0.0.1:4000" -remotefile_url "http://127.0.0.1:4000" -search_url "http://127.0.0.1:4000" -cookbook_path [ "/var/chef/site-cookbooks", "/var/chef/cookbooks" ] -openid_store_path "/var/chef/openid/store" -openid_cstore_path "/var/chef/openid/cstore" -search_index_path "/var/chef/search_index" - -Chef::Log::Formatter.show_time = false diff --git a/example-repository/config/solo.rb b/example-repository/config/solo.rb deleted file mode 100644 index f5557daa4a..0000000000 --- a/example-repository/config/solo.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Chef Server Config File -# -# Dynamically generated by Chef - local modifications will be replaced -# - - -log_level :info -log_location STDOUT -file_store_path "/var/chef/file_store" -file_cache_path "/var/chef/cache" -ssl_verify_mode :verify_none -registration_url "http://127.0.0.1:4000" -openid_url "http://127.0.0.1:4001" -template_url "http://127.0.0.1:4000" -remotefile_url "http://127.0.0.1:4000" -search_url "http://127.0.0.1:4000" -cookbook_path [ "/var/chef/site-cookbooks", "/var/chef/cookbooks" ] -node_path "/var/chef/nodes" -openid_store_path "/var/chef/openid/store" -openid_cstore_path "/var/chef/openid/cstore" -merb_log_path "/var/log/chef-server.log" -search_index_path "/var/chef/search_index" - -Chef::Log::Formatter.show_time = false diff --git a/example-repository/cookbooks/CHEF-37/files/default/embrace.txt b/example-repository/cookbooks/CHEF-37/files/default/embrace.txt deleted file mode 100644 index 2d11a2d3e4..0000000000 --- a/example-repository/cookbooks/CHEF-37/files/default/embrace.txt +++ /dev/null @@ -1 +0,0 @@ -"You couldn't dam that river, and maybe I don't give a damn anyway"
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-37/recipes/default.rb b/example-repository/cookbooks/CHEF-37/recipes/default.rb deleted file mode 100644 index bcc9af03b1..0000000000 --- a/example-repository/cookbooks/CHEF-37/recipes/default.rb +++ /dev/null @@ -1,82 +0,0 @@ -# -# Cookbook Name:: CHEF-37 -# 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_dir = "/var/chef/cookbooks/CHEF-37" - -file_dir_list = { - :fqdn => File.expand_path(File.join(cookbook_dir, "files", "host-#{node[:fqdn]}")), - :default => File.expand_path(File.join(cookbook_dir, "files", "default")), - :platform => File.expand_path(File.join(cookbook_dir, "files", node[:platform])), - :platform_version => File.expand_path(File.join(cookbook_dir, "files", "#{node[:platform]}-#{node[:platform_version]}")) -} - -template_dir_list = { - :fqdn => File.expand_path(File.join(cookbook_dir, "templates", "host-#{node[:fqdn]}")), - :default => File.expand_path(File.join(cookbook_dir, "templates", "default")), - :platform => File.expand_path(File.join(cookbook_dir, "templates", node[:platform])), - :platform_version => File.expand_path(File.join(cookbook_dir, "templates", "#{node[:platform]}-#{node[:platform_version]}")) -} - -contents = "Frozen in the place I hide, not afraid to paint my sky with some who say I have lost my mind" -template_contents = '<%= @who %> sky with some who say I have lost my mind' - -# Create the directory and every version of the file -[ :fqdn, :default, :platform, :platform_version ].each do |dirname| - directory file_dir_list[dirname] do - action :create - end - - execute "create-#{dirname}-chef-37.txt" do - command "echo '#{dirname}: #{contents}' > #{file_dir_list[dirname]}/chef-37.txt" - end - - directory template_dir_list[dirname] do - action :create - end - - execute "create-template-#{dirname}-chef-37.txt" do - command "echo '#{dirname}: #{template_contents}' > #{template_dir_list[dirname]}/chef-37-#{dirname}.txt.erb" - end -end - -# Then work down - fetch the file, should be the most specific one. -# Then delete that one from the cookbooks on the server, since we don't want it to -# interfere with our next test. -[ :fqdn, :platform_version, :platform, :default ].each do |dirname| - remote_file "/tmp/chef-37-#{dirname}.txt" do - source "chef-37.txt" - action :create - end - - file "#{file_dir_list[dirname]}/chef-37.txt" do - action :delete - end - - template "/tmp/chef-template-37-#{dirname}.txt" do - source "chef-37-#{dirname}.txt.erb" - variables({ - :who => "paint my" - }) - action :create - end - - file "#{template_dir_list[dirname]}/chef-37-#{dirname}.txt.erb" do - action :delete - end -end diff --git a/example-repository/cookbooks/CHEF-44/recipes/default.rb b/example-repository/cookbooks/CHEF-44/recipes/default.rb deleted file mode 100644 index f2647f84a6..0000000000 --- a/example-repository/cookbooks/CHEF-44/recipes/default.rb +++ /dev/null @@ -1,29 +0,0 @@ -# -# Cookbook Name:: CHEF-44 -# 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 "sleepy" do - command "echo 'one monster'; sleep 5" -end - - -execute "sleepy2" do - command "sleep 5" -end - diff --git a/example-repository/cookbooks/CHEF-56/recipes/default.rb b/example-repository/cookbooks/CHEF-56/recipes/default.rb deleted file mode 100644 index 693b5bf1cf..0000000000 --- a/example-repository/cookbooks/CHEF-56/recipes/default.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: CHEF-56 -# 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. -# - -service "gpm" do - supports :status => true, :restart => true - action [ :restart, :stop, :disable, :start, :enable ] -end diff --git a/example-repository/cookbooks/CHEF-57/recipes/default.rb b/example-repository/cookbooks/CHEF-57/recipes/default.rb deleted file mode 100644 index a733707ab7..0000000000 --- a/example-repository/cookbooks/CHEF-57/recipes/default.rb +++ /dev/null @@ -1,24 +0,0 @@ -# -# Cookbook Name:: CHEF-57 -# 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. -# - -script "boo" do - user 'adam' - code "print 'I like cheese';" - interpreter "perl" -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-59/recipes/default.rb b/example-repository/cookbooks/CHEF-59/recipes/default.rb deleted file mode 100644 index f6ba082edf..0000000000 --- a/example-repository/cookbooks/CHEF-59/recipes/default.rb +++ /dev/null @@ -1,22 +0,0 @@ -# -# Cookbook Name:: CHEF-59 -# 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. -# - -package "zsh" do - action [ :install, :upgrade, :remove, :upgrade, :purge ] -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72-define/definitions/define_remote_file.rb b/example-repository/cookbooks/CHEF-72-define/definitions/define_remote_file.rb deleted file mode 100644 index 9100ee2682..0000000000 --- a/example-repository/cookbooks/CHEF-72-define/definitions/define_remote_file.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: CHEF-72-define -# 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. -# - -define :define_remote_file do - remote_file "/tmp/chef-72-remote-#{params[:name]}.txt" do - source "chef-72.txt" - cookbook "CHEF-72-define" - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72-define/definitions/define_template.rb b/example-repository/cookbooks/CHEF-72-define/definitions/define_template.rb deleted file mode 100644 index eb02e48560..0000000000 --- a/example-repository/cookbooks/CHEF-72-define/definitions/define_template.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: CHEF-72-define -# 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. -# - -define :define_template, :sing => 'ahh' do - template "/tmp/chef-72-#{params[:name]}.txt" do - source "chef-72.txt.erb" - variables({:sing => params[:sing]}) - cookbook "CHEF-72-define" - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72-define/files/default/chef-72.txt b/example-repository/cookbooks/CHEF-72-define/files/default/chef-72.txt deleted file mode 100644 index e161094293..0000000000 --- a/example-repository/cookbooks/CHEF-72-define/files/default/chef-72.txt +++ /dev/null @@ -1 +0,0 @@ -I want to give you some good, good love!
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72-define/recipes/default.rb b/example-repository/cookbooks/CHEF-72-define/recipes/default.rb deleted file mode 100644 index 951e120792..0000000000 --- a/example-repository/cookbooks/CHEF-72-define/recipes/default.rb +++ /dev/null @@ -1,18 +0,0 @@ -# -# Cookbook Name:: CHEF-72-define -# 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/example-repository/cookbooks/CHEF-72-define/templates/default/chef-72.txt.erb b/example-repository/cookbooks/CHEF-72-define/templates/default/chef-72.txt.erb deleted file mode 100644 index f78ff92bcb..0000000000 --- a/example-repository/cookbooks/CHEF-72-define/templates/default/chef-72.txt.erb +++ /dev/null @@ -1 +0,0 @@ -Its all in my pocket! <%= @sing %>
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72/files/default/chef-72.txt b/example-repository/cookbooks/CHEF-72/files/default/chef-72.txt deleted file mode 100644 index 5d1797cbd7..0000000000 --- a/example-repository/cookbooks/CHEF-72/files/default/chef-72.txt +++ /dev/null @@ -1 +0,0 @@ -Oh I, want to give you some love...
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72/recipes/default.rb b/example-repository/cookbooks/CHEF-72/recipes/default.rb deleted file mode 100644 index 58ebb7359f..0000000000 --- a/example-repository/cookbooks/CHEF-72/recipes/default.rb +++ /dev/null @@ -1,45 +0,0 @@ -# -# Cookbook Name:: CHEF-72 -# 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. -# - -template "/tmp/chef-72.txt" do - source "chef-72.txt.erb" - variables({:sing => "what"}) -end - -define_template "jail" do - sing "scarecrow" -end - -remote_file "/tmp/chef-72-remote.txt" do - source "chef-72.txt" -end - -define_remote_file "jail" do - source "chef-72.txt" -end - -%w{/tmp/chef-72.txt /tmp/chef-72-jail.txt /tmp/chef-72-remote.txt /tmp/chef-72-remote-jail.txt}.each do |filename| - execute "cat #{filename}" do - command "cat #{filename}" - end - - file filename do - action :delete - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-72/templates/default/chef-72.txt.erb b/example-repository/cookbooks/CHEF-72/templates/default/chef-72.txt.erb deleted file mode 100644 index 70cd9c01bc..0000000000 --- a/example-repository/cookbooks/CHEF-72/templates/default/chef-72.txt.erb +++ /dev/null @@ -1 +0,0 @@ -By default, we should <%= @sing %>
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-87/files/default/.dotfile b/example-repository/cookbooks/CHEF-87/files/default/.dotfile deleted file mode 100644 index e58de6573e..0000000000 --- a/example-repository/cookbooks/CHEF-87/files/default/.dotfile +++ /dev/null @@ -1 +0,0 @@ -This is an example dotfile! diff --git a/example-repository/cookbooks/CHEF-87/recipes/default.rb b/example-repository/cookbooks/CHEF-87/recipes/default.rb deleted file mode 100644 index 95c8cccc93..0000000000 --- a/example-repository/cookbooks/CHEF-87/recipes/default.rb +++ /dev/null @@ -1,28 +0,0 @@ -# -# Cookbook Name:: CHEF-87 -# 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 "/tmp/.dotfile" do - source ".dotfile" -end - -execute "cat /tmp/.dotfile" - -file "/tmp/.dotfile" do - action :delete -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-88/recipes/default.rb b/example-repository/cookbooks/CHEF-88/recipes/default.rb deleted file mode 100644 index b23f473316..0000000000 --- a/example-repository/cookbooks/CHEF-88/recipes/default.rb +++ /dev/null @@ -1,23 +0,0 @@ -# -# Cookbook Name:: CHEF-88 -# 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 "/tmp/rabbitmq-server_1.4.0-1_all.deb" do - source "http://www.rabbitmq.com/releases/rabbitmq-server/v1.4.0/rabbitmq-server_1.4.0-1_all.deb" - mode 0644 -end diff --git a/example-repository/cookbooks/CHEF-90/recipes/default.rb b/example-repository/cookbooks/CHEF-90/recipes/default.rb deleted file mode 100644 index 451e6392a1..0000000000 --- a/example-repository/cookbooks/CHEF-90/recipes/default.rb +++ /dev/null @@ -1,27 +0,0 @@ -# -# Cookbook Name:: CHEF-90 -# 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. -# - -results = search(:node, '*', [ 'ipaddress', 'hostname' ]) -Chef::Log.info(results.inspect) - -search(:node, '*', [ 'ipaddress', 'hostname' ]) do |n| - Chef::Log.info("#{n['ipaddress']} #{n['hostname']}") -end - -Chef::Log.info(search(:node, '*').inspect) diff --git a/example-repository/cookbooks/CHEF-94/attributes/gnomes.rb b/example-repository/cookbooks/CHEF-94/attributes/gnomes.rb deleted file mode 100644 index 4620ba081d..0000000000 --- a/example-repository/cookbooks/CHEF-94/attributes/gnomes.rb +++ /dev/null @@ -1,2 +0,0 @@ -gnome Mash.new -gnome[:underpants] = [ :one, :two, :three, :four, :five ]
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-94/definitions/gnome.rb b/example-repository/cookbooks/CHEF-94/definitions/gnome.rb deleted file mode 100644 index 5861405ae8..0000000000 --- a/example-repository/cookbooks/CHEF-94/definitions/gnome.rb +++ /dev/null @@ -1,7 +0,0 @@ -define :gnome do - params[:underpants].each do |undies| - execute "echo gnome #{undies}" do - command "echo 'gnome has underpants #{undies}'" - end - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-94/recipes/default.rb b/example-repository/cookbooks/CHEF-94/recipes/default.rb deleted file mode 100644 index 7d44e3a1e3..0000000000 --- a/example-repository/cookbooks/CHEF-94/recipes/default.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Cookbook Name:: CHEF-94 -# 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. -# - -gnome "mygnome" do - underpants :one, :two, :three, :four -end - -gnome "mygnome" do - underpants [ :one, :two ] -end - -puts node[:gnome][:underpants].inspect - -gnome "mygnome" do - underpants node[:gnome][:underpants] -end
\ No newline at end of file diff --git a/example-repository/cookbooks/CHEF-97/recipes/default.rb b/example-repository/cookbooks/CHEF-97/recipes/default.rb deleted file mode 100644 index 556d3005be..0000000000 --- a/example-repository/cookbooks/CHEF-97/recipes/default.rb +++ /dev/null @@ -1,41 +0,0 @@ -# -# Cookbook Name:: CHEF-97 -# 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. -# - -# Should not execute -execute "echo onlyif" do - only_if "test -d /tmp/CHEF-97" -end - -directory "/tmp/CHEF-97" - -# Should execute -execute "echo onlyif" - -# Should not execute -execute "echo notif" do - not_if "test -d /tmp/CHEF-97" -end - -directory "/tmp/CHEF-97" do - action :delete -end - -# Should execute -execute "echo notif" - diff --git a/example-repository/cookbooks/fakefile/attributes/first.rb b/example-repository/cookbooks/fakefile/attributes/first.rb deleted file mode 100644 index bebfbe7c7b..0000000000 --- a/example-repository/cookbooks/fakefile/attributes/first.rb +++ /dev/null @@ -1,2 +0,0 @@ -Chef::Log.debug("You are the first of fakefile's attributes") -friends("you said we wuz visiting em") diff --git a/example-repository/cookbooks/fakefile/definitions/test.rb b/example-repository/cookbooks/fakefile/definitions/test.rb deleted file mode 100644 index ce32293943..0000000000 --- a/example-repository/cookbooks/fakefile/definitions/test.rb +++ /dev/null @@ -1,13 +0,0 @@ -define :monkey, :eats => "bananna" do - file "/tmp/monkeynews-#{params[:name]}" do - owner "root" - mode 0644 - action :create - end - - file "/tmp/monkeynews-#{params[:name]}-second-#{params[:eats]}" do - owner "root" - mode 0644 - notifies :touch, resources(:file => "/tmp/monkeynews-#{params[:name]}"), :immediately - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt b/example-repository/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt deleted file mode 100644 index 9664cb3e15..0000000000 --- a/example-repository/cookbooks/fakefile/files/default/remote_test/another/turn/the_page.txt +++ /dev/null @@ -1 +0,0 @@ -Classic rock is awesome. diff --git a/example-repository/cookbooks/fakefile/files/default/remote_test/another/window.txt b/example-repository/cookbooks/fakefile/files/default/remote_test/another/window.txt deleted file mode 100644 index 68a3bf17e4..0000000000 --- a/example-repository/cookbooks/fakefile/files/default/remote_test/another/window.txt +++ /dev/null @@ -1 +0,0 @@ -appleseed?
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/files/default/remote_test/mycat.txt b/example-repository/cookbooks/fakefile/files/default/remote_test/mycat.txt deleted file mode 100644 index d4d8511934..0000000000 --- a/example-repository/cookbooks/fakefile/files/default/remote_test/mycat.txt +++ /dev/null @@ -1 +0,0 @@ -is a very nice kitty
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/files/default/the_park.txt b/example-repository/cookbooks/fakefile/files/default/the_park.txt deleted file mode 100644 index c71308a6ca..0000000000 --- a/example-repository/cookbooks/fakefile/files/default/the_park.txt +++ /dev/null @@ -1,3 +0,0 @@ -Is very pretty on a Saturday at 7:50 in August. Hottest day of the year so far in Seattle. - -something
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/libraries/test.rb b/example-repository/cookbooks/fakefile/libraries/test.rb deleted file mode 100644 index 5a39a18aec..0000000000 --- a/example-repository/cookbooks/fakefile/libraries/test.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Chef - class Recipe - def bork - Chef::Log.debug("Bork bork bork") - end - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/metadata.json b/example-repository/cookbooks/fakefile/metadata.json deleted file mode 100644 index 2853384d0f..0000000000 --- a/example-repository/cookbooks/fakefile/metadata.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "maintainer_email": "youremail@example.com", - "suggestions": { - - }, - "license": "Apache v2.0", - "conflicting": { - - }, - "dependencies": { - "tempfile": [ - - ], - "http_request": [ - - ] - }, - "attributes": { - - }, - "name": "fakefile", - "providing": { - "fakefile": [ - - ] - }, - "replacing": { - - }, - "long_description": "", - "description": "A fabulous new cookbook", - "recipes": { - "fakefile": "" - }, - "maintainer": "Your Name", - "recommendations": { - - }, - "platforms": { - - } -}
\ No newline at end of file diff --git a/example-repository/cookbooks/fakefile/metadata.rb b/example-repository/cookbooks/fakefile/metadata.rb deleted file mode 100644 index 25a4f08a13..0000000000 --- a/example-repository/cookbooks/fakefile/metadata.rb +++ /dev/null @@ -1,2 +0,0 @@ -depends "tempfile" -depends "http_request" diff --git a/example-repository/cookbooks/fakefile/recipes/default.rb b/example-repository/cookbooks/fakefile/recipes/default.rb deleted file mode 100644 index 96f3dab45c..0000000000 --- a/example-repository/cookbooks/fakefile/recipes/default.rb +++ /dev/null @@ -1,143 +0,0 @@ -bork - -execute "write-foolio" do - command <<-EOH - echo 'monkeypants #{node[:ipaddress]} #{node[:friends]}' > /tmp/foolio - EOH - user "daemon" -end - -script "monkeylikesit" do - code %q{ -print "Woot!\n"; -open(FILE, ">", "/tmp/monkeylikesit") or die "Cannot open monkeylikesit"; -print FILE "You have some interesting hobbies #{node[:ipaddress]}"; -close(FILE); -} - interpreter "perl" -end - -perl "foobar" do - code %q{ -print "Woot!\n"; - } -end - -unless @node[:platform] == "ubuntu" or @node[:platform] == "mac_os_x" - package "emacs" - - package "emacs" do - action :remove - end - - package "emacs" do - version "22.1-0ubuntu10" - action :install - end - - package "emacs" do - action :upgrade - end - - package "emacs" do - action :purge - end -end - -#package "ruby-djbdns" do -# action [ :install, :remove, :upgrade, :purge ] -# provider Chef::Provider::Package::Rubygems -#end - -#gem_package "ruby-djbdns" do -# action [ :install, :remove, :upgrade, :purge ] -#end - -file "/tmp/glen" do -# owner "aj-test" - mode 0644 - action :create -end - -file "/tmp/foo" do -# owner "adam-test" - mode 0644 - action :create - notifies :delete, resources(:file => "/tmp/glen"), :delayed -end - -remote_file "/tmp/the_park.txt" do -# owner "adam-test" - mode 0644 - source "the_park.txt" - action :create -end - -remote_directory "/tmp/remote_test" do -# owner "adam-test" - mode 0755 - source "remote_test" - files_owner "root" - files_group(@node['platform'] == "ubuntu" ? "admin" : "wheel") - files_mode 0644 - files_backup false -end - -template "/tmp/foo-template" do -# owner "adam-test" - mode 0644 - source "monkey.erb" - variables({ - :one => 'two', - :el_che => 'rhymefest', - :white => { - :stripes => "are the best", - :at => "the sleazy rock thing", - } - }) -end - -link "/tmp/foo" do - link_type :symbolic - target_file "/tmp/xmen" -end - -directory "/tmp/lots_of_files/" do -# owner "adam-test" - mode 0755 - action :create -end - -1000.times do |n| - file "/tmp/lots_of_files/somefile#{n}" do -# owner "adam-test" - mode 0644 - action :create - end -end - -directory "/tmp/home" do - owner "root" - mode 0755 - action :create -end - -search(:user, "*") do |u| - directory "/tmp/home/#{u['name']}" do - if u['name'] == "nobody" && @node[:platform] == "mac_os_x" - owner "root" - else - owner "#{u['name']}" - end - mode 0755 - action :create - end -end - -monkey "snoopy" do - eats "vegetables" -end - -monkey "snack" - - diff --git a/example-repository/cookbooks/fakefile/templates/default/monkey.erb b/example-repository/cookbooks/fakefile/templates/default/monkey.erb deleted file mode 100644 index 29c2639381..0000000000 --- a/example-repository/cookbooks/fakefile/templates/default/monkey.erb +++ /dev/null @@ -1,5 +0,0 @@ -This is a <%= @one %> with <%= @el_che %> - -It was rendered on a system with the ipaddress of <%= @node[:ipaddress] %> - -But it's all about the conquest, with <%= @node[:fqdn ] %> diff --git a/example-repository/cookbooks/global-onlyif/recipes/default.rb b/example-repository/cookbooks/global-onlyif/recipes/default.rb deleted file mode 100644 index bc08f4595a..0000000000 --- a/example-repository/cookbooks/global-onlyif/recipes/default.rb +++ /dev/null @@ -1,55 +0,0 @@ -# -# Cookbook Name:: global-onlyif -# Recipe:: default -# -# Copyright 2008, 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 "/tmp/neverhappen" do - only_if do false; end -end - -file "/tmp/stillnothappening" do - not_if do true; end -end - -file "/tmp/seriouslynothappening" do - only_if "false" -end - -file "/tmp/yepstillnot" do - not_if "true" -end - -file "/tmp/shouldhappen" do - only_if do true; end - action [:create, :delete] -end - -file "/tmp/shouldhappen" do - only_if "true" - action [:create, :delete] -end - -file "/tmp/shouldhappen" do - not_if do false; end - action [:create, :delete] -end - -file "/tmp/shouldhappen" do - not_if "false" - action [:create, :delete] -end - diff --git a/example-repository/cookbooks/http_request/recipes/default.rb b/example-repository/cookbooks/http_request/recipes/default.rb deleted file mode 100644 index f86fe8d2f2..0000000000 --- a/example-repository/cookbooks/http_request/recipes/default.rb +++ /dev/null @@ -1,26 +0,0 @@ -# -# Cookbook Name:: http_request -# 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. -# - -[ :get, :put, :post, :delete].each do |method| - http_request "http_request.txt" do - url "http://www.opscode.com/chef/http_request.txt" - epic_fail true - action method - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/prior_resource_test/recipes/default.rb b/example-repository/cookbooks/prior_resource_test/recipes/default.rb deleted file mode 100644 index b8c3fd6304..0000000000 --- a/example-repository/cookbooks/prior_resource_test/recipes/default.rb +++ /dev/null @@ -1,27 +0,0 @@ -# -# Cookbook Name:: prior_resource_test -# 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 "/tmp/prior_resource_test" do - backup 16 - action :create -end - -file "/tmp/prior_resource_test" do - action :delete -end diff --git a/example-repository/cookbooks/remote_file/files/default/seattle.txt b/example-repository/cookbooks/remote_file/files/default/seattle.txt deleted file mode 100644 index 8d6f2f9ebe..0000000000 --- a/example-repository/cookbooks/remote_file/files/default/seattle.txt +++ /dev/null @@ -1 +0,0 @@ -Is a nice town.
\ No newline at end of file diff --git a/example-repository/cookbooks/remote_file/recipes/default.rb b/example-repository/cookbooks/remote_file/recipes/default.rb deleted file mode 100644 index 6d120b8abd..0000000000 --- a/example-repository/cookbooks/remote_file/recipes/default.rb +++ /dev/null @@ -1,28 +0,0 @@ -# -# Cookbook Name:: CHEF-89 -# 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 "/tmp/seattle.txt" do - source "seattle.txt" - action :create -end - -remote_file "/tmp/chef-wiki-homepage.txt" do - source "http://wiki.opscode.com/display/chef/Home" - action :create -end diff --git a/example-repository/cookbooks/rubygems_server/attributes/first.rb b/example-repository/cookbooks/rubygems_server/attributes/first.rb deleted file mode 100644 index d1b7bd6a23..0000000000 --- a/example-repository/cookbooks/rubygems_server/attributes/first.rb +++ /dev/null @@ -1 +0,0 @@ -rubygems("are awesome") diff --git a/example-repository/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem b/example-repository/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem Binary files differdeleted file mode 100644 index d3eafbca10..0000000000 --- a/example-repository/cookbooks/rubygems_server/files/default/packages/net-scp-1.0.1.gem +++ /dev/null diff --git a/example-repository/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem b/example-repository/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem Binary files differdeleted file mode 100644 index e9bc3c2276..0000000000 --- a/example-repository/cookbooks/rubygems_server/files/default/packages/net-sftp-2.0.1.gem +++ /dev/null diff --git a/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem b/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem Binary files differdeleted file mode 100644 index b11cbe00cc..0000000000 --- a/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-2.0.3.gem +++ /dev/null diff --git a/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem b/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem Binary files differdeleted file mode 100644 index 545f850a71..0000000000 --- a/example-repository/cookbooks/rubygems_server/files/default/packages/net-ssh-gateway-1.0.0.gem +++ /dev/null diff --git a/example-repository/cookbooks/rubygems_server/recipes/default.rb b/example-repository/cookbooks/rubygems_server/recipes/default.rb deleted file mode 100644 index 6b60456094..0000000000 --- a/example-repository/cookbooks/rubygems_server/recipes/default.rb +++ /dev/null @@ -1,8 +0,0 @@ -remote_directory "/srv/gems" do - owner "www-data" - mode 0755 - source "packages" - files_owner "www-data" - files_group "www-data" - files_mode 0644 -end diff --git a/example-repository/cookbooks/servicetest/recipes/default.rb b/example-repository/cookbooks/servicetest/recipes/default.rb deleted file mode 100644 index 812b48e19d..0000000000 --- a/example-repository/cookbooks/servicetest/recipes/default.rb +++ /dev/null @@ -1,12 +0,0 @@ -service "puppet-client" do - service_name "puppet" - pattern "puppetd" - action :enable -end - -file "/tmp/foo" do - owner "aj" - mode 0644 - action :create - notifies :start, resources(:service => "puppet-client"), :immediate -end diff --git a/example-repository/cookbooks/tempfile/attributes/second.rb b/example-repository/cookbooks/tempfile/attributes/second.rb deleted file mode 100644 index df791b8429..0000000000 --- a/example-repository/cookbooks/tempfile/attributes/second.rb +++ /dev/null @@ -1 +0,0 @@ -monkey "poots"
\ No newline at end of file diff --git a/example-repository/cookbooks/tempfile/files/default/packages/blank b/example-repository/cookbooks/tempfile/files/default/packages/blank deleted file mode 100644 index e69de29bb2..0000000000 --- a/example-repository/cookbooks/tempfile/files/default/packages/blank +++ /dev/null diff --git a/example-repository/cookbooks/tempfile/files/default/packages/test b/example-repository/cookbooks/tempfile/files/default/packages/test deleted file mode 100644 index e84c65b247..0000000000 --- a/example-repository/cookbooks/tempfile/files/default/packages/test +++ /dev/null @@ -1 +0,0 @@ -You would like that, wouldn't you?
\ No newline at end of file diff --git a/example-repository/cookbooks/tempfile/metadata.json b/example-repository/cookbooks/tempfile/metadata.json deleted file mode 100644 index ef7a0e3d08..0000000000 --- a/example-repository/cookbooks/tempfile/metadata.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "maintainer_email": "youremail@example.com", - "suggestions": { - - }, - "license": "Apache v2.0", - "conflicting": { - - }, - "dependencies": { - "fakefile": [ - - ] - }, - "attributes": { - - }, - "name": "tempfile", - "providing": { - "tempfile": [ - - ] - }, - "replacing": { - - }, - "long_description": "", - "description": "A fabulous new cookbook", - "recipes": { - "tempfile": "" - }, - "maintainer": "Your Name", - "recommendations": { - - }, - "platforms": { - - } -}
\ No newline at end of file diff --git a/example-repository/cookbooks/tempfile/metadata.rb b/example-repository/cookbooks/tempfile/metadata.rb deleted file mode 100644 index d078059491..0000000000 --- a/example-repository/cookbooks/tempfile/metadata.rb +++ /dev/null @@ -1 +0,0 @@ -depends "fakefile" diff --git a/example-repository/cookbooks/tempfile/recipes/default.rb b/example-repository/cookbooks/tempfile/recipes/default.rb deleted file mode 100644 index b4fa86ac32..0000000000 --- a/example-repository/cookbooks/tempfile/recipes/default.rb +++ /dev/null @@ -1,24 +0,0 @@ -file "/tmp/glen" do - owner "adam" - mode 0755 - action "create" -end - -file "/tmp/metallica" do - action [ :create, :touch, :delete ] -end - -directory "/tmp/marginal" do - owner "adam" - mode 0755 - action :create -end - -remote_directory "/tmp/rubygems" do - owner "adam" - mode 0755 - source "packages" - files_owner "adam" - files_group "adam" - files_mode 0755 -end diff --git a/example-repository/cookbooks/template-test/recipes/default.rb b/example-repository/cookbooks/template-test/recipes/default.rb deleted file mode 100644 index ba5f216089..0000000000 --- a/example-repository/cookbooks/template-test/recipes/default.rb +++ /dev/null @@ -1,25 +0,0 @@ -# -# Cookbook Name:: template-test -# Recipe:: default -# -# Copyright 2008, 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. -# - -template "/tmp/whazzit" do - variables({ - :whosa => "whazzit" - }) - source "whazzit.erb" -end
\ No newline at end of file diff --git a/example-repository/cookbooks/template-test/templates/default/whazzit.erb b/example-repository/cookbooks/template-test/templates/default/whazzit.erb deleted file mode 100644 index f28adc3617..0000000000 --- a/example-repository/cookbooks/template-test/templates/default/whazzit.erb +++ /dev/null @@ -1 +0,0 @@ -Who is the <%= @whosa %>
\ No newline at end of file diff --git a/example-repository/cookbooks/template_caching_test/recipes/default.rb b/example-repository/cookbooks/template_caching_test/recipes/default.rb deleted file mode 100644 index 9d11f3c553..0000000000 --- a/example-repository/cookbooks/template_caching_test/recipes/default.rb +++ /dev/null @@ -1,32 +0,0 @@ -# -# Cookbook Name:: template_caching_test -# 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. -# - -[ "one", "two", "three", "four" ].each do |value| - template "/tmp/test_render.txt" do - source "test_render.erb" - variables({ - :number => value - }) - action :create - end - - file "/tmp/test_render.txt" do - action :delete - end -end
\ No newline at end of file diff --git a/example-repository/cookbooks/template_caching_test/templates/default/test_render.erb b/example-repository/cookbooks/template_caching_test/templates/default/test_render.erb deleted file mode 100644 index 78d0bfe4b2..0000000000 --- a/example-repository/cookbooks/template_caching_test/templates/default/test_render.erb +++ /dev/null @@ -1 +0,0 @@ -I'm number <%= @number %>!
\ No newline at end of file diff --git a/example-repository/log/merb.main.log b/example-repository/log/merb.main.log deleted file mode 100644 index e8e8ec5320..0000000000 --- a/example-repository/log/merb.main.log +++ /dev/null @@ -1,2 +0,0 @@ -Thu, 09 Oct 2008 21:27:28 GMT ~ info ~ Logfile created -Thu, 09 Oct 2008 21:27:28 GMT ~ info ~ Logfile created diff --git a/example-repository/log/merb.main.pid b/example-repository/log/merb.main.pid deleted file mode 100644 index 94846e4488..0000000000 --- a/example-repository/log/merb.main.pid +++ /dev/null @@ -1 +0,0 @@ -44404
\ No newline at end of file |