freighthop 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. data/Puppetfile +4 -3
  2. data/Puppetfile.lock +14 -2
  3. data/Vagrantfile +5 -1
  4. data/data/common.json +4 -3
  5. data/freighthop.gemspec +1 -1
  6. data/lib/freighthop/cli/checks.rb +12 -0
  7. data/lib/freighthop/cli/help.rb +7 -0
  8. data/lib/freighthop/cli/init.rb +35 -0
  9. data/lib/freighthop/cli/ssh.rb +1 -0
  10. data/lib/freighthop/cli/vagrant.rb +1 -0
  11. data/lib/freighthop/cli.rb +5 -17
  12. data/lib/freighthop/config.rb +5 -1
  13. data/lib/freighthop/version.rb +1 -1
  14. data/lib/freighthop.rb +6 -1
  15. data/local_modules/freighthop/manifests/database/mysql/grant.pp +11 -0
  16. data/local_modules/freighthop/manifests/database/mysql.pp +5 -15
  17. data/local_modules/freighthop/manifests/database/postgres.pp +2 -2
  18. data/local_modules/freighthop/manifests/database.pp +3 -3
  19. data/local_modules/freighthop/manifests/init.pp +6 -23
  20. data/local_modules/freighthop/manifests/language/ruby.pp +5 -25
  21. data/local_modules/freighthop/manifests/language.pp +1 -4
  22. data/local_modules/freighthop/manifests/packages.pp +2 -12
  23. data/local_modules/freighthop/manifests/params.pp +19 -11
  24. data/local_modules/freighthop/manifests/web/apache.pp +60 -0
  25. data/local_modules/freighthop/manifests/web/nginx.pp +22 -0
  26. data/local_modules/freighthop/manifests/web/ssl.pp +13 -0
  27. data/local_modules/freighthop/manifests/web.pp +25 -21
  28. data/local_modules/freighthop/templates/apache/passenger.conf.erb +18 -0
  29. data/local_modules/freighthop/templates/nginx/vagrant-rails.conf.erb +5 -3
  30. data/modules/apache/CHANGELOG.md +172 -0
  31. data/modules/apache/CONTRIBUTING.md +234 -0
  32. data/modules/apache/Gemfile +25 -0
  33. data/modules/apache/LICENSE +15 -0
  34. data/modules/apache/Modulefile +12 -0
  35. data/modules/apache/README.md +1515 -0
  36. data/modules/apache/README.passenger.md +93 -0
  37. data/modules/apache/Rakefile +1 -0
  38. data/modules/apache/files/httpd +24 -0
  39. data/modules/apache/lib/puppet/provider/a2mod/a2mod.rb +35 -0
  40. data/modules/apache/lib/puppet/provider/a2mod/gentoo.rb +116 -0
  41. data/modules/apache/lib/puppet/provider/a2mod/modfix.rb +12 -0
  42. data/modules/apache/lib/puppet/provider/a2mod/redhat.rb +60 -0
  43. data/modules/apache/lib/puppet/provider/a2mod.rb +34 -0
  44. data/modules/apache/lib/puppet/type/a2mod.rb +30 -0
  45. data/modules/apache/manifests/balancer.pp +80 -0
  46. data/modules/apache/manifests/balancermember.pp +52 -0
  47. data/modules/apache/manifests/confd/no_accf.pp +10 -0
  48. data/modules/apache/manifests/default_confd_files.pp +12 -0
  49. data/modules/apache/manifests/default_mods/load.pp +8 -0
  50. data/modules/apache/manifests/default_mods.pp +108 -0
  51. data/modules/apache/manifests/dev.pp +11 -0
  52. data/modules/apache/manifests/init.pp +329 -0
  53. data/modules/apache/manifests/listen.pp +9 -0
  54. data/modules/apache/manifests/mod/alias.pp +17 -0
  55. data/modules/apache/manifests/mod/auth_basic.pp +3 -0
  56. data/modules/apache/manifests/mod/auth_kerb.pp +5 -0
  57. data/modules/apache/manifests/mod/authnz_ldap.pp +19 -0
  58. data/modules/apache/manifests/mod/autoindex.pp +12 -0
  59. data/modules/apache/manifests/mod/cache.pp +3 -0
  60. data/modules/apache/manifests/mod/cgi.pp +4 -0
  61. data/modules/apache/manifests/mod/cgid.pp +23 -0
  62. data/modules/apache/manifests/mod/dav.pp +3 -0
  63. data/modules/apache/manifests/mod/dav_fs.pp +20 -0
  64. data/modules/apache/manifests/mod/dav_svn.pp +5 -0
  65. data/modules/apache/manifests/mod/deflate.pp +12 -0
  66. data/modules/apache/manifests/mod/dev.pp +5 -0
  67. data/modules/apache/manifests/mod/dir.pp +21 -0
  68. data/modules/apache/manifests/mod/disk_cache.pp +24 -0
  69. data/modules/apache/manifests/mod/event.pp +54 -0
  70. data/modules/apache/manifests/mod/expires.pp +3 -0
  71. data/modules/apache/manifests/mod/fastcgi.pp +24 -0
  72. data/modules/apache/manifests/mod/fcgid.pp +3 -0
  73. data/modules/apache/manifests/mod/headers.pp +3 -0
  74. data/modules/apache/manifests/mod/include.pp +3 -0
  75. data/modules/apache/manifests/mod/info.pp +14 -0
  76. data/modules/apache/manifests/mod/itk.pp +64 -0
  77. data/modules/apache/manifests/mod/ldap.pp +12 -0
  78. data/modules/apache/manifests/mod/mime.pp +21 -0
  79. data/modules/apache/manifests/mod/mime_magic.pp +14 -0
  80. data/modules/apache/manifests/mod/negotiation.pp +12 -0
  81. data/modules/apache/manifests/mod/nss.pp +25 -0
  82. data/modules/apache/manifests/mod/passenger.pp +38 -0
  83. data/modules/apache/manifests/mod/perl.pp +3 -0
  84. data/modules/apache/manifests/mod/peruser.pp +73 -0
  85. data/modules/apache/manifests/mod/php.pp +26 -0
  86. data/modules/apache/manifests/mod/prefork.pp +74 -0
  87. data/modules/apache/manifests/mod/proxy.pp +15 -0
  88. data/modules/apache/manifests/mod/proxy_ajp.pp +4 -0
  89. data/modules/apache/manifests/mod/proxy_balancer.pp +10 -0
  90. data/modules/apache/manifests/mod/proxy_html.pp +28 -0
  91. data/modules/apache/manifests/mod/proxy_http.pp +4 -0
  92. data/modules/apache/manifests/mod/python.pp +5 -0
  93. data/modules/apache/manifests/mod/reqtimeout.pp +12 -0
  94. data/modules/apache/manifests/mod/rewrite.pp +4 -0
  95. data/modules/apache/manifests/mod/rpaf.pp +20 -0
  96. data/modules/apache/manifests/mod/setenvif.pp +12 -0
  97. data/modules/apache/manifests/mod/ssl.pp +26 -0
  98. data/modules/apache/manifests/mod/status.pp +42 -0
  99. data/modules/apache/manifests/mod/suphp.pp +14 -0
  100. data/modules/apache/manifests/mod/userdir.pp +17 -0
  101. data/modules/apache/manifests/mod/vhost_alias.pp +3 -0
  102. data/modules/apache/manifests/mod/worker.pp +75 -0
  103. data/modules/apache/manifests/mod/wsgi.pp +21 -0
  104. data/modules/apache/manifests/mod/xsendfile.pp +4 -0
  105. data/modules/apache/manifests/mod.pp +120 -0
  106. data/modules/apache/manifests/namevirtualhost.pp +9 -0
  107. data/modules/apache/manifests/package.pp +48 -0
  108. data/modules/apache/manifests/params.pp +207 -0
  109. data/modules/apache/manifests/peruser/multiplexer.pp +17 -0
  110. data/modules/apache/manifests/peruser/processor.pp +17 -0
  111. data/modules/apache/manifests/php.pp +18 -0
  112. data/modules/apache/manifests/proxy.pp +15 -0
  113. data/modules/apache/manifests/python.pp +18 -0
  114. data/modules/apache/manifests/service.pp +35 -0
  115. data/modules/apache/manifests/ssl.pp +18 -0
  116. data/modules/apache/manifests/vhost.pp +516 -0
  117. data/modules/apache/spec/acceptance/basic_spec.rb +12 -0
  118. data/modules/apache/spec/acceptance/class_spec.rb +58 -0
  119. data/modules/apache/spec/acceptance/default_mods_spec.rb +97 -0
  120. data/modules/apache/spec/acceptance/itk_spec.rb +35 -0
  121. data/modules/apache/spec/acceptance/mod_php_spec.rb +52 -0
  122. data/modules/apache/spec/acceptance/mod_suphp_spec.rb +44 -0
  123. data/modules/apache/spec/acceptance/nodesets/centos-64-x64.yml +8 -0
  124. data/modules/apache/spec/acceptance/nodesets/default.yml +8 -0
  125. data/modules/apache/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml +8 -0
  126. data/modules/apache/spec/acceptance/nodesets/vagrant.key +27 -0
  127. data/modules/apache/spec/acceptance/prefork_worker_spec.rb +81 -0
  128. data/modules/apache/spec/acceptance/service_spec.rb +19 -0
  129. data/modules/apache/spec/acceptance/vhost_spec.rb +290 -0
  130. data/modules/apache/spec/classes/apache_spec.rb +464 -0
  131. data/modules/apache/spec/classes/dev_spec.rb +38 -0
  132. data/modules/apache/spec/classes/mod/auth_kerb_spec.rb +41 -0
  133. data/modules/apache/spec/classes/mod/authnz_ldap_spec.rb +65 -0
  134. data/modules/apache/spec/classes/mod/dav_svn_spec.rb +41 -0
  135. data/modules/apache/spec/classes/mod/dev_spec.rb +23 -0
  136. data/modules/apache/spec/classes/mod/dir_spec.rb +88 -0
  137. data/modules/apache/spec/classes/mod/event_spec.rb +17 -0
  138. data/modules/apache/spec/classes/mod/fastcgi_spec.rb +32 -0
  139. data/modules/apache/spec/classes/mod/fcgid_spec.rb +41 -0
  140. data/modules/apache/spec/classes/mod/info_spec.rb +99 -0
  141. data/modules/apache/spec/classes/mod/itk_spec.rb +31 -0
  142. data/modules/apache/spec/classes/mod/mime_magic_spec.rb +93 -0
  143. data/modules/apache/spec/classes/mod/passenger_spec.rb +112 -0
  144. data/modules/apache/spec/classes/mod/perl_spec.rb +41 -0
  145. data/modules/apache/spec/classes/mod/peruser_spec.rb +17 -0
  146. data/modules/apache/spec/classes/mod/php_spec.rb +99 -0
  147. data/modules/apache/spec/classes/mod/prefork_spec.rb +47 -0
  148. data/modules/apache/spec/classes/mod/proxy_html_spec.rb +45 -0
  149. data/modules/apache/spec/classes/mod/python_spec.rb +41 -0
  150. data/modules/apache/spec/classes/mod/rpaf_spec.rb +77 -0
  151. data/modules/apache/spec/classes/mod/ssl_spec.rb +53 -0
  152. data/modules/apache/spec/classes/mod/status_spec.rb +166 -0
  153. data/modules/apache/spec/classes/mod/suphp_spec.rb +27 -0
  154. data/modules/apache/spec/classes/mod/worker_spec.rb +44 -0
  155. data/modules/apache/spec/classes/mod/wsgi_spec.rb +54 -0
  156. data/modules/apache/spec/classes/params_spec.rb +21 -0
  157. data/modules/apache/spec/classes/service_spec.rb +109 -0
  158. data/modules/apache/spec/defines/mod_spec.rb +105 -0
  159. data/modules/apache/spec/defines/vhost_spec.rb +1152 -0
  160. data/modules/apache/spec/fixtures/modules/site_apache/templates/fake.conf.erb +1 -0
  161. data/modules/apache/spec/spec.opts +4 -0
  162. data/modules/apache/spec/spec_helper.rb +1 -0
  163. data/modules/apache/spec/spec_helper_acceptance.rb +27 -0
  164. data/modules/apache/spec/unit/provider/a2mod/gentoo_spec.rb +184 -0
  165. data/modules/apache/templates/confd/no-accf.conf.erb +4 -0
  166. data/modules/apache/templates/httpd.conf.erb +92 -0
  167. data/modules/apache/templates/listen.erb +6 -0
  168. data/modules/apache/templates/mod/alias.conf.erb +9 -0
  169. data/modules/apache/templates/mod/authnz_ldap.conf.erb +5 -0
  170. data/modules/apache/templates/mod/autoindex.conf.erb +56 -0
  171. data/modules/apache/templates/mod/cgid.conf.erb +1 -0
  172. data/modules/apache/templates/mod/dav_fs.conf.erb +1 -0
  173. data/modules/apache/templates/mod/deflate.conf.erb +4 -0
  174. data/modules/apache/templates/mod/dir.conf.erb +1 -0
  175. data/modules/apache/templates/mod/disk_cache.conf.erb +8 -0
  176. data/modules/apache/templates/mod/event.conf.erb +9 -0
  177. data/modules/apache/templates/mod/fastcgi.conf.erb +6 -0
  178. data/modules/apache/templates/mod/info.conf.erb +6 -0
  179. data/modules/apache/templates/mod/itk.conf.erb +8 -0
  180. data/modules/apache/templates/mod/ldap.conf.erb +7 -0
  181. data/modules/apache/templates/mod/mime.conf.erb +36 -0
  182. data/modules/apache/templates/mod/mime_magic.conf.erb +1 -0
  183. data/modules/apache/templates/mod/mpm_event.conf.erb +9 -0
  184. data/modules/apache/templates/mod/negotiation.conf.erb +2 -0
  185. data/modules/apache/templates/mod/nss.conf.erb +228 -0
  186. data/modules/apache/templates/mod/passenger.conf.erb +30 -0
  187. data/modules/apache/templates/mod/peruser.conf.erb +12 -0
  188. data/modules/apache/templates/mod/php5.conf.erb +30 -0
  189. data/modules/apache/templates/mod/prefork.conf.erb +8 -0
  190. data/modules/apache/templates/mod/proxy.conf.erb +23 -0
  191. data/modules/apache/templates/mod/proxy_html.conf.erb +24 -0
  192. data/modules/apache/templates/mod/reqtimeout.conf.erb +2 -0
  193. data/modules/apache/templates/mod/rpaf.conf.erb +15 -0
  194. data/modules/apache/templates/mod/setenvif.conf.erb +34 -0
  195. data/modules/apache/templates/mod/ssl.conf.erb +24 -0
  196. data/modules/apache/templates/mod/status.conf.erb +12 -0
  197. data/modules/apache/templates/mod/suphp.conf.erb +19 -0
  198. data/modules/apache/templates/mod/userdir.conf.erb +19 -0
  199. data/modules/apache/templates/mod/worker.conf.erb +9 -0
  200. data/modules/apache/templates/mod/wsgi.conf.erb +13 -0
  201. data/modules/apache/templates/namevirtualhost.erb +8 -0
  202. data/modules/apache/templates/ports_header.erb +5 -0
  203. data/modules/apache/templates/vhost/_aliases.erb +12 -0
  204. data/modules/apache/templates/vhost/_block.erb +10 -0
  205. data/modules/apache/templates/vhost/_custom_fragment.erb +5 -0
  206. data/modules/apache/templates/vhost/_directories.erb +143 -0
  207. data/modules/apache/templates/vhost/_error_document.erb +7 -0
  208. data/modules/apache/templates/vhost/_fastcgi.erb +18 -0
  209. data/modules/apache/templates/vhost/_itk.erb +28 -0
  210. data/modules/apache/templates/vhost/_php_admin.erb +12 -0
  211. data/modules/apache/templates/vhost/_proxy.erb +20 -0
  212. data/modules/apache/templates/vhost/_rack.erb +7 -0
  213. data/modules/apache/templates/vhost/_redirect.erb +12 -0
  214. data/modules/apache/templates/vhost/_requestheader.erb +10 -0
  215. data/modules/apache/templates/vhost/_rewrite.erb +40 -0
  216. data/modules/apache/templates/vhost/_scriptalias.erb +24 -0
  217. data/modules/apache/templates/vhost/_serveralias.erb +7 -0
  218. data/modules/apache/templates/vhost/_setenv.erb +12 -0
  219. data/modules/apache/templates/vhost/_ssl.erb +41 -0
  220. data/modules/apache/templates/vhost/_suphp.erb +11 -0
  221. data/modules/apache/templates/vhost/_wsgi.erb +15 -0
  222. data/modules/apache/templates/vhost.conf.erb +63 -0
  223. data/modules/apache/tests/apache.pp +6 -0
  224. data/modules/apache/tests/dev.pp +1 -0
  225. data/modules/apache/tests/init.pp +1 -0
  226. data/modules/apache/tests/mod_load_params.pp +11 -0
  227. data/modules/apache/tests/mods.pp +9 -0
  228. data/modules/apache/tests/mods_custom.pp +16 -0
  229. data/modules/apache/tests/php.pp +4 -0
  230. data/modules/apache/tests/vhost.pp +237 -0
  231. data/modules/apache/tests/vhost_directories.pp +30 -0
  232. data/modules/apache/tests/vhost_ip_based.pp +25 -0
  233. data/modules/apache/tests/vhost_ssl.pp +23 -0
  234. data/modules/apache/tests/vhosts_without_listen.pp +53 -0
  235. data/modules/freighthop/manifests/database/mysql/grant.pp +11 -0
  236. data/modules/freighthop/manifests/database/mysql.pp +5 -15
  237. data/modules/freighthop/manifests/database/postgres.pp +2 -2
  238. data/modules/freighthop/manifests/database.pp +3 -3
  239. data/modules/freighthop/manifests/init.pp +6 -23
  240. data/modules/freighthop/manifests/language/ruby.pp +5 -25
  241. data/modules/freighthop/manifests/language.pp +1 -4
  242. data/modules/freighthop/manifests/packages.pp +2 -12
  243. data/modules/freighthop/manifests/params.pp +19 -11
  244. data/modules/freighthop/manifests/web/apache.pp +60 -0
  245. data/modules/freighthop/manifests/web/nginx.pp +22 -0
  246. data/modules/freighthop/manifests/web/ssl.pp +13 -0
  247. data/modules/freighthop/manifests/web.pp +25 -21
  248. data/modules/freighthop/templates/apache/passenger.conf.erb +18 -0
  249. data/modules/freighthop/templates/nginx/vagrant-rails.conf.erb +5 -3
  250. data/modules/rbenv/AUTHORS +11 -0
  251. data/modules/rbenv/CHANGELOG.md +70 -0
  252. data/modules/rbenv/Gemfile +5 -10
  253. data/modules/rbenv/Gemfile.lock +16 -58
  254. data/modules/rbenv/Modulefile +7 -7
  255. data/modules/rbenv/README.md +156 -20
  256. data/modules/rbenv/Rakefile +18 -24
  257. data/modules/rbenv/TODO +10 -0
  258. data/modules/rbenv/bin/autospec +16 -0
  259. data/modules/rbenv/bin/facter +16 -0
  260. data/modules/rbenv/bin/filebucket +16 -0
  261. data/modules/rbenv/bin/hiera +16 -0
  262. data/modules/rbenv/bin/htmldiff +16 -0
  263. data/modules/rbenv/bin/ldiff +16 -0
  264. data/modules/rbenv/bin/pi +16 -0
  265. data/modules/rbenv/bin/puppet +16 -0
  266. data/modules/rbenv/bin/puppet-lint +16 -0
  267. data/modules/rbenv/bin/puppet-module +16 -0
  268. data/modules/rbenv/bin/puppetca +16 -0
  269. data/modules/rbenv/bin/puppetd +16 -0
  270. data/modules/rbenv/bin/puppetdoc +16 -0
  271. data/modules/rbenv/bin/puppetmasterd +16 -0
  272. data/modules/rbenv/bin/puppetqd +16 -0
  273. data/modules/rbenv/bin/puppetrun +16 -0
  274. data/modules/rbenv/bin/rake +16 -0
  275. data/modules/rbenv/bin/ralsh +16 -0
  276. data/modules/rbenv/bin/rspec +16 -0
  277. data/modules/rbenv/bin/rspec-puppet-init +16 -0
  278. data/modules/rbenv/lib/puppet/provider/rbenvgem/default.rb +50 -0
  279. data/modules/rbenv/lib/puppet/type/rbenvgem.rb +62 -0
  280. data/modules/rbenv/manifests/bundle.pp +36 -0
  281. data/modules/rbenv/manifests/client.pp +48 -0
  282. data/modules/rbenv/manifests/compile.pp +102 -0
  283. data/modules/rbenv/manifests/definition.pp +31 -0
  284. data/modules/rbenv/manifests/dependencies/centos.pp +25 -0
  285. data/modules/rbenv/manifests/dependencies/suse.pp +28 -0
  286. data/modules/rbenv/manifests/dependencies/ubuntu.pp +17 -0
  287. data/modules/rbenv/manifests/dependencies.pp +8 -0
  288. data/modules/rbenv/manifests/gem.pp +29 -0
  289. data/modules/rbenv/manifests/install.pp +55 -0
  290. data/modules/rbenv/manifests/plugin/rbenvvars.pp +16 -0
  291. data/modules/rbenv/manifests/plugin/rubybuild.pp +16 -0
  292. data/modules/rbenv/manifests/plugin.pp +40 -0
  293. data/modules/rbenv/metadata.json +99 -31
  294. data/modules/rbenv/spec/classes/dependencies_spec.rb +20 -0
  295. data/modules/rbenv/spec/defines/rbenv__compile_spec.rb +34 -0
  296. data/modules/rbenv/spec/defines/rbenv__definition_spec.rb +40 -0
  297. data/modules/rbenv/spec/defines/rbenv__install_spec.rb +24 -0
  298. data/modules/rbenv/spec/defines/rbenv__plugin__rbenvvars_spec.rb +14 -0
  299. data/modules/rbenv/spec/defines/rbenv__plugin__rubybuild_spec.rb +14 -0
  300. data/modules/rbenv/spec/defines/rbenv__plugin_spec.rb +31 -0
  301. data/modules/rbenv/spec/fixtures/manifests/site.pp +0 -0
  302. data/modules/rbenv/spec/spec_helper.rb +6 -1
  303. data/modules/rbenv/templates/Gemfile.erb +5 -0
  304. data/modules/rbenv/templates/dot.rbenvrc.erb +8 -0
  305. metadata +271 -23
  306. data/modules/rbenv/CHANGELOG +0 -33
  307. data/modules/rbenv/LICENSE +0 -20
  308. data/modules/rbenv/manifests/alias.pp +0 -32
  309. data/modules/rbenv/manifests/global.pp +0 -22
  310. data/modules/rbenv/manifests/init.pp +0 -30
  311. data/modules/rbenv/manifests/params.pp +0 -16
  312. data/modules/rbenv/manifests/rehash.pp +0 -28
  313. data/modules/rbenv/manifests/version.pp +0 -63
  314. data/modules/rbenv/spec/classes/rbenv__global_spec.rb +0 -31
  315. data/modules/rbenv/spec/classes/rbenv_spec.rb +0 -30
  316. data/modules/rbenv/spec/defines/rbenv__alias_spec.rb +0 -22
  317. data/modules/rbenv/spec/defines/rbenv__rehash_spec.rb +0 -22
  318. data/modules/rbenv/spec/defines/rbenv__version_spec.rb +0 -60
  319. data/modules/rbenv/spec/spec_helper_system.rb +0 -16
  320. data/modules/rbenv/spec/system/basic_spec.rb +0 -13
  321. data/modules/rbenv/templates/etc/profile.d/rbenv.sh.erb +0 -2
  322. data/modules/rbenv/tests/init.pp +0 -12
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freighthop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2014-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -80,17 +80,17 @@ dependencies:
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
- - - ! '>='
83
+ - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: '0'
85
+ version: 0.9.10
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false
90
90
  requirements:
