summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-03-07 17:28:27 -0800
committerAdam Jacob <adam@hjksolutions.com>2008-03-07 17:28:27 -0800
commitb4beed548959ca63365ca3d799c59a155047b5ff (patch)
tree91207c05fb2517b1b87b0eb1f3deb111d6b058d9 /docs
parentaca232ba638afdc45f6d5b3e9b3f68d4a149d0a5 (diff)
downloadchef-b4beed548959ca63365ca3d799c59a155047b5ff.tar.gz
Syntax is right in the recipes
Diffstat (limited to 'docs')
-rw-r--r--docs/recipe.rb61
1 files changed, 48 insertions, 13 deletions
diff --git a/docs/recipe.rb b/docs/recipe.rb
index 6c06a403e4..66d8b4c089 100644
--- a/docs/recipe.rb
+++ b/docs/recipe.rb
@@ -5,22 +5,57 @@ include_recipe 'openldap::client'
include_recipe 'openssh'
include_recipe 'nscd'
-remote_file "nsswitch.conf" do
- path "/etc/nsswitch.conf"
- source "nsswitch.conf"
- module "openldap"
- mode 0644
- owner "root"
- group "root"
+file "/etc/nsswitch.conf" {
+ insure = "present"
+ owner = "root"
+ group = "root"
+ mode = 0644
+}
+
+file "/etc/ldap.conf" {
+ insure = "present"
+ owner = "root"
+ group = "root"
+ mode = 0644
+ requires = resources(:file => "/etc/nsswitch.conf")
+}
+
+file "/etc/ldap.conf" do
+ insure = "present"
+ owner = "root"
+ group = "root"
+ mode = 0644
+ requires = resources(:file => "/etc/nsswitch.conf")
+end
+
+remote_file "nsswitch.conf" {
+ path "/etc/nsswitch.conf"
+ source "nsswitch.conf"
+ module "openldap"
+ mode 0644
+ owner "root"
+ group "root"
requires :file => "nsswitch-ldap-file", :exec => [ "one", "two" ]
- requires = resource(:file => "nsswitch-ldap-file")
- notifies = resource(:service => "nscd", :exec => [ "nscd-clear-passwd", "nscd-clear-group" ] )
- subscribes =
+ notifies :service => "nscd", :exec => [ "nscd-clear-passwd", "nscd-clear-group" ]
+ provider 'File::Rsync'
+}
+
+remote_file "nsswitch.conf" {
+ path = "/etc/nsswitch.conf"
+ source = "nsswitch.conf"
+ module = "openldap"
+ mode = 0644
+ owner = "root"
+ group = "root"
+ requires = resources :file => "nsswitch-ldap-file",
+ :exec => [ "one", "two" ]
+ notifies = resources :service => "nscd",
+ :exec => [ "nscd-clear-passwd", "nscd-clear-group" ]
provider = 'File::Rsync'
-end
+}
service "nscd" do |s|
- s.ensure = "running"
+ s.insure = "running"
end
case node[:lsbdistid]
@@ -36,7 +71,7 @@ when "CentOS"
f.require = resource(:package => "nss_ldap")
end
package "nss_ldap" do |p|
- p.ensure = "latest"
+ p.insure = "latest"
end
end