diff options
author | Micah <micah@riseup.net> | 2014-12-19 14:52:37 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2014-12-19 14:52:37 +0000 |
commit | 3d6ede7a695c7dadaf573213e8805df4300c7305 (patch) | |
tree | cfbce92242ca1cd091456c3a10c0777d37b3fbad /puppet/modules/site_nagios/manifests/server | |
parent | d024a172ee4b2dc7fca4fe4251c930ff437f1f1b (diff) | |
parent | 784cc8dcc03f63587206d62b5d49843eb974dbe1 (diff) |
Merge branch 'develop' into 'develop'
Install icli package and configure ncli aliases (solves #6475)
This installs icli package and ncli aliases on nagios server.
https://leap.se/code/issues/6475
See merge request !21
Diffstat (limited to 'puppet/modules/site_nagios/manifests/server')
-rw-r--r-- | puppet/modules/site_nagios/manifests/server/icli.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/manifests/server/icli.pp b/puppet/modules/site_nagios/manifests/server/icli.pp new file mode 100644 index 00000000..26fba725 --- /dev/null +++ b/puppet/modules/site_nagios/manifests/server/icli.pp @@ -0,0 +1,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']; + } +}
\ No newline at end of file |