Puppet Class: ps1h
- Defined in:
- manifests/init.pp
Summary
PS1 HelpersOverview
PS1 Helper files used by assorted custom Puppet modules.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'manifests/init.pp', line 7
class ps1h (
) {
$ps1_files = ['helpers.ps1', 'helpers-output.ps1', 'helpers-permission.ps1']
$system_drive = $facts['env_windows_installdir'].split('\\\\')[0]
$ps1h_directory = "${system_drive}\\ProgramData\\${module_name}"
file { $ps1h_directory:
ensure => directory,
}
$ps1_files.each | String $ps1_file | {
file { "Place '${ps1h_directory}\\${ps1_file}'":
ensure => 'file',
path => "${ps1h_directory}\\${ps1_file}",
source => "puppet:///modules/${module_name}/${ps1_file}",
}
}
file { "Place '${ps1h_directory}\\readme.txt'":
ensure => 'file',
path => "${ps1h_directory}\\readme.txt",
source => "puppet:///modules/${module_name}/readme.txt",
}
}
|