Last active
December 13, 2015 20:29
-
-
Save aussielunix/4970731 to your computer and use it in GitHub Desktop.
how to set ordering at a node level.
This includes ensuring your apt repo is installed before installing packages.
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
node default { | |
include mongo | |
# Apt::Source things must always happen before Package things | |
# | |
Apt::Source <| |> -> Package <| |> | |
# ensure your apt repo is available | |
# this is where I have graylog2 and elasticsearch packages | |
# | |
class { 'aussielunix::repo': } | |
# install elasticsearch and set the clustername to be the same | |
# as the graylog2-elasticsearch node | |
# | |
class { 'elasticsearch': | |
clustername => 'graylog2' | |
} | |
class { 'graylog2server': | |
es_cluster_name => 'graylog2' | |
} | |
# starts up under webrick using upstart | |
# default is to not startup so you can manage it from | |
# another module. passenger or unicorn or nginx etc | |
# | |
class { 'graylog2web': | |
enable => true, | |
start => true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment