Puppet Class: samba::config
- Defined in:
- manifests/config.pp
Overview
This class is called from samba for service config.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/config.pp', line 5
class samba::config {
assert_private('samba::config is a private class')
$config = $::samba::global_config
$definitions = $samba::shares_definitions
concat { "${samba::config_dir}/${samba::config_file}":
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
path => "${samba::config_dir}/${samba::config_file}",
}
concat::fragment { 'global':
target => "${samba::config_dir}/${samba::config_file}",
order => '0_global',
content => template($samba::global_config_template),
}
if ! empty($definitions) {
concat::fragment { 'shares':
target => "${samba::config_dir}/${samba::config_file}",
order => 'shares',
content => template($samba::shares_template),
}
}
}
|