summaryrefslogtreecommitdiff
path: root/examples/sample_recipe.rb
diff options
context:
space:
mode:
authorEzra Zygmuntowicz <ez@engineyard.com>2008-10-08 14:19:52 -0700
committerEzra Zygmuntowicz <ez@engineyard.com>2008-10-08 14:19:52 -0700
commitc5d33c1298834ce40b8fbf344f281045771b5371 (patch)
tree1f0d4c7eab1eb379b544282a7ce48052acf719a5 /examples/sample_recipe.rb
parent3d14601aea23dee3899d097324875274da419d84 (diff)
downloadchef-c5d33c1298834ce40b8fbf344f281045771b5371.tar.gz
big refactor of the repo layout. move to a chef gem and a chef-server gem all with proper deps
Diffstat (limited to 'examples/sample_recipe.rb')
-rw-r--r--examples/sample_recipe.rb77
1 files changed, 0 insertions, 77 deletions
diff --git a/examples/sample_recipe.rb b/examples/sample_recipe.rb
deleted file mode 100644
index 6abb31bfcd..0000000000
--- a/examples/sample_recipe.rb
+++ /dev/null
@@ -1,77 +0,0 @@
-require_recipe "openldap"
-require_recipe "openldap::client"
-require_recipe "openldap::server"
-require_recipe "resolver"
-require_recipe "base"
-
-exec "restart-apache" do
- path "/usr/bin:/usr/local/bin"
- command "/etc/init.d/apache2 restart"
- action :nothing
-end
-
-service "apache2" do
- insure "running"
- has_restart true
-end
-
-file "/etc/nsswitch.conf" do
- owner "root"
- group "root"
- mode 0644
- notifies :restart, resources("service[openldap]"), :immediately
-end
-
-service "apache2" do
- action "enabled"
- subscribes :restart, resources("/etc/nsswitch.conf"), :immediately
-end
-
-file "/etc/ldap.conf" do
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/monkey" do
- insure "present"
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/owl" do
- insure "present"
- owner "root"
- group "root"
- mode 0644
-end
-
-file "/srv/zen" do
- insure "absent"
-end
-
-#
-# file "/srv/monkey" do |f|
-# f.insure = "present"
-# f.owner = "adam"
-# f.group = "adam"
-# f.mode = 0644
-# f.before = resources(:file => "/etc/nsswitch.conf")
-# end
-#
-# file "/etc/ldap-nss.conf" do |f|
-# f.insure = "present"
-# f.owner = "root"
-# f.group = "root"
-# f.mode = 0644
-# f.notifies = :refresh, resources(:file => "/etc/ldap.conf")
-# end
-#
-# file "/etc/coffee.conf" do |f|
-# f.insure = "present"
-# f.owner = "root"
-# f.group = "root"
-# f.mode = 0644
-# f.subscribes = :polio, resources(:file => "/etc/nsswitch.conf")
-# end \ No newline at end of file