Skip to content

Commit

Permalink
icinga2::config: hardcode '/etc/icinga2' once less
Browse files Browse the repository at this point in the history
refs #6842
  • Loading branch information
Al2Klimov committed Sep 10, 2014
1 parent a99dbab commit e124a42
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .vagrant-puppet/modules/icinga2/manifests/config.pp
Expand Up @@ -17,15 +17,14 @@
# }
#
# Provide configuration file '/etc/icinga2/constants.conf'
# from 'puppet:///modules/icinga2_dev/etc/icinga2/constants.conf'
# ('/path/to/puppet/modules/icinga2_dev/files/etc/icinga2/constants.conf')
# from 'puppet:///modules/icinga2_dev/constants.conf'
# ('/path/to/puppet/modules/icinga2_dev/files/constants.conf')
#
define icinga2::config ($source) {
include icinga2

$path = "/etc/icinga2/${name}.conf"
file { $path:
source => "${source}${path}",
file { "/etc/icinga2/${name}.conf":
source => "${source}/${name}.conf",
owner => 'icinga',
group => 'icinga',
require => Class['icinga2'],
Expand Down

0 comments on commit e124a42

Please sign in to comment.