91
- - - ! '>='
91
+ - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 0.9.10
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: json
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -133,7 +133,9 @@ files:
133
133
  - init/symlinks_for_hiera.sh
134
134
  - lib/freighthop.rb
135
135
  - lib/freighthop/cli.rb
136
+ - lib/freighthop/cli/checks.rb
136
137
  - lib/freighthop/cli/help.rb
138
+ - lib/freighthop/cli/init.rb
137
139
  - lib/freighthop/cli/ssh.rb
138
140
  - lib/freighthop/cli/vagrant.rb
139
141
  - lib/freighthop/config.rb
@@ -141,6 +143,7 @@ files:
141
143
  - lib/freighthop/version.rb
142
144
  - local_modules/freighthop/manifests/database.pp
143
145
  - local_modules/freighthop/manifests/database/mysql.pp
146
+ - local_modules/freighthop/manifests/database/mysql/grant.pp
144
147
  - local_modules/freighthop/manifests/database/postgres.pp
145
148
  - local_modules/freighthop/manifests/init.pp
146
149
  - local_modules/freighthop/manifests/language.pp
@@ -149,9 +152,218 @@ files:
149
152
  - local_modules/freighthop/manifests/packages.pp
150
153
  - local_modules/freighthop/manifests/params.pp
151
154
  - local_modules/freighthop/manifests/web.pp
155
+ - local_modules/freighthop/manifests/web/apache.pp
156
+ - local_modules/freighthop/manifests/web/nginx.pp
157
+ - local_modules/freighthop/manifests/web/ssl.pp
158
+ - local_modules/freighthop/templates/apache/passenger.conf.erb
152
159
  - local_modules/freighthop/templates/nginx/vagrant-rails.conf.erb
153
160
  - local_modules/freighthop/templates/profile/leiningen.sh.erb
154
161
  - manifests/site.pp
162
+ - modules/apache/CHANGELOG.md
163
+ - modules/apache/CONTRIBUTING.md
164
+ - modules/apache/files/httpd
165
+ - modules/apache/Gemfile
166
+ - modules/apache/lib/puppet/provider/a2mod/a2mod.rb
167
+ - modules/apache/lib/puppet/provider/a2mod/gentoo.rb
168
+ - modules/apache/lib/puppet/provider/a2mod/modfix.rb
169
+ - modules/apache/lib/puppet/provider/a2mod/redhat.rb
170
+ - modules/apache/lib/puppet/provider/a2mod.rb
171
+ - modules/apache/lib/puppet/type/a2mod.rb
172
+ - modules/apache/LICENSE
173
+ - modules/apache/manifests/balancer.pp
174
+ - modules/apache/manifests/balancermember.pp
175
+ - modules/apache/manifests/confd/no_accf.pp
176
+ - modules/apache/manifests/default_confd_files.pp
177
+ - modules/apache/manifests/default_mods/load.pp
178
+ - modules/apache/manifests/default_mods.pp
179
+ - modules/apache/manifests/dev.pp
180
+ - modules/apache/manifests/init.pp
181
+ - modules/apache/manifests/listen.pp
182
+ - modules/apache/manifests/mod/alias.pp
183
+ - modules/apache/manifests/mod/auth_basic.pp
184
+ - modules/apache/manifests/mod/auth_kerb.pp
185
+ - modules/apache/manifests/mod/authnz_ldap.pp
186
+ - modules/apache/manifests/mod/autoindex.pp
187
+ - modules/apache/manifests/mod/cache.pp
188
+ - modules/apache/manifests/mod/cgi.pp
189
+ - modules/apache/manifests/mod/cgid.pp
190
+ - modules/apache/manifests/mod/dav.pp
191
+ - modules/apache/manifests/mod/dav_fs.pp
192
+ - modules/apache/manifests/mod/dav_svn.pp
193
+ - modules/apache/manifests/mod/deflate.pp
194
+ - modules/apache/manifests/mod/dev.pp
195
+ - modules/apache/manifests/mod/dir.pp
196
+ - modules/apache/manifests/mod/disk_cache.pp
197
+ - modules/apache/manifests/mod/event.pp
198
+ - modules/apache/manifests/mod/expires.pp
199
+ - modules/apache/manifests/mod/fastcgi.pp
200
+ - modules/apache/manifests/mod/fcgid.pp
201
+ - modules/apache/manifests/mod/headers.pp
202
+ - modules/apache/manifests/mod/include.pp
203
+ - modules/apache/manifests/mod/info.pp
204
+ - modules/apache/manifests/mod/itk.pp
205
+ - modules/apache/manifests/mod/ldap.pp
206
+ - modules/apache/manifests/mod/mime.pp
207
+ - modules/apache/manifests/mod/mime_magic.pp
208
+ - modules/apache/manifests/mod/negotiation.pp
209
+ - modules/apache/manifests/mod/nss.pp
210
+ - modules/apache/manifests/mod/passenger.pp
211
+ - modules/apache/manifests/mod/perl.pp
212
+ - modules/apache/manifests/mod/peruser.pp
213
+ - modules/apache/manifests/mod/php.pp
214
+ - modules/apache/manifests/mod/prefork.pp
215
+ - modules/apache/manifests/mod/proxy.pp
216
+ - modules/apache/manifests/mod/proxy_ajp.pp
217
+ - modules/apache/manifests/mod/proxy_balancer.pp
218
+ - modules/apache/manifests/mod/proxy_html.pp
219
+ - modules/apache/manifests/mod/proxy_http.pp
220
+ - modules/apache/manifests/mod/python.pp
221
+ - modules/apache/manifests/mod/reqtimeout.pp
222
+ - modules/apache/manifests/mod/rewrite.pp
223
+ - modules/apache/manifests/mod/rpaf.pp
224
+ - modules/apache/manifests/mod/setenvif.pp
225
+ - modules/apache/manifests/mod/ssl.pp
226
+ - modules/apache/manifests/mod/status.pp
227
+ - modules/apache/manifests/mod/suphp.pp
228
+ - modules/apache/manifests/mod/userdir.pp
229
+ - modules/apache/manifests/mod/vhost_alias.pp
230
+ - modules/apache/manifests/mod/worker.pp
231
+ - modules/apache/manifests/mod/wsgi.pp
232
+ - modules/apache/manifests/mod/xsendfile.pp
233
+ - modules/apache/manifests/mod.pp
234
+ - modules/apache/manifests/namevirtualhost.pp
235
+ - modules/apache/manifests/package.pp
236
+ - modules/apache/manifests/params.pp
237
+ - modules/apache/manifests/peruser/multiplexer.pp
238
+ - modules/apache/manifests/peruser/processor.pp
239
+ - modules/apache/manifests/php.pp
240
+ - modules/apache/manifests/proxy.pp
241
+ - modules/apache/manifests/python.pp
242
+ - modules/apache/manifests/service.pp
243
+ - modules/apache/manifests/ssl.pp
244
+ - modules/apache/manifests/vhost.pp
245
+ - modules/apache/Modulefile
246
+ - modules/apache/Rakefile
247
+ - modules/apache/README.md
248
+ - modules/apache/README.passenger.md
249
+ - modules/apache/spec/acceptance/basic_spec.rb
250
+ - modules/apache/spec/acceptance/class_spec.rb
251
+ - modules/apache/spec/acceptance/default_mods_spec.rb
252
+ - modules/apache/spec/acceptance/itk_spec.rb
253
+ - modules/apache/spec/acceptance/mod_php_spec.rb
254
+ - modules/apache/spec/acceptance/mod_suphp_spec.rb
255
+ - modules/apache/spec/acceptance/nodesets/centos-64-x64.yml
256
+ - modules/apache/spec/acceptance/nodesets/default.yml
257
+ - modules/apache/spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
258
+ - modules/apache/spec/acceptance/nodesets/vagrant.key
259
+ - modules/apache/spec/acceptance/prefork_worker_spec.rb
260
+ - modules/apache/spec/acceptance/service_spec.rb
261
+ - modules/apache/spec/acceptance/vhost_spec.rb
262
+ - modules/apache/spec/classes/apache_spec.rb
263
+ - modules/apache/spec/classes/dev_spec.rb
264
+ - modules/apache/spec/classes/mod/auth_kerb_spec.rb
265
+ - modules/apache/spec/classes/mod/authnz_ldap_spec.rb
266
+ - modules/apache/spec/classes/mod/dav_svn_spec.rb
267
+ - modules/apache/spec/classes/mod/dev_spec.rb
268
+ - modules/apache/spec/classes/mod/dir_spec.rb
269
+ - modules/apache/spec/classes/mod/event_spec.rb
270
+ - modules/apache/spec/classes/mod/fastcgi_spec.rb
271
+ - modules/apache/spec/classes/mod/fcgid_spec.rb
272
+ - modules/apache/spec/classes/mod/info_spec.rb
273
+ - modules/apache/spec/classes/mod/itk_spec.rb
274
+ - modules/apache/spec/classes/mod/mime_magic_spec.rb
275
+ - modules/apache/spec/classes/mod/passenger_spec.rb
276
+ - modules/apache/spec/classes/mod/perl_spec.rb
277
+ - modules/apache/spec/classes/mod/peruser_spec.rb
278
+ - modules/apache/spec/classes/mod/php_spec.rb
279
+ - modules/apache/spec/classes/mod/prefork_spec.rb
280
+ - modules/apache/spec/classes/mod/proxy_html_spec.rb
281
+ - modules/apache/spec/classes/mod/python_spec.rb
282
+ - modules/apache/spec/classes/mod/rpaf_spec.rb
283
+ - modules/apache/spec/classes/mod/ssl_spec.rb
284
+ - modules/apache/spec/classes/mod/status_spec.rb
285
+ - modules/apache/spec/classes/mod/suphp_spec.rb
286
+ - modules/apache/spec/classes/mod/worker_spec.rb
287
+ - modules/apache/spec/classes/mod/wsgi_spec.rb
288
+ - modules/apache/spec/classes/params_spec.rb
289
+ - modules/apache/spec/classes/service_spec.rb
290
+ - modules/apache/spec/defines/mod_spec.rb
291
+ - modules/apache/spec/defines/vhost_spec.rb
292
+ - modules/apache/spec/fixtures/modules/site_apache/templates/fake.conf.erb
293
+ - modules/apache/spec/spec.opts
294
+ - modules/apache/spec/spec_helper.rb
295
+ - modules/apache/spec/spec_helper_acceptance.rb
296
+ - modules/apache/spec/unit/provider/a2mod/gentoo_spec.rb
297
+ - modules/apache/templates/confd/no-accf.conf.erb
298
+ - modules/apache/templates/httpd.conf.erb
299
+ - modules/apache/templates/listen.erb
300
+ - modules/apache/templates/mod/alias.conf.erb
301
+ - modules/apache/templates/mod/authnz_ldap.conf.erb
302
+ - modules/apache/templates/mod/autoindex.conf.erb
303
+ - modules/apache/templates/mod/cgid.conf.erb
304
+ - modules/apache/templates/mod/dav_fs.conf.erb
305
+ - modules/apache/templates/mod/deflate.conf.erb
306
+ - modules/apache/templates/mod/dir.conf.erb
307
+ - modules/apache/templates/mod/disk_cache.conf.erb
308
+ - modules/apache/templates/mod/event.conf.erb
309
+ - modules/apache/templates/mod/fastcgi.conf.erb
310
+ - modules/apache/templates/mod/info.conf.erb
311
+ - modules/apache/templates/mod/itk.conf.erb
312
+ - modules/apache/templates/mod/ldap.conf.erb
313
+ - modules/apache/templates/mod/mime.conf.erb
314
+ - modules/apache/templates/mod/mime_magic.conf.erb
315
+ - modules/apache/templates/mod/mpm_event.conf.erb
316
+ - modules/apache/templates/mod/negotiation.conf.erb
317
+ - modules/apache/templates/mod/nss.conf.erb
318
+ - modules/apache/templates/mod/passenger.conf.erb
319
+ - modules/apache/templates/mod/peruser.conf.erb
320
+ - modules/apache/templates/mod/php5.conf.erb
321
+ - modules/apache/templates/mod/prefork.conf.erb
322
+ - modules/apache/templates/mod/proxy.conf.erb
323
+ - modules/apache/templates/mod/proxy_html.conf.erb
324
+ - modules/apache/templates/mod/reqtimeout.conf.erb
325
+ - modules/apache/templates/mod/rpaf.conf.erb
326
+ - modules/apache/templates/mod/setenvif.conf.erb
327
+ - modules/apache/templates/mod/ssl.conf.erb
328
+ - modules/apache/templates/mod/status.conf.erb
329
+ - modules/apache/templates/mod/suphp.conf.erb
330
+ - modules/apache/templates/mod/userdir.conf.erb
331
+ - modules/apache/templates/mod/worker.conf.erb
332
+ - modules/apache/templates/mod/wsgi.conf.erb
333
+ - modules/apache/templates/namevirtualhost.erb
334
+ - modules/apache/templates/ports_header.erb
335
+ - modules/apache/templates/vhost/_aliases.erb
336
+ - modules/apache/templates/vhost/_block.erb
337
+ - modules/apache/templates/vhost/_custom_fragment.erb
338
+ - modules/apache/templates/vhost/_directories.erb
339
+ - modules/apache/templates/vhost/_error_document.erb
340
+ - modules/apache/templates/vhost/_fastcgi.erb
341
+ - modules/apache/templates/vhost/_itk.erb
342
+ - modules/apache/templates/vhost/_php_admin.erb
343
+ - modules/apache/templates/vhost/_proxy.erb
344
+ - modules/apache/templates/vhost/_rack.erb
345
+ - modules/apache/templates/vhost/_redirect.erb
346
+ - modules/apache/templates/vhost/_requestheader.erb
347
+ - modules/apache/templates/vhost/_rewrite.erb
348
+ - modules/apache/templates/vhost/_scriptalias.erb
349
+ - modules/apache/templates/vhost/_serveralias.erb
350
+ - modules/apache/templates/vhost/_setenv.erb
351
+ - modules/apache/templates/vhost/_ssl.erb
352
+ - modules/apache/templates/vhost/_suphp.erb
353
+ - modules/apache/templates/vhost/_wsgi.erb
354
+ - modules/apache/templates/vhost.conf.erb
355
+ - modules/apache/tests/apache.pp
356
+ - modules/apache/tests/dev.pp
357
+ - modules/apache/tests/init.pp
358
+ - modules/apache/tests/mod_load_params.pp
359
+ - modules/apache/tests/mods.pp
360
+ - modules/apache/tests/mods_custom.pp
361
+ - modules/apache/tests/php.pp
362
+ - modules/apache/tests/vhost.pp
363
+ - modules/apache/tests/vhost_directories.pp
364
+ - modules/apache/tests/vhost_ip_based.pp
365
+ - modules/apache/tests/vhost_ssl.pp
366
+ - modules/apache/tests/vhosts_without_listen.pp
155
367
  - modules/apt/CHANGELOG
