Hi,
I need to use puppet for updating app config files. I have the master/client
setup installed. What I wish to do is as follows.
1> Make changes to config file say httpd.conf and commit the changes to svn
2> Run puppet so that these changes are pushed to all nodes specified in my
site.pp
The site.pp is as follows
mport "CM/Backup/manifest/*"
node "182.168.2.2" {
include configmanifest
}
node "default" {
exec { "hostname_echo":
cwd => "/tmp",
path => "/usr/bin:/usr/sbin:/bin:/sbin",
command => "hostname",
}
}
The manifest.pp which is inside CM/Backup/manifest is as follows
class apache {
file {
"httpd.conf":
mode => 644,
owner => root,
group => admin,
}
exec {
path => "/usr/bin:/usr/sbin:/bin",
command => "svn up /usr/local/apache/conf/",
command => "/usr/local/apache/bin/apachectl graceful",}
}
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.