puppet-standalone-mashup/additional-modules/squid/manifests/debian.pp

28 lines
710 B
ObjectPascal
Raw Normal View History

2012-05-17 15:11:25 +00:00
class squid::debian($version, $config_template, $error_template) {
2012-05-17 00:33:40 +00:00
$squid_user = 'squid'
$squid_group = 'squid'
user { $squid_user: uid => 6574 }
class { 'squid':
version => $version,
user => 'squid',
config_template => $config_template,
2012-05-17 15:11:25 +00:00
error_template => $error_template,
2012-05-17 00:33:40 +00:00
require => User['squid']
}
init_d_bundle { 'squid':
init_d_prolog => template('squid/debian/init-d-prolog'),
init_d_prerun => template('squid/debian/init-d-prerun'),
require => Class['squid']
}
exec { 'ensure-data-dir-ownership':
2012-05-17 15:11:25 +00:00
command => "chown -R ${squid_user}:${squid_group} ${squid::data_dir} ${squid::log_dir}",
2012-05-17 00:33:40 +00:00
path => $base::path,
require => Class['squid']
}
}