2013-10-13 17:15:35 +02:00
|
|
|
include apache
|
2014-01-04 13:34:29 +01:00
|
|
|
include icinga2
|
2014-01-04 13:07:30 +01:00
|
|
|
include icinga2-classicui
|
2014-01-04 13:34:29 +01:00
|
|
|
include icinga2-icinga-web
|
2013-10-15 09:36:29 +02:00
|
|
|
include nagios-plugins
|
2013-11-24 17:47:34 +01:00
|
|
|
include nsca-ng
|
2013-10-13 17:15:35 +02:00
|
|
|
|
2014-05-27 16:20:33 +02:00
|
|
|
|
|
|
|
####################################
|
|
|
|
# Start page at http://localhost/
|
|
|
|
####################################
|
|
|
|
|
|
|
|
file { '/var/www/html/index.html':
|
|
|
|
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/index.html',
|
|
|
|
owner => 'apache',
|
|
|
|
group => 'apache',
|
|
|
|
require => Package['apache']
|
2013-10-13 17:15:35 +02:00
|
|
|
}
|
|
|
|
|
2014-05-27 16:20:33 +02:00
|
|
|
file { '/var/www/html/icinga_wall.png':
|
|
|
|
source => 'puppet:////vagrant/.vagrant-puppet/files/var/www/html/icinga_wall.png',
|
|
|
|
owner => 'apache',
|
|
|
|
group => 'apache',
|
|
|
|
require => Package['apache']
|
|
|
|
}
|
|
|
|
|
|
|
|
####################################
|
|
|
|
# Misc
|
|
|
|
####################################
|
|
|
|
|
2014-03-13 13:35:06 +01:00
|
|
|
package { 'vim-enhanced':
|
2014-03-04 16:19:28 +01:00
|
|
|
ensure => 'installed'
|
|
|
|
}
|
|
|
|
|
2013-10-13 17:15:35 +02:00
|
|
|
file { '/etc/motd':
|
|
|
|
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/motd',
|
2013-10-15 10:12:30 +02:00
|
|
|
owner => root,
|
|
|
|
group => root
|
2013-10-13 17:15:35 +02:00
|
|
|
}
|
2013-12-12 09:04:40 +01:00
|
|
|
|
|
|
|
user { 'vagrant':
|
2013-12-20 09:58:05 +01:00
|
|
|
groups => ['icinga', 'icingacmd'],
|
|
|
|
require => [User['icinga'], Group['icingacmd']]
|
2013-12-12 09:04:40 +01:00
|
|
|
}
|