156
368
  - modules/apt/Gemfile
157
369
  - modules/apt/Gemfile.lock
@@ -274,6 +486,7 @@ files:
274
486
  - modules/firewall/spec/unit/puppet/type/firewallchain_spec.rb
275
487
  - modules/firewall/spec/unit/puppet/util/firewall_spec.rb
276
488
  - modules/firewall/spec/unit/puppet/util/ipcidr_spec.rb
489
+ - modules/freighthop/manifests/database/mysql/grant.pp
277
490
  - modules/freighthop/manifests/database/mysql.pp
278
491
  - modules/freighthop/manifests/database/postgres.pp
279
492
  - modules/freighthop/manifests/database.pp
@@ -283,7 +496,11 @@ files:
283
496
  - modules/freighthop/manifests/language.pp
284
497
  - modules/freighthop/manifests/packages.pp
285
498
  - modules/freighthop/manifests/params.pp
499
+ - modules/freighthop/manifests/web/apache.pp
500
+ - modules/freighthop/manifests/web/nginx.pp
501
+ - modules/freighthop/manifests/web/ssl.pp
286
502
  - modules/freighthop/manifests/web.pp
503
+ - modules/freighthop/templates/apache/passenger.conf.erb
287
504
  - modules/freighthop/templates/nginx/vagrant-rails.conf.erb
288
505
  - modules/freighthop/templates/profile/leiningen.sh.erb
289
506
  - modules/mysql/CHANGELOG
@@ -530,30 +747,61 @@ files:
530
747
  - modules/postgresql/spec/unit/puppet/type/postgresql_psql_spec.rb
531
748
  - modules/postgresql/spec/unit/type/postgresql_conf_spec.rb
532
749
  - modules/postgresql/templates/pg_hba_rule.conf
533
- - modules/rbenv/CHANGELOG
750
+ - modules/rbenv/AUTHORS
751
+ - modules/rbenv/bin/autospec
752
+ - modules/rbenv/bin/facter
753
+ - modules/rbenv/bin/filebucket
754
+ - modules/rbenv/bin/hiera
755
+ - modules/rbenv/bin/htmldiff
756
+ - modules/rbenv/bin/ldiff
757
+ - modules/rbenv/bin/pi
758
+ - modules/rbenv/bin/puppet
759
+ - modules/rbenv/bin/puppet-lint
760
+ - modules/rbenv/bin/puppet-module
761
+ - modules/rbenv/bin/puppetca
762
+ - modules/rbenv/bin/puppetd
763
+ - modules/rbenv/bin/puppetdoc
764
+ - modules/rbenv/bin/puppetmasterd
765
+ - modules/rbenv/bin/puppetqd
766
+ - modules/rbenv/bin/puppetrun
767
+ - modules/rbenv/bin/rake
768
+ - modules/rbenv/bin/ralsh
769
+ - modules/rbenv/bin/rspec
770
+ - modules/rbenv/bin/rspec-puppet-init
771
+ - modules/rbenv/CHANGELOG.md
534
772
  - modules/rbenv/Gemfile
