Permalink
Browse files

added roles folder

  • Loading branch information...
1 parent ff18a68 commit 22208016149e34eec004de50cee3dd9e956ceb1d @mdxp mdxp committed Jul 2, 2012
Showing with 99 additions and 0 deletions.
  1. +32 −0 roles/apache2.rb
  2. +9 −0 roles/base.rb
  3. +13 −0 roles/drupal.rb
  4. +13 −0 roles/memcached.rb
  5. +17 −0 roles/mysql_server.rb
  6. +5 −0 roles/percona_server.rb
  7. +5 −0 roles/solr.rb
  8. +5 −0 roles/varnish.rb
View
@@ -0,0 +1,32 @@
+name "apache2"
+description "Apache2/PHP role"
+run_list(
+ "recipe[apache2]",
+ "recipe[apache2::mod_php5]",
+ "recipe[apache2::mod_rewrite]",
+ "recipe[apache2::mod_expires]",
+ "recipe[apache2::mod_deflate]",
+ "recipe[php]",
+ "recipe[php::module_mysql]",
+ "recipe[php::module_gd]",
+ "recipe[php::module_memcache]",
+ "recipe[php::module_apc]",
+ "recipe[php::module_curl]"
+)
+
+default_attributes(
+ :apache => {
+ :listen_ports => ["80", "443"],
+ :traceenable => "Off",
+ :serversignature => "Off",
+ :servertokens => "Prod",
+ :timeout => 15,
+ :prefork => {
+ :startservers => 10,
+ :minspareservers => 10,
+ :maxspareservers => 24,
+ :maxclients => 100,
+ :maxrequestsperchild => 10000
+ }
+ }
+)
View
@@ -0,0 +1,9 @@
+name "base"
+description "Base role"
+run_list(
+ "recipe[vim]",
+ "recipe[git]",
+ "recipe[postfix]"
+ #"recipe[users]",
+ #"recipe[sudo]"
+)
View
@@ -0,0 +1,13 @@
+name "drupal"
+description "Drupal role"
+run_list(
+ "role[base]",
+ "role[percona_server]",
+ "role[apache2]",
+ "role[memcached]",
+ "recipe[drupal::drush]"
+ #role[varnish],
+ #role[solr]
+)
+default_attributes(
+)
View
@@ -0,0 +1,13 @@
+name "memcached"
+description "Memcached server role"
+run_list(
+ "recipe[memcached]"
+)
+
+default_attributes(
+ :memcached => {
+ :memory => 256,
+ :user => "www-data",
+ :listen => "127.0.0.1"
+ }
+)
View
@@ -0,0 +1,17 @@
+name "mysql_server"
+description "MySQL server role"
+run_list(
+ "recipe[mysql::server]"
+)
+default_attributes(
+ :mysql => {
+ :bind_address => "0.0.0.0",
+ :tunable => {
+ :key_buffer => "384M",
+ :table_cache => "4096",
+ :query_cache_size => "128M",
+ :max_heap_table_size => "128M"
+ }
+ }
+)
+
View
@@ -0,0 +1,5 @@
+name "percona_server"
+description "Percona server role"
+run_list(
+ "recipe[percona-install::server]"
+)
View
@@ -0,0 +1,5 @@
+name "solr"
+description "Solr server role"
+run_list(
+ "recipe[solr]"
+)
View
@@ -0,0 +1,5 @@
+name "varnish"
+description "Varnish server role"
+run_list(
+ "recipe[varnish]"
+)

0 comments on commit 2220801

Please sign in to comment.