blob: 26fba725bc79a467a0dfa5cc217f4502fc949c18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Install icli package and configure ncli aliases
class site_nagios::server::icli {
$nagios_hiera = hiera('nagios')
$environments = $nagios_hiera['environments']
package { 'icli':
ensure => installed;
}
file { '/root/.bashrc':
ensure => present;
}
file_line { 'icli aliases':
path => '/root/.bashrc',
line => 'source /root/.icli_aliases';
}
file { '/root/.icli_aliases':
content => template("${module_name}/icli_aliases.erb"),
mode => '0644',
owner => root,
group => 0,
require => Package['icli'];
}
}
|