Skip to content

Commit

Permalink
set download to happen if module is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrill Poole committed Dec 10, 2014
1 parent d0248d4 commit 92c820d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions manifests/flapjack/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
mode => '0444',
}

exec { 'flapjack.rb':
command => 'wget -O /etc/sensu/extensions/flapjack.rb https://raw.githubusercontent.com/sensu/sensu-community-plugins/master/extensions/handlers/flapjack.rb',
creates => '/etc/sensu/extensions/flapjack.rb',
before => File['/etc/sensu/extensions/flapjack.rb'],
}

file { '/etc/sensu/extensions/flapjack.rb':
ensure => $ensure,
owner => 'sensu',
group => 'sensu',
mode => '0444',
}

sensu_flapjack_config { $::fqdn:
ensure => $ensure,
host => $sensu::flapjack_redis_host,
Expand Down

0 comments on commit 92c820d

Please sign in to comment.