diff --git a/.vagrant-puppet/files/etc/httpd/conf.d/icinga2-doc.conf b/.vagrant-puppet/files/etc/httpd/conf.d/icinga2-doc.conf deleted file mode 100644 index 50bb2f620..000000000 --- a/.vagrant-puppet/files/etc/httpd/conf.d/icinga2-doc.conf +++ /dev/null @@ -1,5 +0,0 @@ -Alias /icinga2-doc "/usr/share/doc/icinga2/htdocs" - -RewriteEngine On -RewriteRule ^/$ /icinga2-doc/#vagrant [NE,L,R=301] - diff --git a/.vagrant-puppet/files/var/www/html/icinga_wall.png b/.vagrant-puppet/files/var/www/html/icinga_wall.png new file mode 100644 index 000000000..fb0130e5b Binary files /dev/null and b/.vagrant-puppet/files/var/www/html/icinga_wall.png differ diff --git a/.vagrant-puppet/files/var/www/html/index.html b/.vagrant-puppet/files/var/www/html/index.html new file mode 100644 index 000000000..fdb5cf0b0 --- /dev/null +++ b/.vagrant-puppet/files/var/www/html/index.html @@ -0,0 +1,104 @@ + + + + Icinga 2 Demo Vagrant Box + + + + + + +

Welcome to the Icinga 2.x Cluster Demo Vagrant Box!

+ +

GUI

+

+Available user interfaces. +

+ + + + +
GUIUrlCredentials
Icinga Classic UI/icingaicingaadmin/icingaadmin
Icinga Web/icinga-webroot/password
+ +

SSH

+SSH is available through 'vagrant ssh $hostname' with passwordless sudo ('sudo -i'). + +

Documentation

+The official Icinga 2 documentation is available at docs.icinga.org. + + diff --git a/.vagrant-puppet/manifests/default.pp b/.vagrant-puppet/manifests/default.pp index 21b789ede..cf9fbc22e 100644 --- a/.vagrant-puppet/manifests/default.pp +++ b/.vagrant-puppet/manifests/default.pp @@ -5,13 +5,29 @@ include icinga2-icinga-web include nagios-plugins include nsca-ng -# icinga 2 docs at /icinga2-doc -file { '/etc/httpd/conf.d/icinga2-doc.conf': - source => 'puppet:////vagrant/.vagrant-puppet/files/etc/httpd/conf.d/icinga2-doc.conf', - require => [ Package['apache'], Package['icinga2-doc'] ], - notify => Service['apache'] + +#################################### +# 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' }