diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/files/etc/icingaweb/config.ini b/.vagrant-puppet/profiles/icingaweb2_dev/files/etc/icingaweb/config.ini new file mode 100644 index 000000000..0ec657436 --- /dev/null +++ b/.vagrant-puppet/profiles/icingaweb2_dev/files/etc/icingaweb/config.ini @@ -0,0 +1,25 @@ +[logging] +enable = true +; Writing to a Stream +type = "file" +; Write data to the following file +target = "/vagrant/var/log/icingaweb.log" +; Write data to a PHP stream +;target = "php://output" + +; Writing to the System Log +;type = "syslog" +; Prefix all syslog messages generated with the string "icingaweb" +;application = "icingaweb" +;facility = "LOG_USER" + +level = 3 +; The default level is DEBUG, which means that only events of this level and +; above will be tracked. Level numbers descend in order of importance where +; ERROR (0) is the most important level and DEBUG (3) is the least important +; level: +; +; ERROR = 0 - Error: error conditions +; WARNING = 1 - Warning: warning conditions +; INFO = 2 - Informational: informational messages +; DEBUG = 3 - Debug: debug messages diff --git a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp index 8ef6ae57e..1c9d43d4d 100644 --- a/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp +++ b/.vagrant-puppet/profiles/icingaweb2_dev/manifests/init.pp @@ -32,12 +32,6 @@ class icingaweb2_dev { $cfgpath = '/etc/icingaweb' - file { "${cfgpath}/config.ini": - ensure => file, - owner => 'apache', - group => 'apache', - } - file { [ "${cfgpath}", "${cfgpath}/enabledModules", @@ -54,7 +48,7 @@ class icingaweb2_dev { source => 'puppet:///modules/icingaweb2_dev', } - icingaweb2::config { 'resources': + icingaweb2::config { [ 'resources', 'config' ]: source => 'puppet:///modules/icingaweb2_dev', replace => false, }