Commit bb116927 authored by root's avatar root

adding roles and profiles for rhel6 and rhel7 server

parent 4f6a62d8
......@@ -31,6 +31,10 @@ node 'fossrhel7.opstheater.vm' {
include opstheater::role::client::fossrhel7
}
node 'fossrhel6.opstheater.vm' {
include opstheater::role::client::fossrhel6
}
node default {
fail ('node $::fqdn unknown to site.pp')
}
class opstheater::profile::client::rhel6 {
include opstheater::profile::base::filebeat
include opstheater::profile::base::yum
include opstheater::profile::base::icinga
include opstheater::profile::icinga::client
$rand1 = fqdn_rand(30)
$rand2 = $rand1 + 30
cron { 'Puppet agent run':
command => '/opt/puppetlabs/bin/puppet agent --onetime --no-daemonize',
user => 'root',
minute => [ $rand1, $rand2],
}
}
class opstheater::profile::client::rhel7 {
include opstheater::profile::base::filebeat
include opstheater::profile::base::yum
include opstheater::profile::base::icinga
include opstheater::profile::icinga::client
$rand1 = fqdn_rand(30)
$rand2 = $rand1 + 30
cron { 'Puppet agent run':
command => '/opt/puppetlabs/bin/puppet agent --onetime --no-daemonize',
user => 'root',
minute => [ $rand1, $rand2],
}
}
class opstheater::role::client::fossrhel6 {
include opstheater::profile::client::rhel6
}
class opstheater::role::fossrhel7 {
class opstheater::role::client::fossrhel7 {
include opstheater::profile::client::rhel7
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment