provizioning 0.1.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/README.md +29 -0
  4. data/Rakefile +2 -0
  5. data/bootstrap/bootstrap.sh +71 -0
  6. data/{lib/templates/sources.list → bootstrap/lucid.sources.list} +2 -1
  7. data/bootstrap/natty.sources.list +14 -0
  8. data/lib/provizioning/puppet.rb +94 -0
  9. data/lib/provizioning/version.rb +3 -0
  10. data/lib/provizioning.rb +1 -3
  11. data/provizioning.gemspec +20 -0
  12. data/puppet/classes/apache/centos.conf +978 -0
  13. data/puppet/classes/apache/ssl.conf +75 -0
  14. data/puppet/classes/apache.pp +152 -0
  15. data/puppet/classes/apt.pp +5 -0
  16. data/puppet/classes/base/ntp/ntpd-sysconfig +13 -0
  17. data/puppet/classes/base.pp +79 -0
  18. data/puppet/classes/freerange.pp +53 -0
  19. data/puppet/classes/gemrc/gemrc +9 -0
  20. data/puppet/classes/gemrc.pp +10 -0
  21. data/puppet/classes/imagemagick.pp +19 -0
  22. data/puppet/classes/iptables/load-iptables +3 -0
  23. data/puppet/classes/iptables/post-iptables +2 -0
  24. data/puppet/classes/iptables/pre-iptables +2 -0
  25. data/puppet/classes/iptables.pp +59 -0
  26. data/puppet/classes/logrotate/logrotate.erb +15 -0
  27. data/puppet/classes/logrotate.pp +37 -0
  28. data/puppet/classes/mongo/mongodb.conf +89 -0
  29. data/puppet/classes/mongo.pp +86 -0
  30. data/puppet/classes/monit/monit.conf +242 -0
  31. data/puppet/classes/monit.pp +39 -0
  32. data/puppet/classes/munin/plugins/passenger_memory_stats +123 -0
  33. data/puppet/classes/munin/plugins/passenger_status +130 -0
  34. data/puppet/classes/munin/plugins/rails_database_time +174 -0
  35. data/puppet/classes/munin/plugins/rails_request_duration +173 -0
  36. data/puppet/classes/munin/plugins/rails_request_error +169 -0
  37. data/puppet/classes/munin/plugins/rails_requests +175 -0
  38. data/puppet/classes/munin/plugins/rails_view_render_time +173 -0
  39. data/puppet/classes/munin/rails-plugin-config +4 -0
  40. data/puppet/classes/munin.pp +60 -0
  41. data/puppet/classes/mysql/password.erb +1 -0
  42. data/puppet/classes/mysql.pp +71 -0
  43. data/puppet/classes/openswan/ipsec.conf +17 -0
  44. data/puppet/classes/openswan/ipsec.secrets +1 -0
  45. data/puppet/classes/openswan/patched_ipsec_initd_script +223 -0
  46. data/puppet/classes/openswan/secret.erb +1 -0
  47. data/puppet/classes/openswan.pp +71 -0
  48. data/puppet/classes/post-flight.pp +17 -0
  49. data/puppet/classes/postfix/main.cf +39 -0
  50. data/puppet/classes/postfix.pp +16 -0
  51. data/puppet/classes/rack/centos/passenger.load.erb +5 -0
  52. data/puppet/classes/rack/ubuntu/passenger.conf.erb +6 -0
  53. data/puppet/classes/rack.pp +66 -0
  54. data/puppet/classes/redis/redis.conf.erb +187 -0
  55. data/puppet/classes/redis.pp +20 -0
  56. data/puppet/classes/sudo/sudoers +6 -0
  57. data/puppet/classes/sudo.pp +24 -0
  58. data/puppet/classes/syslogng/CentOS.cnf +61 -0
  59. data/puppet/classes/syslogng/Ubuntu.cnf +347 -0
  60. data/puppet/classes/syslogng.pp +146 -0
  61. data/puppet/classes/xml.pp +23 -0
  62. data/puppet/classes/yum.pp +6 -0
  63. data/puppet/classes/zsh.pp +5 -0
  64. data/puppet/modules/README +74 -0
  65. data/puppet/modules/cron/README +4 -0
  66. data/puppet/modules/cron/manifests/base.pp +26 -0
  67. data/puppet/modules/cron/manifests/crontabs.pp +11 -0
  68. data/puppet/modules/cron/manifests/init.pp +18 -0
  69. data/puppet/modules/drupal/Modulefile +7 -0
  70. data/puppet/modules/drupal/README +110 -0
  71. data/puppet/modules/drupal/manifests/absent.pp +25 -0
  72. data/puppet/modules/drupal/manifests/backup/absent.pp +23 -0
  73. data/puppet/modules/drupal/manifests/backup.pp +49 -0
  74. data/puppet/modules/drupal/manifests/conf.pp +23 -0
  75. data/puppet/modules/drupal/manifests/debug.pp +26 -0
  76. data/puppet/modules/drupal/manifests/disable.pp +22 -0
  77. data/puppet/modules/drupal/manifests/disableboot.pp +13 -0
  78. data/puppet/modules/drupal/manifests/drush.pp +20 -0
  79. data/puppet/modules/drupal/manifests/example42/backup.pp +8 -0
  80. data/puppet/modules/drupal/manifests/example42/monitor.pp +8 -0
  81. data/puppet/modules/drupal/manifests/example42.pp +25 -0
  82. data/puppet/modules/drupal/manifests/extra.pp +30 -0
  83. data/puppet/modules/drupal/manifests/firewall/absent.pp +19 -0
  84. data/puppet/modules/drupal/manifests/firewall.pp +24 -0
  85. data/puppet/modules/drupal/manifests/init.pp +54 -0
  86. data/puppet/modules/drupal/manifests/install.pp +20 -0
  87. data/puppet/modules/drupal/manifests/module.pp +37 -0
  88. data/puppet/modules/drupal/manifests/monitor/absent.pp +42 -0
  89. data/puppet/modules/drupal/manifests/monitor.pp +77 -0
  90. data/puppet/modules/drupal/manifests/package.pp +20 -0
  91. data/puppet/modules/drupal/manifests/params.pp +277 -0
  92. data/puppet/modules/drupal/manifests/site.pp +63 -0
  93. data/puppet/modules/drupal/manifests/theme.pp +33 -0
  94. data/puppet/modules/drupal/templates/variables_drupal.erb +62 -0
  95. data/puppet/modules/drupal/tests/absent.pp +1 -0
  96. data/puppet/modules/drupal/tests/backup.pp +1 -0
  97. data/puppet/modules/drupal/tests/debug.pp +1 -0
  98. data/puppet/modules/drupal/tests/disable.pp +1 -0
  99. data/puppet/modules/drupal/tests/disableboot.pp +1 -0
  100. data/puppet/modules/drupal/tests/firewall.pp +1 -0
  101. data/puppet/modules/drupal/tests/init.pp +1 -0
  102. data/puppet/modules/drupal/tests/monitor.pp +1 -0
  103. data/puppet/modules/hosts/README +0 -0
  104. data/puppet/modules/hosts/manifests/example42.pp +5 -0
  105. data/puppet/modules/hosts/manifests/init.pp +16 -0
  106. data/puppet/modules/hosts/templates/hosts.erb +11 -0
  107. data/puppet/modules/iptables/README +4 -0
  108. data/puppet/modules/iptables/files/iptables +19 -0
  109. data/puppet/modules/iptables/manifests/disable.pp +15 -0
  110. data/puppet/modules/iptables/manifests/init.pp +9 -0
  111. data/puppet/modules/iptables/manifests/redhat.pp +24 -0
  112. data/puppet/modules/mysql/Modulefile +7 -0
  113. data/puppet/modules/mysql/README +56 -0
  114. data/puppet/modules/mysql/manifests/absent.pp +12 -0
  115. data/puppet/modules/mysql/manifests/backup/example42.pp +8 -0
  116. data/puppet/modules/mysql/manifests/backup.pp +49 -0
  117. data/puppet/modules/mysql/manifests/client.pp +18 -0
  118. data/puppet/modules/mysql/manifests/conf.pp +23 -0
  119. data/puppet/modules/mysql/manifests/debug.pp +25 -0
  120. data/puppet/modules/mysql/manifests/disable.pp +13 -0
  121. data/puppet/modules/mysql/manifests/disableboot.pp +13 -0
  122. data/puppet/modules/mysql/manifests/example42.pp +25 -0
  123. data/puppet/modules/mysql/manifests/firewall.pp +23 -0
  124. data/puppet/modules/mysql/manifests/grant.pp +29 -0
  125. data/puppet/modules/mysql/manifests/init.pp +67 -0
  126. data/puppet/modules/mysql/manifests/monitor/example42.pp +8 -0
  127. data/puppet/modules/mysql/manifests/monitor.pp +77 -0
  128. data/puppet/modules/mysql/manifests/params.pp +240 -0
  129. data/puppet/modules/mysql/manifests/query.pp +30 -0
  130. data/puppet/modules/mysql/templates/grant.erb +6 -0
  131. data/puppet/modules/mysql/templates/query.erb +5 -0
  132. data/puppet/modules/mysql/templates/variables_mysql.erb +42 -0
  133. data/puppet/modules/network/README +4 -0
  134. data/puppet/modules/network/manifests/init.pp +13 -0
  135. data/puppet/modules/nginx/manifests/fcgi.pp +87 -0
  136. data/puppet/modules/nginx/manifests/init.pp +205 -0
  137. data/puppet/modules/nginx/templates/fcgi_site.erb +38 -0
  138. data/puppet/modules/nginx/templates/includes/fastcgi_params.erb +23 -0
  139. data/puppet/modules/nginx/templates/nginx.conf.erb +31 -0
  140. data/puppet/modules/passenger/manifests/init.pp +12 -0
  141. data/puppet/modules/passenger/templates/myapp +39 -0
  142. data/puppet/modules/php/README +26 -0
  143. data/puppet/modules/php/manifests/init.pp +42 -0
  144. data/puppet/modules/php/manifests/module.pp +22 -0
  145. data/puppet/modules/php/manifests/pear/module.pp +21 -0
  146. data/puppet/modules/php/manifests/pear.pp +20 -0
  147. data/puppet/modules/php/manifests/pecl/config.pp +19 -0
  148. data/puppet/modules/php/manifests/pecl/module.pp +44 -0
  149. data/puppet/modules/php/manifests/pecl.pp +8 -0
  150. data/puppet/modules/php/manifests/soap.pp +20 -0
  151. data/puppet/modules/postgres/Copyright +13 -0
  152. data/puppet/modules/postgres/manifests/database.pp +40 -0
  153. data/puppet/modules/postgres/manifests/init.pp +25 -0
  154. data/puppet/modules/postgres/manifests/role.pp +40 -0
  155. data/puppet/modules/ruby/files/install-ruby-stow +43 -0
  156. data/puppet/modules/ruby/manifests/init.pp +18 -0
  157. data/puppet/modules/rvm/files/install-system-rvm +2 -0
  158. data/puppet/modules/rvm/manifests/classes/dependencies.pp +24 -0
  159. data/puppet/modules/rvm/manifests/classes/passenger.pp +166 -0
  160. data/puppet/modules/rvm/manifests/classes/system.pp +33 -0
  161. data/puppet/modules/rvm/manifests/definitions/system_user.pp +13 -0
  162. data/puppet/modules/rvm/manifests/init.pp +2 -0
  163. data/puppet/modules/rvm/templates/passenger-apache.conf.erb +9 -0
  164. data/puppet/modules/ssh/README +4 -0
  165. data/puppet/modules/ssh/manifests/auth.pp +39 -0
  166. data/puppet/modules/ssh/manifests/auth.pp.good +340 -0
  167. data/puppet/modules/ssh/manifests/eal4.pp +69 -0
  168. data/puppet/modules/ssh/manifests/init.pp +74 -0
  169. data/puppet/modules/stow/manifests/init.pp +5 -0
  170. data/puppet/modules/sudo/files/sudoers +25 -0
  171. data/puppet/modules/sudo/manifests/init.pp +1 -0
  172. data/puppet/modules/sudo/manifests/install.pp +5 -0
  173. data/puppet/modules/sudo/manifests/sudoers.pp +14 -0
  174. data/puppet/modules/ufw/manifests/init.pp +12 -0
  175. data/puppet/modules/users/README +28 -0
  176. data/puppet/modules/users/manifests/adduser.pp +16 -0
  177. data/puppet/modules/users/manifests/admin.pp +11 -0
  178. data/puppet/modules/users/manifests/automount.pp +34 -0
  179. data/puppet/modules/users/manifests/deluser.pp +8 -0
  180. data/puppet/modules/users/manifests/example42.pp +16 -0
  181. data/puppet/modules/users/manifests/init.pp +31 -0
  182. data/puppet/modules/users/manifests/ldap.pp +114 -0
  183. data/puppet/modules/users/manifests/params.pp +84 -0
  184. data/puppet/modules/users/templates/ldap/ldap.conf.erb +13 -0
  185. data/puppet/modules/users/templates/ldap/nsswitch.conf.erb +23 -0
  186. data/puppet/modules/users/templates/ldap/openldap-ldap.conf.erb +8 -0
  187. data/puppet/modules/webmin/manifests/init.pp +31 -0
  188. data/puppet/roles/blank.pp +1 -0
  189. data/puppet/site.pp +8 -0
  190. metadata +235 -81
  191. data/README +0 -3
  192. data/bin/provizion +0 -52
  193. data/lib/policies/chef-client.rb +0 -37
  194. data/lib/policies/lamp.rb +0 -42
  195. data/lib/policies/passenger.rb +0 -44
  196. data/lib/recipes/apache.rb +0 -70
  197. data/lib/recipes/apache_conf.rb +0 -3
  198. data/lib/recipes/bundler.rb +0 -4
  199. data/lib/recipes/chef_client.rb +0 -11
  200. data/lib/recipes/curl.rb +0 -8
  201. data/lib/recipes/essential.rb +0 -4
  202. data/lib/recipes/git.rb +0 -15
  203. data/lib/recipes/imagemagick.rb +0 -8
  204. data/lib/recipes/mailserver.rb +0 -9
  205. data/lib/recipes/memcached.rb +0 -16
  206. data/lib/recipes/mysql.rb +0 -21
  207. data/lib/recipes/nginx/init.d +0 -63
  208. data/lib/recipes/nginx.rb +0 -25
  209. data/lib/recipes/passenger.rb +0 -67
  210. data/lib/recipes/php.rb +0 -8
  211. data/lib/recipes/postgresql.rb +0 -21
  212. data/lib/recipes/ruby_enterprise.rb +0 -24
  213. data/lib/recipes/rvm.rb +0 -25
  214. data/lib/recipes/sources.rb +0 -5
  215. data/lib/recipes/subversion.rb +0 -8
  216. data/lib/recipes/syslog.rb +0 -7
  217. data/lib/recipes/ufw.rb +0 -12
  218. data/lib/recipes/vim.rb +0 -8
  219. data/lib/recipes/webmin.rb +0 -17
  220. data/lib/templates/apache.conf.erb +0 -12
  221. data/lib/templates/my.cnf +0 -132
  222. data/lib/templates/passenger.conf +0 -11
  223. data/lib/templates/passenger.load +0 -1
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'http://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in season-puppet.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ Server provisioning tool
2
+ ========================
3
+
4
+ Intro
5
+ -----
6
+
7
+ Provizioning is the tool that Season use internally to setup new machines it uses Capistrano for bootstrapping the server and uploading the recipes, then use puppet for configuration and fine tunning.
8
+
9
+ Usage
10
+ -----
11
+
12
+ Include provizioning in your gem file:
13
+
14
+ gem 'provizioning'
15
+
16
+ Setup a directory for capistrano use:
17
+
18
+ capify .
19
+
20
+ Configure deploy.rb :user var for deployment and provisioning or use :puppet_user for provisioning:
21
+
22
+ set :puppet_user, 'root'
23
+
24
+ Use capistrano tasks to provision the server:
25
+
26
+ bundle exec cap puppet:bootstrap
27
+ bundle exec cap puppet:apply
28
+
29
+ Based on https://github.com/freerange/freerange-puppet
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,71 @@
1
+ #!/bin/bash
2
+
3
+ # ruby-stack - Install Ruby and friends.
4
+ # Author: Francesc Esplugas <http://francescesplugas.com/>
5
+ # License: MIT-LICENSE
6
+ #
7
+ # DON'T CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU'RE DOING!
8
+
9
+ ##############################################################################
10
+ # Abort on any error.
11
+ ##############################################################################
12
+
13
+ set -e
14
+
15
+ ##############################################################################
16
+ # Update and upgrade the system.
17
+ ##############################################################################
18
+
19
+ cd /etc/apt
20
+
21
+ # Sources depending on Ubuntu Version
22
+ var=`cat /etc/issue`
23
+ if [ "$var" == "Ubuntu 11.04 \n \l" ]
24
+ then
25
+ wget https://raw.github.com/seasonlabs/provizioning/master/bootstrap/natty.sources.list -O sources.list
26
+ else
27
+ wget https://raw.github.com/seasonlabs/provizioning/master/bootstrap/lucid.sources.list -O sources.list
28
+ fi
29
+
30
+ apt-get update
31
+ apt-get -y upgrade
32
+
33
+ ##############################################################################
34
+ # Install essential stuff ...
35
+ ##############################################################################
36
+
37
+ apt-get -y install python-software-properties
38
+ add-apt-repository ppa:pitti/postgresql
39
+ add-apt-repository ppa:nginx/stable
40
+ #10gen key
41
+ apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
42
+ apt-get update
43
+ apt-get -y install build-essential
44
+ apt-get -y install git-core
45
+ apt-get -y install vim
46
+ apt-get -y install curl
47
+
48
+ ##############################################################################
49
+ # Extra stuff to make things work ...
50
+ ##############################################################################
51
+
52
+ locale-gen en_US.UTF-8
53
+ dpkg-reconfigure locales
54
+
55
+ ##############################################################################
56
+ # Install Ruby
57
+ ##############################################################################
58
+
59
+ apt-get -y install ruby ruby-dev irb libopenssl-ruby rdoc
60
+
61
+ cd /tmp
62
+ RUBYGEMS="1.8.11"
63
+ curl -O http://production.cf.rubygems.org/rubygems/rubygems-$RUBYGEMS.tgz
64
+ tar xvzf rubygems-$RUBYGEMS.tgz
65
+ ruby rubygems-$RUBYGEMS/setup.rb --no-ri --no-rdoc --no-format-executable
66
+
67
+ # Cleanup the installation
68
+ apt-get -y autoremove
69
+
70
+ # Install Puppet
71
+ gem install puppet --no-ri --no-rdoc
@@ -10,4 +10,5 @@ deb-src http://archive.ubuntu.com/ubuntu/ lucid main
10
10
  deb http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
11
11
  deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
12
12
  deb http://archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
13
- deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
13
+ deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
14
+ deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
@@ -0,0 +1,14 @@
1
+ #############################################################
2
+ ################### OFFICIAL UBUNTU REPOS ###################
3
+ #############################################################
4
+
5
+ ###### Ubuntu Main Repos
6
+ deb http://archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
7
+ deb-src http://archive.ubuntu.com/ubuntu/ natty main
8
+
9
+ ###### Ubuntu Update Repos
10
+ deb http://archive.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
11
+ deb http://archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
12
+ deb http://archive.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
13
+ deb http://archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
14
+ deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
@@ -0,0 +1,94 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ default_run_options[:pty] = true # needed for git password prompts
3
+ ssh_options[:forward_agent] = true # use the keys for the person running the cap command to check out the app
4
+
5
+ set :puppet_dryrun, false
6
+ set :puppet_debug, false
7
+ set :puppet_path, '/tmp/puppet_recipes'
8
+ set :puppet_app_modules_path, "#{puppet_path}/apps"
9
+ set(:puppet_user) { user }
10
+
11
+ namespace :puppet do
12
+ desc "Deploy our puppet recipes to the server"
13
+ task :deploy_recipes do
14
+ with_puppet_user do
15
+ run "rm -rf #{puppet_path}"
16
+ upload File.expand_path("../../../puppet", __FILE__), puppet_path
17
+ end
18
+ end
19
+
20
+ desc 'Apply puppet configuration'
21
+ task :apply do
22
+ apply_manifest "#{puppet_path}/site.pp"
23
+ end
24
+
25
+ desc 'Dryrun puppet configuration'
26
+ task :dryrun do
27
+ set :puppet_dryrun, true
28
+ end
29
+
30
+ desc 'Debug puppet configuration'
31
+ task :debug do
32
+ set :puppet_debug, true
33
+ end
34
+
35
+ desc 'Bootstrap puppet'
36
+ task :bootstrap do
37
+ with_puppet_user do
38
+ run "wget -q -O - https://raw.github.com/seasonlabs/provizioning/master/bootstrap/bootstrap.sh | sh"
39
+ end
40
+ end
41
+
42
+ desc 'Upload app modules'
43
+ task :upload_app_modules do
44
+ deploy_recipes
45
+ with_puppet_user do
46
+ if File.directory?("config/puppet")
47
+ upload File.expand_path("config/puppet"), puppet_app_modules_path
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ before "puppet:apply", "puppet:upload_app_modules"
54
+
55
+ def with_puppet_user(&block)
56
+ old_user = user
57
+ set :user, puppet_user
58
+ close_sessions
59
+ yield
60
+ set :user, old_user
61
+ close_sessions
62
+ end
63
+
64
+ def close_sessions
65
+ sessions.values.each { |session| session.close }
66
+ sessions.clear
67
+ end
68
+
69
+ def apply_manifest(manifest, options = {})
70
+ dryrun_option = fetch('puppet_dryrun') ? "--noop " : ""
71
+ debug_option = fetch('puppet_debug') ? "-d " : ""
72
+ with_puppet_user do
73
+ run "puppet apply --modulepath '#{puppet_app_modules_path}:#{puppet_path}/modules' --templatedir #{puppet_path}/classes #{dryrun_option}-v #{debug_option}#{manifest}", options
74
+ end
75
+ end
76
+
77
+ def manifest(role, manifest = nil, &block)
78
+ require 'erb'
79
+
80
+ name = "#{role}-manifest"
81
+ top.namespace :puppet do
82
+ task name, :roles => [role.to_sym] do
83
+ with_puppet_user do
84
+ manifest = block.call if manifest.nil?
85
+ put ERB.new(manifest).result(binding), "#{puppet_path}/roles/#{application}-#{stage}-#{role}.pp", :roles => [role.to_sym]
86
+ end
87
+ end
88
+
89
+ before "puppet:apply" do
90
+ puppet.send name
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,3 @@
1
+ module Provizioning
2
+ VERSION = "0.4.0"
3
+ end
data/lib/provizioning.rb CHANGED
@@ -1,3 +1 @@
1
- Dir["#{File.dirname(__FILE__)}/recipes/*.rb"].each do |package|
2
- require package
3
- end
1
+ require 'provizioning/puppet'
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/provizioning/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Victor Castell"]
6
+ gem.email = ["victor.castell@season.es"]
7
+ gem.summary = %Q{Server provisioning tool based on Sprinkle}
8
+ gem.description = %Q{Server provisioning tools, recipes and templates based on Sprinkle}
9
+ gem.homepage = "http://github.com/seasonlabs/provizioning"
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "provizioning"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Provizioning::VERSION
17
+
18
+ gem.add_dependency(%q<capistrano>, [">= 0"])
19
+ gem.add_dependency(%q<capistrano-ext>, [">= 0"])
20
+ end