Skip to content

Commit

Permalink
fixes #6: graylog2 base container
Browse files Browse the repository at this point in the history
  • Loading branch information
ehazlett committed Apr 10, 2013
1 parent 22d7eb3 commit 601957c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crate/containers/__init__.py
@@ -1,3 +1,3 @@
import apache2, core, graphite, haproxy, memcached, mongodb, mysql, nginx, \
openresty, postgres, puppetdb, puppetdashboard, puppetmaster, rabbitmq, \
solr, sentry, redis, uwsgi
import apache2, core, graphite, graylog2, haproxy, memcached, mongodb, mysql, \
nginx, openresty, postgres, puppetdb, puppetdashboard, puppetmaster, \
rabbitmq, solr, sentry, redis, uwsgi
19 changes: 19 additions & 0 deletions crate/containers/graylog2.py
@@ -0,0 +1,19 @@
#!/usr/bin/env python
# Copyright (c) 2013 Evan Hazlett
#
import base

def get_script():
"""
Returns the base cloud-init provisioning script for Graylog2
"""
tmpl = base.get_script()
tmpl += """
install_core_packages
install_puppet
cd $MODULE_DIR
puppet apply -e "include graylog2" --modulepath modules
"""
return tmpl
1 change: 1 addition & 0 deletions crate/core.py
Expand Up @@ -19,6 +19,7 @@
'apache2': containers.apache2.get_script,
'core': containers.core.get_script,
'graphite': containers.graphite.get_script,
'graylog2': containers.graylog2.get_script,
'haproxy': containers.haproxy.get_script,
'memcached': containers.memcached.get_script,
'mongodb': containers.mongodb.get_script,
Expand Down

0 comments on commit 601957c

Please sign in to comment.