Puppet Class: samba
- Defined in:
- manifests/init.pp
Overview
Class: samba
Main class that includes all other classes for the samba module.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/init.pp', line 21
class samba (
Stdlib::Absolutepath $config_dir = '/etc/samba',
String $config_file = 'smb.conf',
Hash $global_config = {},
String $global_config_template = 'samba/global.erb',
String $package_ensure = 'present',
String $package_name = 'samba',
Boolean $service_nmb_enable = false,
Enum['running', 'stopped'] $service_nmb_ensure = 'stopped',
String $service_nmb_name = 'nmb',
Boolean $service_smb_enable = true,
Enum['running', 'stopped'] $service_smb_ensure = 'running',
String $service_smb_name = 'smb',
Hash $shares_definitions = {},
String $shares_template = 'samba/shares.erb',
) {
case $::operatingsystem {
'RedHat', 'CentOS': {
contain samba::install
contain samba::config
contain samba::service
Class['samba::install']
-> Class['samba::config']
~> Class['samba::service']
}
default: {
fail("${::operatingsystem} not supported")
}
}
}
|