Puppet Class: puppet_agent::install::darwin
- Defined in:
- manifests/install/darwin.pp
Summary
Manage the install process for Darwin OSes specifically.Overview
Private class called from puppet_agent class.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'manifests/install/darwin.pp', line 14
class puppet_agent::install::darwin (
String $package_version,
Array[Variant[String, Hash]] $install_options = [],
) {
assert_private()
$install_script = 'osx_install.sh.erb'
$_logfile = "${facts['env_temp_variable']}/osx_install.log"
notice("Puppet install log file at ${_logfile}")
$_installsh = "${facts['env_temp_variable']}/osx_install.sh"
file { $_installsh:
ensure => file,
mode => '0755',
content => template('puppet_agent/do_install.sh.erb'),
}
-> exec { 'osx_install script':
command => "${_installsh} ${facts['puppet_agent_pid']} 2>&1 > ${_logfile} &",
}
}
|