535
773
  - modules/rbenv/Gemfile.lock
536
- - modules/rbenv/LICENSE
537
- - modules/rbenv/manifests/alias.pp
538
- - modules/rbenv/manifests/global.pp
539
- - modules/rbenv/manifests/init.pp
540
- - modules/rbenv/manifests/params.pp
541
- - modules/rbenv/manifests/rehash.pp
542
- - modules/rbenv/manifests/version.pp
774
+ - modules/rbenv/lib/puppet/provider/rbenvgem/default.rb
775
+ - modules/rbenv/lib/puppet/type/rbenvgem.rb
776
+ - modules/rbenv/manifests/bundle.pp
777
+ - modules/rbenv/manifests/client.pp
778
+ - modules/rbenv/manifests/compile.pp
779
+ - modules/rbenv/manifests/definition.pp
780
+ - modules/rbenv/manifests/dependencies/centos.pp
781
+ - modules/rbenv/manifests/dependencies/suse.pp
782
+ - modules/rbenv/manifests/dependencies/ubuntu.pp
783
+ - modules/rbenv/manifests/dependencies.pp
784
+ - modules/rbenv/manifests/gem.pp
785
+ - modules/rbenv/manifests/install.pp
786
+ - modules/rbenv/manifests/plugin/rbenvvars.pp
787
+ - modules/rbenv/manifests/plugin/rubybuild.pp
788
+ - modules/rbenv/manifests/plugin.pp
543
789
  - modules/rbenv/metadata.json
544
790
  - modules/rbenv/Modulefile
545
791
  - modules/rbenv/Rakefile
546
792
  - modules/rbenv/README.md
547
- - modules/rbenv/spec/classes/rbenv__global_spec.rb
548
- - modules/rbenv/spec/classes/rbenv_spec.rb
549
- - modules/rbenv/spec/defines/rbenv__alias_spec.rb
550
- - modules/rbenv/spec/defines/rbenv__rehash_spec.rb
551
- - modules/rbenv/spec/defines/rbenv__version_spec.rb
793
+ - modules/rbenv/spec/classes/dependencies_spec.rb
794
+ - modules/rbenv/spec/defines/rbenv__compile_spec.rb
795
+ - modules/rbenv/spec/defines/rbenv__definition_spec.rb
796
+ - modules/rbenv/spec/defines/rbenv__install_spec.rb
797
+ - modules/rbenv/spec/defines/rbenv__plugin__rbenvvars_spec.rb
798
+ - modules/rbenv/spec/defines/rbenv__plugin__rubybuild_spec.rb
799
+ - modules/rbenv/spec/defines/rbenv__plugin_spec.rb
800
+ - modules/rbenv/spec/fixtures/manifests/site.pp
552
801
  - modules/rbenv/spec/spec_helper.rb
553
- - modules/rbenv/spec/spec_helper_system.rb
554
- - modules/rbenv/spec/system/basic_spec.rb
555
- - modules/rbenv/templates/etc/profile.d/rbenv.sh.erb
556
- - modules/rbenv/tests/init.pp
802
+ - modules/rbenv/templates/dot.rbenvrc.erb
803
+ - modules/rbenv/templates/Gemfile.erb
804
+ - modules/rbenv/TODO
557
805
  - modules/stdlib/CHANGELOG
558
806
  - modules/stdlib/CONTRIBUTING.md
559
807
  - modules/stdlib/Gemfile
