Puppet Class: cloudinsight_agent::redhat
- Defined in:
- manifests/redhat.pp
Overview
Class: cloudinsight_agent::redhat
This class contains the cloudinsight-agent installation mechanism for Red Hat derivatives
Parameters:
$baseurl:
Baseurl for the cloudinsight yum repo
Defaults to http://yum.oneapm.com/${::architecture}/
Actions:
Requires:
Sample Usage:
16 17 18 19 20 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 |
# File 'manifests/redhat.pp', line 16
class cloudinsight_agent::redhat(
$baseurl = "http://yum.oneapm.com/${::architecture}/"
) {
validate_string($baseurl)
yumrepo {'cloudinsight-agent':
enabled => 1,
gpgcheck => 0,
descr => 'OneAPM, Inc.',
baseurl => $baseurl,
}
package { 'cloudinsight-agent-base':
ensure => absent,
before => Package['cloudinsight-agent'],
}
package { 'cloudinsight-agent':
ensure => latest,
require => Yumrepo['cloudinsight-agent'],
}
service { 'cloudinsight-agent':
ensure => $::cloudinsight_agent::service_ensure,
enable => $::cloudinsight_agent::service_enable,
hasstatus => false,
pattern => 'cloudinsight-agent',
require => Package['cloudinsight-agent'],
}
}
|