25 April 2012

puppet master: push one directory

If you want to push/copy a full directory from puppet master to clients and keep it in sync, you can use the following configuration:

file { "/etc/apache2/":
  ensure => directory,
  recurse => true,
  purge => true,
  force => true,
  owner => "root",
  group => "root",
  mode => 0644,
  source => "puppet:///apache/conf/",

No comments:

Post a Comment