Last active
December 20, 2015 09:09
-
-
Save darkhelmet/6105905 to your computer and use it in GitHub Desktop.
Puppet manifest for scout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "setup" | |
node server { | |
scout { "role1,role2": | |
gems => ["redis", "resque"] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define scout($key, $gems = false, $ensure = present) { | |
package { "scout": | |
provider => gem, | |
ensure => latest | |
} | |
cron { "scout": | |
ensure => $ensure, | |
user => root, | |
command => "scout ${key} -r ${name}", | |
require => Package["scout"], | |
hour => "*", | |
minute => "*" | |
} | |
if $gems { | |
package { $gems: | |
provider => gem, | |
ensure => latest | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scout { | |
key => "my-scout-api-key" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment