rubber 1.15.0 → 2.0.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +10 -0
- data/CHANGELOG +68 -1
- data/Gemfile +4 -0
- data/{COPYING → LICENSE} +0 -0
- data/Rakefile +89 -0
- data/bin/rubber +17 -0
- data/lib/rubber.rb +12 -6
- data/lib/rubber/cli.rb +30 -0
- data/lib/rubber/cloud.rb +2 -1
- data/lib/rubber/cloud/aws.rb +58 -298
- data/lib/rubber/cloud/aws_table_store.rb +127 -0
- data/lib/rubber/cloud/fog.rb +313 -0
- data/lib/rubber/cloud/fog_storage.rb +143 -0
- data/lib/rubber/commands/config.rb +70 -0
- data/lib/rubber/commands/cron.rb +127 -0
- data/lib/rubber/commands/util.rb +308 -0
- data/lib/rubber/commands/vulcanize.rb +197 -0
- data/lib/rubber/configuration.rb +20 -9
- data/lib/rubber/dns.rb +2 -1
- data/lib/rubber/dns/base.rb +6 -8
- data/lib/rubber/dns/fog.rb +117 -0
- data/lib/rubber/dns/nettica.rb +6 -1
- data/lib/rubber/dns/zerigo.rb +8 -103
- data/lib/rubber/environment.rb +25 -6
- data/lib/rubber/generator.rb +2 -0
- data/lib/rubber/instance.rb +121 -19
- data/lib/rubber/recipes/rubber.rb +3 -4
- data/lib/rubber/recipes/rubber/deploy.rb +12 -12
- data/lib/rubber/recipes/rubber/instances.rb +30 -31
- data/lib/rubber/recipes/rubber/security_groups.rb +2 -2
- data/lib/rubber/recipes/rubber/setup.rb +139 -42
- data/lib/rubber/recipes/rubber/utils.rb +12 -7
- data/lib/rubber/recipes/rubber/volumes.rb +2 -2
- data/lib/rubber/tag.rb +3 -8
- data/lib/rubber/util.rb +43 -22
- data/lib/rubber/version.rb +4 -0
- data/rubber.gemspec +44 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/deploy-apache.rb +2 -2
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/deflate.conf +0 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/expires.conf +0 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/headers.conf +0 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/ports.conf +0 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/setenvif.conf +0 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +51 -23
- data/{lib/generators/vulcanize/templates → templates}/apache/config/rubber/role/web_tools/tools-apache.auth +1 -1
- data/templates/apache/config/rubber/role/web_tools/tools-index.html +38 -0
- data/{generators/vulcanize/templates → templates}/apache/config/rubber/rubber-apache.yml +0 -0
- data/{generators/vulcanize/templates → templates}/apache/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/base/Capfile +6 -0
- data/{lib/generators/vulcanize/templates → templates}/base/config/deploy.rb +13 -3
- data/templates/base/config/rubber/common/crontab +21 -0
- data/{generators/vulcanize/templates → templates}/base/config/rubber/common/rsyslog.conf +0 -0
- data/{generators/vulcanize/templates → templates}/base/config/rubber/common/rubber.profile +4 -4
- data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/deploy-setup.rb +1 -1
- data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/deploy-util.rb +17 -23
- data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber-dns.yml +7 -0
- data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber-rvm.yml +6 -6
- data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber.yml +54 -20
- data/templates/base/script/rubber +8 -0
- data/templates/base/templates.rb +7 -0
- data/templates/base/templates.yml +1 -0
- data/{lib/generators/vulcanize/templates → templates}/cassandra/config/rubber/deploy-cassandra.rb +1 -1
- data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/cassandra.in.sh +0 -0
- data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/cassandra.yaml +0 -0
- data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/log4j-server.properties +0 -0
- data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/rubber-cassandra.yml +0 -0
- data/{generators/vulcanize/templates → templates}/cassandra/templates.yml +0 -0
- data/templates/collectd/config/rubber/deploy-collectd.rb +48 -0
- data/templates/collectd/config/rubber/role/collectd/collectd.conf +69 -0
- data/templates/collectd/config/rubber/role/collectd/filters.conf +35 -0
- data/templates/collectd/config/rubber/role/collectd/thresholds.conf +76 -0
- data/templates/collectd/config/rubber/role/collectd/types.db +5 -0
- data/templates/collectd/config/rubber/role/passenger/collectd-passenger.conf +7 -0
- data/templates/collectd/config/rubber/role/passenger/collectd-passenger.rb.conf +77 -0
- data/{lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf → templates/collectd/config/rubber/role/passenger/passenger-status-sudoers.conf} +1 -1
- data/templates/collectd/config/rubber/role/postgresql/collectd-postgresql.conf +22 -0
- data/templates/collectd/config/rubber/role/postgresql_slave/collectd-postgresql-threshold.conf +23 -0
- data/templates/collectd/config/rubber/rubber-collectd.yml +8 -0
- data/templates/collectd/script/collectd/collectd-runner.rb +107 -0
- data/templates/collectd/script/collectd/role/examples/example_db_query.rb +19 -0
- data/templates/collectd/script/collectd/role/examples/example_simple.rb +1 -0
- data/templates/collectd/script/collectd/role/postgresql_slave/replication_status.rb +31 -0
- data/templates/collectd/script/collectd/role/redis/redis_info.rb +28 -0
- data/templates/collectd/script/collectd/role/resque_worker/global_worker_stats.rb +12 -0
- data/templates/collectd/script/collectd/role/resque_worker/host_worker_stats.rb +70 -0
- data/templates/collectd/script/collectd/role/resque_worker/resque_jobs_processed.rb +8 -0
- data/templates/collectd/templates.yml +2 -0
- data/{generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +0 -0
- data/{generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +5 -5
- data/{lib/generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/rubber-complete.yml +1 -1
- data/{lib/generators/vulcanize/templates → templates}/complete_mongrel_mysql/templates.yml +2 -2
- data/{generators/vulcanize/templates → templates}/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/complete_passenger/config/rubber/rubber-complete.yml +1 -1
- data/{generators/vulcanize/templates → templates}/complete_passenger/templates.rb +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger/templates.yml +4 -2
- data/{generators/vulcanize/templates → templates}/complete_passenger_mysql/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/config/rubber/role/haproxy/haproxy-passenger.conf +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/config/rubber/rubber-complete.yml +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/templates.rb +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/templates.yml +2 -2
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx_mysql/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_nginx_postgresql/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/complete_passenger_postgresql/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/deploy-cruise.rb +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/cruise +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/my.cnf +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/production.rb +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/site_config.rb +1 -1
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/web_tools/cruise-nginx.conf +0 -0
- data/{generators/vulcanize/templates → templates}/cruise/config/rubber/rubber-cruise.yml +6 -0
- data/{generators/vulcanize/templates → templates}/cruise/templates.yml +0 -0
- data/templates/elasticsearch/config/rubber/deploy-elasticsearch.rb +47 -0
- data/templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf +23 -0
- data/templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch.yml +348 -0
- data/templates/elasticsearch/config/rubber/role/elasticsearch/logging.yml +48 -0
- data/templates/elasticsearch/config/rubber/rubber-elasticsearch.yml +12 -0
- data/templates/elasticsearch/templates.yml +2 -0
- data/templates/graphite/config/rubber/deploy-graphite.rb +255 -0
- data/templates/graphite/config/rubber/role/collectd/graphite-collectd.conf +19 -0
- data/templates/graphite/config/rubber/role/graphite_server/carbon.conf +232 -0
- data/templates/graphite/config/rubber/role/graphite_server/graphite-collectd-ping.conf +11 -0
- data/templates/graphite/config/rubber/role/graphite_server/graphite_server-upstart.conf +16 -0
- data/templates/graphite/config/rubber/role/graphite_server/storage-schemas.conf +19 -0
- data/templates/graphite/config/rubber/role/graphite_web/crontab +8 -0
- data/templates/graphite/config/rubber/role/graphite_web/dashboard.conf +60 -0
- data/templates/graphite/config/rubber/role/graphite_web/graphite-vhost.conf +62 -0
- data/templates/graphite/config/rubber/role/graphite_web/graphite.wsgi +10 -0
- data/templates/graphite/config/rubber/role/graphite_web/local_settings.py +98 -0
- data/templates/graphite/config/rubber/rubber-graphite.yml +20 -0
- data/templates/graphite/templates.yml +1 -0
- data/templates/graylog/config/initializers/graylog.rb +53 -0
- data/templates/graylog/config/rubber/deploy-graylog.rb +118 -0
- data/templates/graylog/config/rubber/role/common/graylog-rsyslog.conf +32 -0
- data/templates/graylog/config/rubber/role/graylog_server/graylog2.conf +67 -0
- data/templates/graylog/config/rubber/role/graylog_server/graylog_server-upstart.conf +22 -0
- data/templates/graylog/config/rubber/role/graylog_web/crontab +9 -0
- data/templates/graylog/config/rubber/role/graylog_web/email.yml +16 -0
- data/templates/graylog/config/rubber/role/graylog_web/general.yml +27 -0
- data/templates/graylog/config/rubber/role/graylog_web/graylog_web-upstart.conf +21 -0
- data/templates/graylog/config/rubber/role/graylog_web/mongoid.yml +28 -0
- data/templates/graylog/config/rubber/rubber-graylog.yml +42 -0
- data/templates/graylog/templates.rb +5 -0
- data/templates/graylog/templates.yml +5 -0
- data/{lib/generators/vulcanize/templates → templates}/haproxy/config/rubber/deploy-haproxy.rb +2 -2
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/haproxy-base.conf +0 -0
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/haproxy-default.conf +0 -0
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +0 -0
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/syslogd-default.conf +0 -0
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +0 -0
- data/templates/haproxy/config/rubber/role/web_tools/rubber-web-tools-haproxy.html +18 -0
- data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/rubber-haproxy.yml +0 -0
- data/{generators/vulcanize/templates → templates}/haproxy/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/jetty/config/rubber/deploy-jetty.rb +0 -0
- data/{generators/vulcanize/templates → templates}/jetty/config/rubber/role/jetty/jetty.sh +0 -0
- data/{generators/vulcanize/templates → templates}/jetty/config/rubber/role/jetty/jetty.xml +0 -0
- data/{generators/vulcanize/templates → templates}/jetty/config/rubber/rubber-jetty.yml +0 -0
- data/{generators/vulcanize/templates → templates}/jetty/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/memcached/config/memcached.yml +0 -0
- data/{generators/vulcanize/templates → templates}/memcached/config/rubber/common/memcached.yml +2 -2
- data/{generators/vulcanize/templates → templates}/memcached/config/rubber/role/memcached/memcached.conf +0 -0
- data/{generators/vulcanize/templates → templates}/memcached/config/rubber/rubber-memcached.yml +0 -0
- data/{generators/vulcanize/templates → templates}/memcached/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/minimal_mysql/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/minimal_nodb/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/minimal_passenger_nginx/config/rubber/rubber-complete.yml +0 -0
- data/{generators/vulcanize/templates → templates}/minimal_passenger_nginx/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/mongodb/config/rubber/deploy-mongodb.rb +17 -14
- data/templates/mongodb/config/rubber/role/mongodb/mongodb-defaults.conf +5 -0
- data/{lib/generators/vulcanize/templates → templates}/mongodb/config/rubber/role/mongodb/mongodb.conf +4 -1
- data/{generators/vulcanize/templates → templates}/mongodb/config/rubber/rubber-mongodb.yml +0 -0
- data/templates/mongodb/templates.yml +1 -0
- data/{generators/vulcanize/templates → templates}/mongrel/config/rubber/deploy-mongrel.rb +1 -1
- data/{generators/vulcanize/templates → templates}/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +3 -3
- data/{lib/generators/vulcanize/templates → templates}/mongrel/config/rubber/rubber-mongrel.yml +1 -1
- data/{generators/vulcanize/templates → templates}/mongrel/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/monit/config/rubber/deploy-monit.rb +4 -4
- data/{lib/generators/vulcanize/templates/apache → templates/monit}/config/rubber/role/apache/monit-apache.conf +1 -1
- data/{generators/vulcanize/templates/cassandra → templates/monit}/config/rubber/role/cassandra/monit-cassandra.conf +1 -1
- data/templates/monit/config/rubber/role/elasticsearch/monit-elasticsearch.conf +8 -0
- data/templates/monit/config/rubber/role/graphite_server/monit-graphite_server.conf +8 -0
- data/templates/monit/config/rubber/role/graylog_server/monit-graylog_server.conf +8 -0
- data/templates/monit/config/rubber/role/graylog_web/monit-graylog_web.conf +8 -0
- data/{generators/vulcanize/templates/haproxy → templates/monit}/config/rubber/role/haproxy/monit-haproxy.conf +1 -1
- data/{generators/vulcanize/templates/jetty → templates/monit}/config/rubber/role/jetty/monit-jetty.conf +1 -1
- data/{lib/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/monit-mongodb.cnf → templates/monit/config/rubber/role/mongodb/monit-mongodb.conf} +2 -2
- data/{generators/vulcanize/templates/mongrel → templates/monit}/config/rubber/role/mongrel/monit-mongrel.conf +4 -4
- data/{generators/vulcanize/templates/monit/config/rubber/common → templates/monit/config/rubber/role/monit}/monit-default.conf +0 -0
- data/{generators/vulcanize/templates/base/config/rubber/common → templates/monit/config/rubber/role/monit}/monit-postfix.conf +0 -0
- data/{generators/vulcanize/templates/monit/config/rubber/common → templates/monit/config/rubber/role/monit}/monit.conf +0 -0
- data/{generators/vulcanize/templates/munin/config/rubber/common → templates/monit/config/rubber/role/munin}/monit-munin.conf +0 -0
- data/{lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf → templates/monit/config/rubber/role/mysql/monit-mysql.conf} +1 -1
- data/{lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf → templates/monit/config/rubber/role/mysql_proxy/monit-mysql_proxy.conf} +1 -1
- data/{generators/vulcanize/templates/nginx → templates/monit}/config/rubber/role/nginx/monit-nginx.conf +1 -1
- data/{generators/vulcanize/templates/passenger_nginx → templates/monit}/config/rubber/role/passenger_nginx/monit-nginx.conf +1 -1
- data/{lib/generators/vulcanize/templates/postgresql/config/rubber/role/db → templates/monit/config/rubber/role/postgresql}/monit-postgresql.conf +1 -1
- data/templates/monit/config/rubber/role/redis/monit-redis.conf +8 -0
- data/templates/monit/config/rubber/role/resque_web/monit-resque_web.conf +10 -0
- data/templates/monit/config/rubber/role/resque_worker/monit-resque_pool.conf +8 -0
- data/{generators/vulcanize/templates/sphinx → templates/monit}/config/rubber/role/sphinx/monit-sphinx.conf +4 -4
- data/{generators/vulcanize/templates → templates}/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +0 -0
- data/templates/monit/config/rubber/role/web_tools/rubber-web-tools-monit.html +19 -0
- data/templates/monit/config/rubber/rubber-monit.yml +11 -0
- data/{generators/vulcanize/templates → templates}/monit/templates.yml +1 -0
- data/templates/munin/config/rubber/deploy-munin.rb +81 -0
- data/{generators/vulcanize/templates/memcached → templates/munin}/config/rubber/role/memcached/memcached_munin_plugin +0 -0
- data/{generators/vulcanize/templates/munin/config/rubber/common → templates/munin/config/rubber/role/munin}/munin-node.conf +0 -0
- data/{generators/vulcanize/templates/munin/config/rubber/common → templates/munin/config/rubber/role/munin}/munin-plugins.conf +0 -0
- data/{generators/vulcanize/templates/mysql → templates/munin}/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +0 -0
- data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger-memory.conf +0 -0
- data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger-sudoers.conf +0 -0
- data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger.conf +0 -0
- data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger-memory.conf +0 -0
- data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger-sudoers.conf +0 -0
- data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger.conf +0 -0
- data/{generators/vulcanize/templates/postgresql/config/rubber/role/db → templates/munin/config/rubber/role/postgresql}/munin-postgresql.conf +0 -0
- data/{generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin-nginx.conf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin-plugins.conf +3 -3
- data/{generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin.conf +0 -0
- data/templates/munin/config/rubber/role/web_tools/rubber-web-tools-munin.html +16 -0
- data/templates/munin/config/rubber/rubber-munin.yml +12 -0
- data/{lib/generators/vulcanize/templates → templates}/munin/script/munin/example_mysql_query.rb +1 -1
- data/{lib/generators/vulcanize/templates → templates}/munin/script/munin/example_simple.rb +1 -1
- data/{generators/vulcanize/templates → templates}/munin/templates.yml +1 -0
- data/{generators/vulcanize/templates → templates}/mysql/config/rubber/common/database.yml +3 -3
- data/{lib/generators/vulcanize/templates → templates}/mysql/config/rubber/deploy-mysql.rb +1 -15
- data/{generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/apparmor-mysql.conf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/crontab +3 -1
- data/{generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/my.cnf +0 -0
- data/{generators/vulcanize/templates → templates}/mysql/config/rubber/rubber-mysql.yml +9 -10
- data/{generators/vulcanize/templates → templates}/mysql/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +1 -1
- data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +3 -3
- data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_data/my.cnf +0 -0
- data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +0 -0
- data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +6 -3
- data/{generators/vulcanize/templates → templates}/mysql_cluster/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +0 -0
- data/{lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/database.yml +3 -3
- data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy +0 -0
- data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy.conf +0 -0
- data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy.lua +0 -0
- data/{generators/vulcanize/templates → templates}/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +3 -0
- data/{generators/vulcanize/templates → templates}/mysql_proxy/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/deploy-nginx.rb +0 -0
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/nginx/crontab +1 -1
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/nginx/nginx.conf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/nginx-tools.conf +8 -5
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/tools-index.html +7 -1
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/tools-nginx.auth +1 -1
- data/{generators/vulcanize/templates → templates}/nginx/config/rubber/rubber-nginx.yml +0 -0
- data/{generators/vulcanize/templates → templates}/nginx/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/passenger/config/rubber/deploy-passenger.rb +0 -0
- data/{generators/vulcanize/templates → templates}/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +5 -5
- data/{lib/generators/vulcanize/templates → templates}/passenger/config/rubber/role/passenger/passenger.conf +2 -2
- data/{lib/generators/vulcanize/templates → templates}/passenger/config/rubber/rubber-passenger.yml +2 -1
- data/{generators/vulcanize/templates → templates}/passenger/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/deploy-passenger_nginx.rb +1 -2
- data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/application.conf +3 -3
- data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/crontab +1 -1
- data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/nginx +0 -0
- data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf +2 -2
- data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf +2 -2
- data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/nginx-tools.conf +8 -5
- data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/tools-index.html +7 -1
- data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/tools-nginx.auth +1 -1
- data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/rubber-passenger_nginx.yml +1 -1
- data/{generators/vulcanize/templates → templates}/passenger_nginx/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/common/database.yml +2 -2
- data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/deploy-postgresql.rb +27 -47
- data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/crontab +3 -1
- data/templates/postgresql/config/rubber/role/db/pg_hba.conf +98 -0
- data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/postgresql-sysctl.conf +0 -0
- data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/postgresql.conf +50 -20
- data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/role/postgresql_slave/recovery.conf +34 -19
- data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/rubber-postgresql.yml +13 -13
- data/{generators/vulcanize/templates → templates}/postgresql/templates.yml +0 -0
- data/templates/redis/config/rubber/deploy-redis.rb +79 -0
- data/{lib/generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/crontab +3 -1
- data/{generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/redis-sysctl.conf +0 -0
- data/templates/redis/config/rubber/role/redis/redis-upstart.conf +23 -0
- data/{generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/redis.conf +62 -9
- data/templates/redis/config/rubber/rubber-redis.yml +17 -0
- data/{generators/vulcanize/templates → templates}/redis/templates.yml +0 -0
- data/{generators/vulcanize/templates → templates}/resque/config/initializers/resque.rb +0 -0
- data/templates/resque/config/resque-pool.yml +4 -0
- data/templates/resque/config/rubber/common/resque.yml +5 -0
- data/templates/resque/config/rubber/deploy-resque.rb +190 -0
- data/templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf +20 -0
- data/templates/resque/config/rubber/role/resque_worker/resque-pool-upstart.conf +50 -0
- data/templates/resque/config/rubber/role/resque_worker/resque-pool.yml +6 -0
- data/{generators/vulcanize/templates → templates}/resque/config/rubber/rubber-resque.yml +11 -1
- data/templates/resque/lib/tasks/resque.rake +18 -0
- data/templates/resque/templates.rb +2 -0
- data/{generators/vulcanize/templates → templates}/resque/templates.yml +0 -0
- data/{lib/generators/vulcanize/templates → templates}/sphinx/config/rubber/common/sphinx.yml +9 -9
- data/{generators/vulcanize/templates → templates}/sphinx/config/rubber/deploy-sphinx.rb +1 -1
- data/templates/sphinx/config/rubber/role/sphinx/crontab +11 -0
- data/{generators/vulcanize/templates → templates}/sphinx/config/rubber/rubber-sphinx.yml +0 -0
- data/{generators/vulcanize/templates → templates}/sphinx/templates.yml +0 -0
- data/templates/unicorn/config/rubber/deploy-unicorn.rb +35 -0
- data/templates/unicorn/config/rubber/role/nginx/unicorn_nginx.conf +56 -0
- data/templates/unicorn/config/rubber/role/unicorn/unicorn.rb +79 -0
- data/templates/unicorn/config/rubber/rubber-unicorn.yml +5 -0
- data/templates/unicorn/templates.yml +3 -0
- data/test/cloud/aws_table_store_test.rb +172 -0
- data/test/cloud/aws_test.rb +33 -0
- data/test/cloud/fog_storage_test.rb +183 -0
- data/test/cloud/fog_test.rb +34 -0
- data/test/command_test.rb +85 -0
- data/test/dns/fog_test.rb +131 -0
- data/test/environment_test.rb +135 -0
- data/test/fixtures/basic/common/bar.conf +4 -0
- data/test/fixtures/basic/common/foo.conf +4 -0
- data/test/fixtures/basic/host/host1/foo.conf +4 -0
- data/test/fixtures/basic/host/host2/foo.conf +4 -0
- data/test/fixtures/basic/role/role1/foo.conf +4 -0
- data/test/fixtures/basic/role/role2/foo.conf +4 -0
- data/test/fixtures/basic/rubber-extra.yml +1 -0
- data/test/fixtures/basic/rubber.yml +26 -0
- data/test/fixtures/expansion/rubber.yml +34 -0
- data/test/fixtures/generator_order/common/a_first.conf +5 -0
- data/test/fixtures/generator_order/common/z_last.conf +5 -0
- data/test/fixtures/generator_order/host/host1/a_first.conf +5 -0
- data/test/fixtures/generator_order/host/host1/z_last.conf +5 -0
- data/test/fixtures/generator_order/role/role1/a_first.conf +5 -0
- data/test/fixtures/generator_order/role/role1/z_last.conf +5 -0
- data/test/fixtures/generator_order/role/role2/a_first.conf +5 -0
- data/test/fixtures/generator_order/role/role2/z_last.conf +5 -0
- data/test/fixtures/instance_expansion/instance-test.yml +20 -0
- data/test/fixtures/instance_expansion/rubber.yml +1 -0
- data/test/fixtures/nested/rubber.yml +9 -0
- data/test/fixtures/secret/rubber.yml +2 -0
- data/test/fixtures/secret/secret.yml +2 -0
- data/test/generator_test.rb +365 -0
- data/test/instance_test.rb +293 -0
- data/test/test-rails-template.rb +35 -0
- data/test/test_helper.rb +19 -0
- data/test/util_test.rb +79 -0
- metadata +490 -508
- data/VERSION +0 -1
- data/bin/vulcanize +0 -25
- data/generators/vulcanize/USAGE +0 -6
- data/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +0 -7
- data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth +0 -7
- data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +0 -34
- data/generators/vulcanize/templates/base/Capfile +0 -14
- data/generators/vulcanize/templates/base/Rakefile +0 -27
- data/generators/vulcanize/templates/base/config/deploy.rb +0 -56
- data/generators/vulcanize/templates/base/config/rubber/common/crontab +0 -21
- data/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +0 -96
- data/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +0 -97
- data/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +0 -78
- data/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +0 -39
- data/generators/vulcanize/templates/base/config/rubber/rubber.yml +0 -263
- data/generators/vulcanize/templates/base/lib/tasks/rubber.rake +0 -15
- data/generators/vulcanize/templates/base/script/cron-rake +0 -18
- data/generators/vulcanize/templates/base/script/cron-runner +0 -18
- data/generators/vulcanize/templates/base/script/cron-sh +0 -67
- data/generators/vulcanize/templates/base/templates.rb +0 -11
- data/generators/vulcanize/templates/base/templates.yml +0 -6
- data/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +0 -88
- data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml +0 -41
- data/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml +0 -6
- data/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml +0 -40
- data/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +0 -45
- data/generators/vulcanize/templates/mongodb/config/rubber/deploy-mongodb.rb +0 -53
- data/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/mongodb.conf +0 -89
- data/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/monit-mongodb.cnf +0 -10
- data/generators/vulcanize/templates/mongodb/templates.yml +0 -3
- data/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml +0 -9
- data/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +0 -33
- data/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +0 -6
- data/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +0 -46
- data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +0 -31
- data/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +0 -8
- data/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +0 -55
- data/generators/vulcanize/templates/munin/script/munin/example_simple.rb +0 -24
- data/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +0 -169
- data/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab +0 -14
- data/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +0 -10
- data/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +0 -13
- data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +0 -10
- data/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +0 -32
- data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml +0 -16
- data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +0 -10
- data/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf +0 -55
- data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +0 -41
- data/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +0 -15
- data/generators/vulcanize/templates/passenger_nginx/config/rubber/deploy-passenger_nginx.rb +0 -86
- data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf +0 -30
- data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf +0 -65
- data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/tools-index.html +0 -34
- data/generators/vulcanize/templates/passenger_nginx/config/rubber/rubber-passenger_nginx.yml +0 -20
- data/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +0 -12
- data/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +0 -160
- data/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +0 -10
- data/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +0 -90
- data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +0 -544
- data/generators/vulcanize/templates/postgresql/config/rubber/role/postgresql_slave/recovery.conf +0 -120
- data/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +0 -88
- data/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab +0 -15
- data/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +0 -8
- data/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +0 -13
- data/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +0 -5
- data/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +0 -71
- data/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +0 -14
- data/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +0 -19
- data/generators/vulcanize/templates/resque/script/resque_worker_management.rb +0 -144
- data/generators/vulcanize/templates/resque/templates.rb +0 -1
- data/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml +0 -46
- data/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +0 -11
- data/generators/vulcanize/vulcanize_generator.rb +0 -184
- data/lib/generators/vulcanize/USAGE +0 -6
- data/lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +0 -51
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf +0 -10
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf +0 -9
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf +0 -6
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +0 -8
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf +0 -52
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +0 -79
- data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +0 -34
- data/lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml +0 -6
- data/lib/generators/vulcanize/templates/apache/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/base/Rakefile +0 -27
- data/lib/generators/vulcanize/templates/base/config/rubber/common/crontab +0 -21
- data/lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +0 -8
- data/lib/generators/vulcanize/templates/base/config/rubber/common/rsyslog.conf +0 -71
- data/lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +0 -13
- data/lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake +0 -15
- data/lib/generators/vulcanize/templates/base/script/cron-rake +0 -18
- data/lib/generators/vulcanize/templates/base/script/cron-runner +0 -18
- data/lib/generators/vulcanize/templates/base/script/cron-sh +0 -67
- data/lib/generators/vulcanize/templates/base/templates.rb +0 -11
- data/lib/generators/vulcanize/templates/base/templates.yml +0 -6
- data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +0 -60
- data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +0 -210
- data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +0 -45
- data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +0 -8
- data/lib/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +0 -18
- data/lib/generators/vulcanize/templates/cassandra/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +0 -23
- data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +0 -113
- data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +0 -21
- data/lib/generators/vulcanize/templates/complete_passenger/templates.rb +0 -9
- data/lib/generators/vulcanize/templates/complete_passenger/templates.yml +0 -9
- data/lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +0 -4
- data/lib/generators/vulcanize/templates/complete_passenger_nginx/config/rubber/role/haproxy/haproxy-passenger.conf +0 -21
- data/lib/generators/vulcanize/templates/complete_passenger_nginx/config/rubber/rubber-complete.yml +0 -38
- data/lib/generators/vulcanize/templates/complete_passenger_nginx/templates.rb +0 -8
- data/lib/generators/vulcanize/templates/complete_passenger_nginx/templates.yml +0 -8
- data/lib/generators/vulcanize/templates/complete_passenger_nginx_mysql/templates.yml +0 -4
- data/lib/generators/vulcanize/templates/complete_passenger_nginx_postgresql/templates.yml +0 -4
- data/lib/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +0 -4
- data/lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +0 -72
- data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise +0 -40
- data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +0 -165
- data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb +0 -8
- data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb +0 -76
- data/lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf +0 -11
- data/lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml +0 -18
- data/lib/generators/vulcanize/templates/cruise/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf +0 -26
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf +0 -8
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +0 -8
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +0 -11
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +0 -21
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +0 -10
- data/lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml +0 -7
- data/lib/generators/vulcanize/templates/haproxy/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +0 -59
- data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh +0 -589
- data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml +0 -199
- data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf +0 -8
- data/lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml +0 -10
- data/lib/generators/vulcanize/templates/jetty/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/memcached/config/memcached.yml +0 -28
- data/lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml +0 -14
- data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +0 -52
- data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin +0 -249
- data/lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml +0 -7
- data/lib/generators/vulcanize/templates/memcached/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/minimal_mysql/templates.yml +0 -7
- data/lib/generators/vulcanize/templates/minimal_nodb/templates.yml +0 -6
- data/lib/generators/vulcanize/templates/minimal_passenger_nginx/config/rubber/rubber-complete.yml +0 -37
- data/lib/generators/vulcanize/templates/minimal_passenger_nginx/templates.yml +0 -4
- data/lib/generators/vulcanize/templates/mongodb/config/rubber/rubber-mongodb.yml +0 -8
- data/lib/generators/vulcanize/templates/mongodb/templates.yml +0 -3
- data/lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +0 -75
- data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +0 -12
- data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf +0 -20
- data/lib/generators/vulcanize/templates/mongrel/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf +0 -15
- data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +0 -252
- data/lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +0 -11
- data/lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +0 -6
- data/lib/generators/vulcanize/templates/monit/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +0 -8
- data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +0 -48
- data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +0 -11
- data/lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +0 -46
- data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf +0 -8
- data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +0 -116
- data/lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +0 -8
- data/lib/generators/vulcanize/templates/munin/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +0 -12
- data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +0 -46
- data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +0 -163
- data/lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +0 -51
- data/lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +0 -47
- data/lib/generators/vulcanize/templates/mysql/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +0 -177
- data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf +0 -15
- data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +0 -39
- data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +0 -10
- data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +0 -23
- data/lib/generators/vulcanize/templates/mysql_cluster/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy +0 -154
- data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf +0 -10
- data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua +0 -5
- data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +0 -52
- data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +0 -11
- data/lib/generators/vulcanize/templates/mysql_proxy/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +0 -45
- data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab +0 -9
- data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +0 -7
- data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf +0 -42
- data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html +0 -30
- data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth +0 -7
- data/lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml +0 -10
- data/lib/generators/vulcanize/templates/nginx/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +0 -51
- data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +0 -34
- data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +0 -47
- data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +0 -48
- data/lib/generators/vulcanize/templates/passenger/templates.yml +0 -3
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/crontab +0 -8
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/monit-nginx.conf +0 -7
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-memory.conf +0 -34
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-sudoers.conf +0 -8
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger.conf +0 -47
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx +0 -101
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf +0 -30
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/nginx-tools.conf +0 -55
- data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/tools-nginx.auth +0 -7
- data/lib/generators/vulcanize/templates/passenger_nginx/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +0 -14
- data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/munin-postgresql.conf +0 -7
- data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +0 -90
- data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +0 -6
- data/lib/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +0 -45
- data/lib/generators/vulcanize/templates/postgresql/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +0 -88
- data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +0 -8
- data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis-sysctl.conf +0 -7
- data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf +0 -434
- data/lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +0 -13
- data/lib/generators/vulcanize/templates/redis/templates.yml +0 -1
- data/lib/generators/vulcanize/templates/resque/config/initializers/resque.rb +0 -15
- data/lib/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +0 -5
- data/lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +0 -71
- data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +0 -14
- data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +0 -19
- data/lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +0 -18
- data/lib/generators/vulcanize/templates/resque/script/resque_worker_management.rb +0 -144
- data/lib/generators/vulcanize/templates/resque/templates.rb +0 -1
- data/lib/generators/vulcanize/templates/resque/templates.yml +0 -3
- data/lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +0 -112
- data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +0 -11
- data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +0 -13
- data/lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml +0 -6
- data/lib/generators/vulcanize/templates/sphinx/templates.yml +0 -1
- data/lib/generators/vulcanize/vulcanize_generator.rb +0 -184
- data/lib/rubber/tasks/rubber.rb +0 -281
@@ -0,0 +1,48 @@
|
|
1
|
+
<%
|
2
|
+
@path = "#{rubber_env.elasticsearch_dir}/config/logging.yml"
|
3
|
+
%>
|
4
|
+
|
5
|
+
rootLogger: INFO, console, file
|
6
|
+
logger:
|
7
|
+
# log action execution errors for easier debugging
|
8
|
+
action: DEBUG
|
9
|
+
# reduce the logging for aws, too much is logged under the default INFO
|
10
|
+
com.amazonaws: WARN
|
11
|
+
|
12
|
+
# gateway
|
13
|
+
#gateway: DEBUG
|
14
|
+
#index.gateway: DEBUG
|
15
|
+
|
16
|
+
# peer shard recovery
|
17
|
+
#indices.recovery: DEBUG
|
18
|
+
|
19
|
+
# discovery
|
20
|
+
#discovery: TRACE
|
21
|
+
|
22
|
+
index.search.slowlog: TRACE, index_search_slow_log_file
|
23
|
+
|
24
|
+
additivity:
|
25
|
+
index.search.slowlog: false
|
26
|
+
|
27
|
+
appender:
|
28
|
+
console:
|
29
|
+
type: console
|
30
|
+
layout:
|
31
|
+
type: consolePattern
|
32
|
+
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
33
|
+
|
34
|
+
file:
|
35
|
+
type: dailyRollingFile
|
36
|
+
file: ${path.logs}/${cluster.name}.log
|
37
|
+
datePattern: "'.'yyyy-MM-dd"
|
38
|
+
layout:
|
39
|
+
type: pattern
|
40
|
+
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
41
|
+
|
42
|
+
index_search_slow_log_file:
|
43
|
+
type: dailyRollingFile
|
44
|
+
file: ${path.logs}/${cluster.name}_index_search_slowlog.log
|
45
|
+
datePattern: "'.'yyyy-MM-dd"
|
46
|
+
layout:
|
47
|
+
type: pattern
|
48
|
+
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
elasticsearch_version: 0.18.7
|
2
|
+
elasticsearch_prefix: /usr/local
|
3
|
+
elasticsearch_dir: "#{elasticsearch_prefix}/elasticsearch-#{elasticsearch_version}"
|
4
|
+
elasticsearch_data_dir: "/mnt/elasticsearch/data"
|
5
|
+
elasticsearch_work_dir: "/mnt/elasticsearch/work"
|
6
|
+
elasticsearch_log_dir: "/mnt/elasticsearch/logs"
|
7
|
+
elasticsearch_pid_file: "/var/run/elasticsearch.pid"
|
8
|
+
elasticsearch_http_port: 9200
|
9
|
+
|
10
|
+
roles:
|
11
|
+
elasticsearch:
|
12
|
+
packages: [openjdk-6-jdk]
|
@@ -0,0 +1,255 @@
|
|
1
|
+
|
2
|
+
namespace :rubber do
|
3
|
+
|
4
|
+
namespace :graphite do
|
5
|
+
|
6
|
+
rubber.allow_optional_tasks(self)
|
7
|
+
|
8
|
+
after "rubber:install_packages", "rubber:graphite:install_collectd_graphite_plugin"
|
9
|
+
|
10
|
+
task :install_collectd_graphite_plugin, :roles => :collectd do
|
11
|
+
rubber.sudo_script 'install_collectd', <<-ENDSCRIPT
|
12
|
+
if [[ ! -f "/usr/local/share/perl/5.10.1/Collectd/Plugins/Graphite.pm" ]]; then
|
13
|
+
wget --no-check-certificate -qNO /tmp/joemiller-collectd-graphite.tar.gz https://github.com/joemiller/collectd-graphite/tarball/#{rubber_env.collectd_graphite_plugin_version}
|
14
|
+
tar -C /tmp -zxf /tmp/joemiller-collectd-graphite.tar.gz
|
15
|
+
cd /tmp/joemiller-collectd-graphite-*
|
16
|
+
perl Makefile.PL
|
17
|
+
make
|
18
|
+
make test
|
19
|
+
make install
|
20
|
+
fi
|
21
|
+
ENDSCRIPT
|
22
|
+
end
|
23
|
+
|
24
|
+
# graphite collectd plugin needs newer collectd (>= 4.9)
|
25
|
+
before "rubber:install_packages", "rubber:graphite:setup_apt_backport_of_collectd"
|
26
|
+
|
27
|
+
task :setup_apt_backport_of_collectd do
|
28
|
+
sources = <<-EOF
|
29
|
+
deb http://gb.archive.ubuntu.com/ubuntu/ maverick main universe
|
30
|
+
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick main universe
|
31
|
+
EOF
|
32
|
+
sources.gsub!(/^[ \t]*/, '')
|
33
|
+
|
34
|
+
prefs = <<-EOF
|
35
|
+
Package: *
|
36
|
+
Pin: release a=maverick
|
37
|
+
Pin-Priority: 400
|
38
|
+
|
39
|
+
Package: libxml2
|
40
|
+
Pin: release a=maverick
|
41
|
+
Pin-Priority: 900
|
42
|
+
|
43
|
+
Package: libxml2-dev
|
44
|
+
Pin: release a=maverick
|
45
|
+
Pin-Priority: 900
|
46
|
+
|
47
|
+
Package: collectd-core
|
48
|
+
Pin: release a=maverick
|
49
|
+
Pin-Priority: 900
|
50
|
+
|
51
|
+
Package: collectd-utils
|
52
|
+
Pin: release a=maverick
|
53
|
+
Pin-Priority: 900
|
54
|
+
|
55
|
+
Package: collectd
|
56
|
+
Pin: release a=maverick
|
57
|
+
Pin-Priority: 900
|
58
|
+
EOF
|
59
|
+
prefs.gsub!(/^[ \t]*/, '')
|
60
|
+
|
61
|
+
rubber.sudo_script 'setup_apt_backport_of_collectd', <<-ENDSCRIPT
|
62
|
+
release=`lsb_release -sr`
|
63
|
+
needs_backport=`echo "$release <= 10.04" | bc`
|
64
|
+
if [[ $needs_backport == 1 && ! -f /etc/apt/preferences.d/rubber-collectd ]]; then
|
65
|
+
echo -e #{sources.inspect} > /etc/apt/sources.list.d/rubber-collectd.list
|
66
|
+
echo -e #{prefs.inspect} > /etc/apt/preferences.d/rubber-collectd
|
67
|
+
fi
|
68
|
+
ENDSCRIPT
|
69
|
+
end
|
70
|
+
|
71
|
+
task :install_graphite_from_repo, :roles => [:graphite_server, :graphite_web] do
|
72
|
+
rubber.sudo_script 'install_graphite_from_repo', <<-ENDSCRIPT
|
73
|
+
if [[ ! -d "/opt/graphite" ]]; then
|
74
|
+
mkdir -p /tmp/graphite_install
|
75
|
+
cd /tmp/graphite_install
|
76
|
+
bzr branch lp:graphite -r #{rubber_env.graphite_repo_version}
|
77
|
+
|
78
|
+
pushd graphite/whisper
|
79
|
+
python setup.py install
|
80
|
+
popd
|
81
|
+
|
82
|
+
pushd graphite/carbon
|
83
|
+
python setup.py install
|
84
|
+
popd
|
85
|
+
|
86
|
+
pushd graphite
|
87
|
+
python setup.py install
|
88
|
+
popd
|
89
|
+
fi
|
90
|
+
ENDSCRIPT
|
91
|
+
end
|
92
|
+
|
93
|
+
desc <<-DESC
|
94
|
+
Cleans out old whisper storage files for non-existant instances so they don't show in webui
|
95
|
+
DESC
|
96
|
+
task :clean_storage, :roles => [:graphite_server] do
|
97
|
+
active_instances = rubber_instances.collect {|ic| ic.name }.sort
|
98
|
+
stored_instances = capture("ls /opt/graphite/storage/whisper/servers/").split.sort
|
99
|
+
cleaning_instances = stored_instances - active_instances
|
100
|
+
|
101
|
+
if cleaning_instances.size > 0
|
102
|
+
logger.info "Cleaning dead instances from graphite storage: #{cleaning_instances.join(',')}"
|
103
|
+
|
104
|
+
do_clean = true
|
105
|
+
if (cleaning_instances.size.to_f / stored_instances.size) > 0.01
|
106
|
+
value = Capistrano::CLI.ui.ask("Graphite storage files to be cleaned exceeds threshold, proceed? [y/N]?: ")
|
107
|
+
do_clean = (value =~ /^y/)
|
108
|
+
end
|
109
|
+
|
110
|
+
if do_clean
|
111
|
+
rsudo "rm -rf /opt/graphite/storage/whisper/servers/{#{cleaning_instances.join(',')}}"
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
namespace :server do
|
118
|
+
|
119
|
+
rubber.allow_optional_tasks(self)
|
120
|
+
|
121
|
+
if Rubber::Configuration.rubber_env.graphite_repo_version
|
122
|
+
after "rubber:install_packages", "rubber:graphite:install_graphite_from_repo"
|
123
|
+
else
|
124
|
+
after "rubber:install_packages", "rubber:graphite:server:install"
|
125
|
+
end
|
126
|
+
|
127
|
+
after "rubber:bootstrap", "rubber:graphite:server:bootstrap"
|
128
|
+
|
129
|
+
desc <<-DESC
|
130
|
+
Installs graphite server components
|
131
|
+
DESC
|
132
|
+
task :install, :roles => :graphite_server do
|
133
|
+
rubber.sudo_script 'install_graphite_server', <<-ENDSCRIPT
|
134
|
+
if [[ ! -f "/opt/graphite/bin/carbon-cache.py" ]]; then
|
135
|
+
wget -qNP /tmp #{rubber_env.graphite_whisper_package_url}
|
136
|
+
tar -C /tmp -zxf /tmp/#{rubber_env.graphite_whisper_package_url.gsub(/.*\//, '')}
|
137
|
+
cd /tmp/#{rubber_env.graphite_whisper_package_url.gsub(/.*\//, '').gsub('.tar.gz', '')}
|
138
|
+
python setup.py install
|
139
|
+
|
140
|
+
wget -qNP /tmp #{rubber_env.graphite_carbon_package_url}
|
141
|
+
tar -C /tmp -zxf /tmp/#{rubber_env.graphite_carbon_package_url.gsub(/.*\//, '')}
|
142
|
+
cd /tmp/#{rubber_env.graphite_carbon_package_url.gsub(/.*\//, '').gsub('.tar.gz', '')}
|
143
|
+
python setup.py install
|
144
|
+
|
145
|
+
fi
|
146
|
+
ENDSCRIPT
|
147
|
+
end
|
148
|
+
|
149
|
+
task :bootstrap, :roles => :graphite_server do
|
150
|
+
exists = capture("echo $(ls /opt/graphite/storage/whisper/ 2> /dev/null)")
|
151
|
+
if exists.strip.size == 0
|
152
|
+
rubber.update_code_for_bootstrap
|
153
|
+
|
154
|
+
rubber.run_config(:file => "role/graphite_server", :force => true, :deploy_path => release_path)
|
155
|
+
|
156
|
+
restart
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
desc "Start graphite system monitoring"
|
161
|
+
task :start, :roles => :graphite_server do
|
162
|
+
rsudo "service graphite-server start"
|
163
|
+
end
|
164
|
+
|
165
|
+
desc "Stop graphite system monitoring"
|
166
|
+
task :stop, :roles => :graphite_server do
|
167
|
+
rsudo "service graphite-server stop || true"
|
168
|
+
end
|
169
|
+
|
170
|
+
desc "Restart graphite system monitoring"
|
171
|
+
task :restart, :roles => :graphite_server do
|
172
|
+
stop
|
173
|
+
start
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
namespace :web do
|
178
|
+
|
179
|
+
rubber.allow_optional_tasks(self)
|
180
|
+
|
181
|
+
if Rubber::Configuration.rubber_env.graphite_repo_version
|
182
|
+
after "rubber:graphite:server:install", "rubber:graphite:install_graphite_from_repo"
|
183
|
+
else
|
184
|
+
after "rubber:graphite:server:install", "rubber:graphite:web:install"
|
185
|
+
end
|
186
|
+
|
187
|
+
after "rubber:graphite:server:bootstrap", "rubber:graphite:web:bootstrap"
|
188
|
+
|
189
|
+
desc <<-DESC
|
190
|
+
Installs graphite web components
|
191
|
+
DESC
|
192
|
+
task :install, :roles => :graphite_web do
|
193
|
+
rubber.sudo_script 'install_graphite_web', <<-ENDSCRIPT
|
194
|
+
if [[ ! -d "/opt/graphite/webapp" ]]; then
|
195
|
+
wget -qNP /tmp #{rubber_env.graphite_web_package_url}
|
196
|
+
tar -C /tmp -zxf /tmp/#{rubber_env.graphite_web_package_url.gsub(/.*\//, '')}
|
197
|
+
cd /tmp/#{rubber_env.graphite_web_package_url.gsub(/.*\//, '').gsub('.tar.gz', '')}
|
198
|
+
# python check-dependencies.py
|
199
|
+
python setup.py install
|
200
|
+
fi
|
201
|
+
ENDSCRIPT
|
202
|
+
end
|
203
|
+
|
204
|
+
task :bootstrap, :roles => :graphite_web do
|
205
|
+
exists = capture("echo $(ls /opt/graphite/storage/graphite.db 2> /dev/null)")
|
206
|
+
if exists.strip.size == 0
|
207
|
+
rubber.update_code_for_bootstrap
|
208
|
+
|
209
|
+
rubber.run_config(:file => "role/graphite_web", :force => true, :deploy_path => release_path)
|
210
|
+
|
211
|
+
# django email validation barfs on localhost, but for full_host to work
|
212
|
+
# in admin_email, we need a env with host defined
|
213
|
+
web_instance = rubber_instances.for_role("graphite_web").first
|
214
|
+
env = rubber_cfg.environment.bind("graphite_web", web_instance.name)
|
215
|
+
email = env.admin_email
|
216
|
+
|
217
|
+
rubber.sudo_script 'bootstrap_graphite_web', <<-ENDSCRIPT
|
218
|
+
cd /opt/graphite/webapp/graphite
|
219
|
+
python manage.py syncdb --noinput
|
220
|
+
python manage.py createsuperuser --username admin --email #{email} --noinput
|
221
|
+
python manage.py shell <<EOF
|
222
|
+
from django.contrib.auth.models import User
|
223
|
+
u = User.objects.get(username__exact='admin')
|
224
|
+
u.set_password('admin1')
|
225
|
+
u.save()
|
226
|
+
EOF
|
227
|
+
mkdir -p /opt/graphite/storage/log/webapp/
|
228
|
+
chown -R www-data:www-data /opt/graphite/storage/
|
229
|
+
ENDSCRIPT
|
230
|
+
|
231
|
+
restart
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
desc "Start graphite system monitoring"
|
236
|
+
task :start, :roles => :graphite_web do
|
237
|
+
rsudo "service apache2 start"
|
238
|
+
end
|
239
|
+
|
240
|
+
desc "Stop graphite system monitoring"
|
241
|
+
task :stop, :roles => :graphite_web do
|
242
|
+
rsudo "service apache2 stop || true"
|
243
|
+
end
|
244
|
+
|
245
|
+
desc "Restart graphite system monitoring"
|
246
|
+
task :restart, :roles => :graphite_web do
|
247
|
+
stop
|
248
|
+
start
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
252
|
+
|
253
|
+
end
|
254
|
+
|
255
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%
|
2
|
+
@path = '/etc/collectd/conf.d/graphite.conf'
|
3
|
+
%>
|
4
|
+
|
5
|
+
<LoadPlugin "perl">
|
6
|
+
Globals true
|
7
|
+
</LoadPlugin>
|
8
|
+
|
9
|
+
<Plugin "perl">
|
10
|
+
BaseName "Collectd::Plugins"
|
11
|
+
LoadPlugin "Graphite"
|
12
|
+
|
13
|
+
<Plugin "Graphite">
|
14
|
+
Buffer "<%= Rubber.env == 'production' ? 1024 : 0 %>"
|
15
|
+
Prefix "servers"
|
16
|
+
Host "<%= rubber_instances.for_role('graphite_server').first.full_name %>"
|
17
|
+
Port "<%= rubber_env.graphite_server_port %>"
|
18
|
+
</Plugin>
|
19
|
+
</Plugin>
|
@@ -0,0 +1,232 @@
|
|
1
|
+
<%
|
2
|
+
@path = '/opt/graphite/conf/carbon.conf'
|
3
|
+
%>
|
4
|
+
[cache]
|
5
|
+
# Configure carbon directories.
|
6
|
+
#
|
7
|
+
# OS environment variables can be used to tell carbon where graphite is
|
8
|
+
# installed, where to read configuration from and where to write data.
|
9
|
+
#
|
10
|
+
# GRAPHITE_ROOT - Root directory of the graphite installation.
|
11
|
+
# Defaults to ../
|
12
|
+
# GRAPHITE_CONF_DIR - Configuration directory (where this file lives).
|
13
|
+
# Defaults to $GRAPHITE_ROOT/conf/
|
14
|
+
# GRAPHITE_STORAGE_DIR - Storage directory for whipser/rrd/log/pid files.
|
15
|
+
# Defaults to $GRAPHITE_ROOT/storage/
|
16
|
+
#
|
17
|
+
# To change other directory paths, add settings to this file. The following
|
18
|
+
# configuration variables are available with these default values:
|
19
|
+
#
|
20
|
+
# STORAGE_DIR = $GRAPHITE_STORAGE_DIR
|
21
|
+
# LOCAL_DATA_DIR = STORAGE_DIR/whisper/
|
22
|
+
# WHITELISTS_DIR = STORAGE_DIR/lists/
|
23
|
+
# CONF_DIR = STORAGE_DIR/conf/
|
24
|
+
# LOG_DIR = STORAGE_DIR/log/
|
25
|
+
# PID_DIR = STORAGE_DIR/
|
26
|
+
#
|
27
|
+
# For FHS style directory structures, use:
|
28
|
+
#
|
29
|
+
# STORAGE_DIR = /var/lib/carbon/
|
30
|
+
# CONF_DIR = /etc/carbon/
|
31
|
+
# LOG_DIR = /var/log/carbon/
|
32
|
+
# PID_DIR = /var/run/
|
33
|
+
#
|
34
|
+
LOCAL_DATA_DIR = /opt/graphite/storage/whisper/
|
35
|
+
|
36
|
+
# Specify the user to drop privileges to
|
37
|
+
# If this is blank carbon runs as the user that invokes it
|
38
|
+
# This user must have write access to the local data directory
|
39
|
+
USER =
|
40
|
+
|
41
|
+
# Limit the size of the cache to avoid swapping or becoming CPU bound.
|
42
|
+
# Sorts and serving cache queries gets more expensive as the cache grows.
|
43
|
+
# Use the value "inf" (infinity) for an unlimited cache size.
|
44
|
+
MAX_CACHE_SIZE = inf
|
45
|
+
|
46
|
+
# Limits the number of whisper update_many() calls per second, which effectively
|
47
|
+
# means the number of write requests sent to the disk. This is intended to
|
48
|
+
# prevent over-utilizing the disk and thus starving the rest of the system.
|
49
|
+
# When the rate of required updates exceeds this, then carbon's caching will
|
50
|
+
# take effect and increase the overall throughput accordingly.
|
51
|
+
MAX_UPDATES_PER_SECOND = 1000
|
52
|
+
|
53
|
+
# Softly limits the number of whisper files that get created each minute.
|
54
|
+
# Setting this value low (like at 50) is a good way to ensure your graphite
|
55
|
+
# system will not be adversely impacted when a bunch of new metrics are
|
56
|
+
# sent to it. The trade off is that it will take much longer for those metrics'
|
57
|
+
# database files to all get created and thus longer until the data becomes usable.
|
58
|
+
# Setting this value high (like "inf" for infinity) will cause graphite to create
|
59
|
+
# the files quickly but at the risk of slowing I/O down considerably for a while.
|
60
|
+
MAX_CREATES_PER_MINUTE = 50
|
61
|
+
|
62
|
+
LINE_RECEIVER_INTERFACE = 0.0.0.0
|
63
|
+
LINE_RECEIVER_PORT = <%= rubber_env.graphite_server_port %>
|
64
|
+
|
65
|
+
# Set this to True to enable the UDP listener. By default this is off
|
66
|
+
# because it is very common to run multiple carbon daemons and managing
|
67
|
+
# another (rarely used) port for every carbon instance is not fun.
|
68
|
+
ENABLE_UDP_LISTENER = False
|
69
|
+
UDP_RECEIVER_INTERFACE = 0.0.0.0
|
70
|
+
UDP_RECEIVER_PORT = 2003
|
71
|
+
|
72
|
+
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
|
73
|
+
PICKLE_RECEIVER_PORT = 2004
|
74
|
+
|
75
|
+
# Per security concerns outlined in Bug #817247 the pickle receiver
|
76
|
+
# will use a more secure and slightly less efficient unpickler.
|
77
|
+
# Set this to True to revert to the old-fashioned insecure unpickler.
|
78
|
+
USE_INSECURE_UNPICKLER = False
|
79
|
+
|
80
|
+
CACHE_QUERY_INTERFACE = 0.0.0.0
|
81
|
+
CACHE_QUERY_PORT = 7002
|
82
|
+
|
83
|
+
# Set this to False to drop datapoints received after the cache
|
84
|
+
# reaches MAX_CACHE_SIZE. If this is True (the default) then sockets
|
85
|
+
# over which metrics are received will temporarily stop accepting
|
86
|
+
# data until the cache size falls below 95% MAX_CACHE_SIZE.
|
87
|
+
USE_FLOW_CONTROL = True
|
88
|
+
|
89
|
+
# By default, carbon-cache will log every whisper update. This can be excessive and
|
90
|
+
# degrade performance if logging on the same volume as the whisper data is stored.
|
91
|
+
LOG_UPDATES = False
|
92
|
+
|
93
|
+
# On some systems it is desirable for whisper to write synchronously.
|
94
|
+
# Set this option to True if you'd like to try this. Basically it will
|
95
|
+
# shift the onus of buffering writes from the kernel into carbon's cache.
|
96
|
+
WHISPER_AUTOFLUSH = False
|
97
|
+
|
98
|
+
# Enable AMQP if you want to receve metrics using an amqp broker
|
99
|
+
# ENABLE_AMQP = False
|
100
|
+
|
101
|
+
# Verbose means a line will be logged for every metric received
|
102
|
+
# useful for testing
|
103
|
+
# AMQP_VERBOSE = False
|
104
|
+
|
105
|
+
# AMQP_HOST = localhost
|
106
|
+
# AMQP_PORT = 5672
|
107
|
+
# AMQP_VHOST = /
|
108
|
+
# AMQP_USER = guest
|
109
|
+
# AMQP_PASSWORD = guest
|
110
|
+
# AMQP_EXCHANGE = graphite
|
111
|
+
# AMQP_METRIC_NAME_IN_BODY = False
|
112
|
+
|
113
|
+
# The manhole interface allows you to SSH into the carbon daemon
|
114
|
+
# and get a python interpreter. BE CAREFUL WITH THIS! If you do
|
115
|
+
# something like time.sleep() in the interpreter, the whole process
|
116
|
+
# will sleep! This is *extremely* helpful in debugging, assuming
|
117
|
+
# you are familiar with the code. If you are not, please don't
|
118
|
+
# mess with this, you are asking for trouble :)
|
119
|
+
#
|
120
|
+
# ENABLE_MANHOLE = False
|
121
|
+
# MANHOLE_INTERFACE = 127.0.0.1
|
122
|
+
# MANHOLE_PORT = 7222
|
123
|
+
# MANHOLE_USER = admin
|
124
|
+
# MANHOLE_PUBLIC_KEY = ssh-rsa AAAAB3NzaC1yc2EAAAABiwAaAIEAoxN0sv/e4eZCPpi3N3KYvyzRaBaMeS2RsOQ/cDuKv11dlNzVeiyc3RFmCv5Rjwn/lQ79y0zyHxw67qLyhQ/kDzINc4cY41ivuQXm2tPmgvexdrBv5nsfEpjs3gLZfJnyvlcVyWK/lId8WUvEWSWHTzsbtmXAF2raJMdgLTbQ8wE=
|
125
|
+
|
126
|
+
# Patterns for all of the metrics this machine will store. Read more at
|
127
|
+
# http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol#Bindings
|
128
|
+
#
|
129
|
+
# Example: store all sales, linux servers, and utilization metrics
|
130
|
+
# BIND_PATTERNS = sales.#, servers.linux.#, #.utilization
|
131
|
+
#
|
132
|
+
# Example: store everything
|
133
|
+
# BIND_PATTERNS = #
|
134
|
+
|
135
|
+
# To configure special settings for the 'foo' carbon-cache instance, uncomment this:
|
136
|
+
#[cache:foo]
|
137
|
+
#LINE_RECEIVER_PORT = 2103
|
138
|
+
#PICKLE_RECEIVER_PORT = 2104
|
139
|
+
#CACHE_QUERY_PORT = 7102
|
140
|
+
# and any other settings you want to customize, defaults are inherited
|
141
|
+
# from [carbon] section.
|
142
|
+
|
143
|
+
|
144
|
+
[relay]
|
145
|
+
LINE_RECEIVER_INTERFACE = 0.0.0.0
|
146
|
+
LINE_RECEIVER_PORT = 2013
|
147
|
+
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
|
148
|
+
PICKLE_RECEIVER_PORT = 2014
|
149
|
+
|
150
|
+
# To use consistent hashing instead of the user defined relay-rules.conf,
|
151
|
+
# change this to:
|
152
|
+
# RELAY_METHOD = consistent-hashing
|
153
|
+
RELAY_METHOD = rules
|
154
|
+
|
155
|
+
# If you use consistent-hashing you may want to add redundancy
|
156
|
+
# of your data by replicating every datapoint to more than
|
157
|
+
# one machine.
|
158
|
+
REPLICATION_FACTOR = 1
|
159
|
+
|
160
|
+
# This is a list of carbon daemons we will send any relayed or
|
161
|
+
# generated metrics to. The default provided would send to a single
|
162
|
+
# carbon-cache instance on the default port. However if you
|
163
|
+
# use multiple carbon-cache instances then it would look like this:
|
164
|
+
#
|
165
|
+
# DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b
|
166
|
+
#
|
167
|
+
# The general form is IP:PORT:INSTANCE where the :INSTANCE part is
|
168
|
+
# optional and refers to the "None" instance if omitted.
|
169
|
+
#
|
170
|
+
# Note that if the destinations are all carbon-caches then this should
|
171
|
+
# exactly match the webapp's CARBONLINK_HOSTS setting in terms of
|
172
|
+
# instances listed (order matters!).
|
173
|
+
DESTINATIONS = 127.0.0.1:2004
|
174
|
+
|
175
|
+
# This defines the maximum "message size" between carbon daemons.
|
176
|
+
# You shouldn't need to tune this unless you really know what you're doing.
|
177
|
+
MAX_DATAPOINTS_PER_MESSAGE = 500
|
178
|
+
MAX_QUEUE_SIZE = 10000
|
179
|
+
|
180
|
+
# Set this to False to drop datapoints when any send queue (sending datapoints
|
181
|
+
# to a downstream carbon daemon) hits MAX_QUEUE_SIZE. If this is True (the
|
182
|
+
# default) then sockets over which metrics are received will temporarily stop accepting
|
183
|
+
# data until the send queues fall below 80% MAX_QUEUE_SIZE.
|
184
|
+
USE_FLOW_CONTROL = True
|
185
|
+
|
186
|
+
|
187
|
+
[aggregator]
|
188
|
+
LINE_RECEIVER_INTERFACE = 0.0.0.0
|
189
|
+
LINE_RECEIVER_PORT = 2023
|
190
|
+
|
191
|
+
PICKLE_RECEIVER_INTERFACE = 0.0.0.0
|
192
|
+
PICKLE_RECEIVER_PORT = 2024
|
193
|
+
|
194
|
+
# This is a list of carbon daemons we will send any relayed or
|
195
|
+
# generated metrics to. The default provided would send to a single
|
196
|
+
# carbon-cache instance on the default port. However if you
|
197
|
+
# use multiple carbon-cache instances then it would look like this:
|
198
|
+
#
|
199
|
+
# DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b
|
200
|
+
#
|
201
|
+
# The format is comma-delimited IP:PORT:INSTANCE where the :INSTANCE part is
|
202
|
+
# optional and refers to the "None" instance if omitted.
|
203
|
+
#
|
204
|
+
# Note that if the destinations are all carbon-caches then this should
|
205
|
+
# exactly match the webapp's CARBONLINK_HOSTS setting in terms of
|
206
|
+
# instances listed (order matters!).
|
207
|
+
DESTINATIONS = 127.0.0.1:2004
|
208
|
+
|
209
|
+
# If you want to add redundancy to your data by replicating every
|
210
|
+
# datapoint to more than one machine, increase this.
|
211
|
+
REPLICATION_FACTOR = 1
|
212
|
+
|
213
|
+
# This is the maximum number of datapoints that can be queued up
|
214
|
+
# for a single destination. Once this limit is hit, we will
|
215
|
+
# stop accepting new data if USE_FLOW_CONTROL is True, otherwise
|
216
|
+
# we will drop any subsequently received datapoints.
|
217
|
+
MAX_QUEUE_SIZE = 10000
|
218
|
+
|
219
|
+
# Set this to False to drop datapoints when any send queue (sending datapoints
|
220
|
+
# to a downstream carbon daemon) hits MAX_QUEUE_SIZE. If this is True (the
|
221
|
+
# default) then sockets over which metrics are received will temporarily stop accepting
|
222
|
+
# data until the send queues fall below 80% MAX_QUEUE_SIZE.
|
223
|
+
USE_FLOW_CONTROL = True
|
224
|
+
|
225
|
+
# This defines the maximum "message size" between carbon daemons.
|
226
|
+
# You shouldn't need to tune this unless you really know what you're doing.
|
227
|
+
MAX_DATAPOINTS_PER_MESSAGE = 500
|
228
|
+
|
229
|
+
# This defines how many datapoints the aggregator remembers for
|
230
|
+
# each metric. Aggregation only happens for datapoints that fall in
|
231
|
+
# the past MAX_AGGREGATION_INTERVALS * intervalSize seconds.
|
232
|
+
MAX_AGGREGATION_INTERVALS = 5
|