Puppet Class: oci_config
- Defined in:
- manifests/init.pp
Summary
Installs the required OCI GEM on the system.Overview
oci_config
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'manifests/init.pp', line 12
class oci_config(
String[1] $version,
Stdlib::Absolutepath $tmp_dir,
){
$source_file = "${tmp_dir}/oci-${version}.gem"
if $::oci_installed_gem != $version {
file {$source_file:
ensure => 'present',
source => "puppet:///modules/oci_config/oci-${version}.gem",
}
-> package {'oci':
ensure => $version,
provider => 'puppet_gem',
source => $source_file,
install_options => '--no-doc'
}
-> exec {'cleanup gem source':
command => "/bin/rm -f ${source_file}"
}
}
}
|