29 lines
639 B
ObjectPascal
29 lines
639 B
ObjectPascal
|
|
### Site.pp for the <your environment> environment @ <your site>
|
||
|
|
|
||
|
|
### variable for the puppet master
|
||
|
|
$puppetserver = '<your puppetmaster>'
|
||
|
|
|
||
|
|
# exec paths
|
||
|
|
Exec { path => ['/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/'] }
|
||
|
|
|
||
|
|
# create file bucket for backups
|
||
|
|
filebucket { 'main':
|
||
|
|
path => false, # This is required for remote filebuckets.
|
||
|
|
}
|
||
|
|
|
||
|
|
# create backups when replacing files
|
||
|
|
File { backup => main, }
|
||
|
|
|
||
|
|
# virtual packages
|
||
|
|
Package {
|
||
|
|
allow_virtual => false,
|
||
|
|
}
|
||
|
|
|
||
|
|
### global firewall ###
|
||
|
|
Firewall {
|
||
|
|
before => Class['my-fw::post'],
|
||
|
|
require => Class['my-fw::pre'],
|
||
|
|
}
|
||
|
|
class {['my-fw::pre', 'my-fw::post']: }
|
||
|
|
class { 'my-fw': }
|