Permalink
Browse files

Merge pull request #72 from rcousens/master

Update config to notify influxdb service when content changes
  • Loading branch information...
dgolja committed May 31, 2018
2 parents 9aa2d75 + ee18352 commit c94011a51f3eda9ba425f2ed57c8a1eb2c81810c
Showing with 13 additions and 7 deletions.
  1. +0 −2 .travis.yml
  2. +8 −0 manifests/config.pp
  3. +5 −5 manifests/init.pp
View
@@ -6,8 +6,6 @@ script: "bundle exec rake test SPEC_OPTS='--format documentation'"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.6
View
@@ -32,12 +32,19 @@
$hinted_handoff_config = $influxdb::hinted_handoff_config,
) {
$notify = $influxdb::manage_service ? {
true => Service['influxdb'],
false => undef,
default => undef,
}
file { $conf:
ensure => 'file',
owner => $conf_owner,
group => $conf_group,
mode => $conf_mode,
content => template($conf_template),
notify => $notify,
require => Package['influxdb'],
}
@@ -49,6 +56,7 @@
group => $conf_group,
mode => $conf_mode,
content => template($startup_conf_template),
notify => $notify,
require => Package['influxdb'],
}
View
@@ -39,10 +39,10 @@
$manage_repos = $influxdb::params::manage_repos,
) inherits influxdb::params {
anchor { 'influxdb::start': } ->
class { 'influxdb::install': } ->
class { 'influxdb::config': } ->
class { 'influxdb::service': } ->
anchor { 'influxdb::end': }
anchor { 'influxdb::start': }
-> class { 'influxdb::install': }
-> class { 'influxdb::config': }
-> class { 'influxdb::service': }
-> anchor { 'influxdb::end': }
}

0 comments on commit c94011a

Please sign in to comment.