icinga2/.vagrant-puppet/manifests/default.pp

45 lines
1016 B
Puppet

include apache
include icinga2
include icinga2-classicui
include icinga2-icinga-web
include nagios-plugins
include nsca-ng
####################################
# 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']
}
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
####################################
package { 'vim-enhanced':
ensure => 'installed'
}
file { '/etc/motd':
source => 'puppet:////vagrant/.vagrant-puppet/files/etc/motd',
owner => root,
group => root
}
user { 'vagrant':
groups => ['icinga', 'icingacmd'],
require => [User['icinga'], Group['icingacmd']]
}