Puppet Notes

The purpose of this document is to record my misc notes on Puppet.

Symlinks # /opt/config -> /opt/jgs/conf file { "/opt/config": ensure => 'link', target => '/opt/jgs/conf', }

Recursive directories

# /opt/jgs/conf recursive directory file { "/opt/jgs/conf": ensure => "directory", ensure => directory, recurse => true, purge => true, # purge all unmanaged junk force => true, # also purge subdirs and links etc. owner => "root", group => "root", mode => 750, source => ["puppet:///modules/jgs_app_server/opt/jgs/conf",] }

[Edit]