@@ -1,33 +0,0 @@
1
- 2013-07-30 Release 1.0.1
2
- - Unset Bundler's env vars when querying version.
3
-
4
- 2013-07-04 Release 1.0.0
5
- - Remove some hackery on rbenv::version exec{}.
6
- - Default bundler_version to `>= 0`.
7
- - Ensure that bundler meets minimum version (won't handle downgrades).
8
- - Apply GDS module standards.
9
- - Clarify support for Ubuntu/Debian only.
10
- - Change how params are passed between `rbenv` and `rbenv::global`.
11
- - Replace `require` params with simpler chains.
12
- - First release on Forge.
13
-
14
- 2013-06-17 Release 0.0.5
15
- - Set `RBENV_ROOT` when calling `bundle install`.
16
- - Support for specifying a given version of bundler.
17
- - Variabilise filesystem paths.
18
- - Extend test coverage.
19
- - Specify path for `rbenv(1)` binary.
20
- - Always manage a default for `rbenv::global`.
21
- - This should have really been a major release, sorry.
22
-
23
- 2013-05-23 Release 0.0.4
24
- - Set `RBENV_ROOT` when calling `rbenv rehash`.
25
-
26
- 2013-05-20 Release 0.0.3
27
- - Remove `$RBENV_ROOT/bin` from `$PATH` - deemed unnecessary.
28
-
29
- 2013-05-17 Release 0.0.2
30
- - Add `$RBENV_ROOT/bin` to `$PATH`.
31
-
32
- 2013-05-15 Release 0.0.1
33
- - Initial release
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
- Copyright (c) 2013 Government Digital Service
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
20
- OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,32 +0,0 @@
1
- # == Define: rbenv::alias
2
- #
3
- # Create an alias from one version of Ruby to an installed one. Can be used
4
- # to abstract patch numbers from Ruby semvers.
5
- #
6
- # The title of the resource is used as the aliased version.
7
- #
8
- # === Parameters
9
- #
10
- # [*to_version*]
11
- # Real version to link to. Depends on a matching `Rbenv::Version[]`
12
- # resource.
13
- #
14
- # === Examples
15
- #
16
- # rbenv::version { '1.9.3-p123': }
17
- # rbenv::alias { '1.9.3':
18
- # to_version => '1.9.3-p123',
19
- # }
20
- #
21
- define rbenv::alias(
22
- $to_version
23
- ) {
24
- $version = $title
25
- $versions_path = '/usr/lib/rbenv/versions'
26
-
27
- file { "${versions_path}/${version}":
28
- ensure => link,
29
- target => $to_version,
30
- require => Rbenv::Version[$to_version],
31
- }
32
- }
@@ -1,22 +0,0 @@
1
- # == Class: rbenv::global
2
- #
3
- # Set a Ruby version as the global. This is intended to be called by the
4
- # parent `Rbenv` class. It should not be called directly.
5
- #
6
- # === Parameters:
7
- #
8
- class rbenv::global {
9
- include rbenv::params
10
-
11
- $version = $::rbenv::global_version
12
-
13
- $require_real = $version ? {
14
- 'system' => undef,
15
- default => Rbenv::Version[$version],
16
- }
17
- file { $rbenv::params::global_version:
18
- ensure => present,
19
- content => "${version}\n",
20
- require => $require_real,
21
- }
22
- }
@@ -1,30 +0,0 @@
1
- # == Class: rbenv
2
- #
3
- # Install rbenv from a system package and create an `/etc/profile.d` to do
4
- # the following for all new shell sessions:
5
- #
6
- # - Set `RBENT_ROOT` to a common system path.
7
- # - Run `rvenv init`.
8
- #
9
- # === Parameters:
10
- #
11
- # [*global_version*]
12
- # Version to use. A matching `Rbenv::Version[]` resource must exist,
13
- # unless `system` is specified.
14
- # Default: system
15
- #
16
- class rbenv(
17
- $global_version = 'system'
18
- ) {
19
- include rbenv::params
20
-
21
- package { 'rbenv':
22
- ensure => present,
23
- } ->
24
- file { '/etc/profile.d/rbenv.sh':
25
- ensure => present,
26
- mode => '0755',
27
- content => template('rbenv/etc/profile.d/rbenv.sh.erb'),
28
- } ->
29
- class { 'rbenv::global': }
30
- }
@@ -1,16 +0,0 @@
1
- # == Class: rbenv::params
2
- #
3
- # Common variables referred to by other sub-classes.
4
- #
5
- class rbenv::params {
6
- case $::osfamily {
7
- 'Debian': {
8
- $rbenv_root = '/usr/lib/rbenv'
9
- $rbenv_binary = '/usr/bin/rbenv'
10
- $global_version = "${rbenv_root}/version"
11
- }
12
- default: {
13
- fail("${::operatingsystem} not supported")
14
- }
15
- }
16
- }
@@ -1,28 +0,0 @@
1
- # == Define: rbenv::rehash
2
- #
3
- # Run `rbenv rehash` for a specific version of Ruby. Typically refreshed by
4
- # `Rbenv::Version[]` after installation.
5
- #
6
- # The title of the resource is used as the version.
7
- #
8
- # NB: Exec[] resources do not assume that rbenv has been initialised from
9
- # `profile.d` because Puppet may be running from a non-login and
10
- # non-interactive shell (e.g. cron). They explicitly pass `RBENV_ROOT` and
11
- # reference `rbenv exec` (rather than the shim) for this reason.
12
- #
13
- # TODO: Does this need to be version specific?
14
- #
15
- define rbenv::rehash() {
16
- include rbenv::params
17
-
18
- $version = $title
19
-
20
- exec { "rbenv rehash for ${version}":
21
- command => "${rbenv::params::rbenv_binary} rehash",
22
- environment => [
23
- "RBENV_ROOT=${rbenv::params::rbenv_root}",
24
- "RBENV_VERSION=${version}",
25
- ],
26
- refreshonly => true,
27
- }
28
- }
@@ -1,63 +0,0 @@
1
- # == Class: rbenv::version
2
- #
3
- # Install a version of Ruby under rbenv from a system package. Bundler will
4
- # be installed therein.
5
- #
6
- # The title of the resource is used as the version.
7
- #
8
- # NB: Exec[] resources do not assume that rbenv has been initialised from
9
- # `profile.d` because Puppet may be running from a non-login and
10
- # non-interactive shell (e.g. cron). They explicitly pass `RBENV_ROOT` and
11
- # reference `rbenv exec` (rather than the shim) for this reason.
12
- #
13
- # === Parameters
14
- # [*bundler_version*]
15
- # Optional parameter to specify the version of Bundler to be installed for
16
- # the given version of Ruby. Accepts pessimistic versioning (~> x.y).
17
- #
18
- # NB: It will NOT attempt to remove any currently installed versions of
19
- # Bundler. This means that upgrades will work as expected, but downgrades
20
- # will not. The greatest installed version always takes precendence.
21
- #
22
- # Default: >= 0
23
- #
24
- # === Examples
25
- #
26
- # rbenv { ['1.8.7-p1', '1.9.3-p2']: }
27
- #
28
- # rbenv { '1.9.3-p327':
29
- # bundler_version => '1.1.4',
30
- # }
31
- #
32
- define rbenv::version (
33
- $bundler_version = '>= 0'
34
- ) {
35
- include rbenv::params
36
-
37
- $version = $title
38
- $package_name = "rbenv-ruby-${version}"
39
-
40
- package { $package_name:
41
- notify => Exec["install bundler for ${version}"],
42
- require => Class['rbenv'],
43
- }
44
-
45
- $env_vars = [
46
- "RBENV_ROOT=${rbenv::params::rbenv_root}",
47
- "RBENV_VERSION=${version}",
48
- ]
49
-
50
- $unset_vars = '/usr/bin/env -uRUBYOPT -uBUNDLE_GEMFILE -uGEM_HOME -uGEM_PATH'
51
- $cmd_gem = "${unset_vars} ${rbenv::params::rbenv_binary} exec gem"
52
- $cmd_install = "${cmd_gem} install bundler -v '${bundler_version}'"
53
- $cmd_unless = "${cmd_gem} query -i -n bundler -v '${bundler_version}'"
54
-
55
- exec { "install bundler for ${version}":
56
- command => $cmd_install,
57
- unless => $cmd_unless,
58
- environment => $env_vars,
59
- notify => Rbenv::Rehash[$version],
60
- }
61
-
62
- rbenv::rehash { $version: }
63
- }
@@ -1,31 +0,0 @@
1
- require 'spec_helper'
2
-
3
- # Focus on rbenv::global proxy of rbenv
4
- describe 'rbenv' do
5
- let(:facts) {{
6
- :osfamily => 'Debian',
7
- }}
8
- let(:file_path) { '/usr/lib/rbenv/version' }
9
-
10
- context 'when version is default, system' do
11
- it {
12
- should contain_file(file_path).with(
13
- :content => "system\n",
14
- :require => nil
15
- )
16
- }
17
- end
18
-
19
- context 'when version is 1.2.3' do
20
- let(:params) {{
21
- :global_version => '1.2.3',
22
- }}
23
-
24
- it {
25
- should contain_file(file_path).with(
26
- :content => "1.2.3\n",
27
- :require => 'Rbenv::Version[1.2.3]'
28
- )
29
- }
30
- end
31
- end