bebox 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (402) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +78 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +163 -0
  5. data/LICENSE +21 -0
  6. data/README.md +372 -0
  7. data/Rakefile +8 -0
  8. data/bebox.gemspec +40 -0
  9. data/bin/bebox +5 -0
  10. data/lib/bebox/cli.rb +42 -0
  11. data/lib/bebox/commands/commands_helper.rb +33 -0
  12. data/lib/bebox/commands/environment_commands.rb +46 -0
  13. data/lib/bebox/commands/general_commands.rb +24 -0
  14. data/lib/bebox/commands/node_commands.rb +68 -0
  15. data/lib/bebox/commands/prepare_commands.rb +59 -0
  16. data/lib/bebox/commands/project_commands.rb +44 -0
  17. data/lib/bebox/commands/provision_commands.rb +145 -0
  18. data/lib/bebox/environment.rb +114 -0
  19. data/lib/bebox/logger.rb +51 -0
  20. data/lib/bebox/node.rb +308 -0
  21. data/lib/bebox/profile.rb +102 -0
  22. data/lib/bebox/project.rb +259 -0
  23. data/lib/bebox/provision.rb +257 -0
  24. data/lib/bebox/role.rb +103 -0
  25. data/lib/bebox/version.rb +3 -0
  26. data/lib/bebox/wizards/environment_wizard.rb +45 -0
  27. data/lib/bebox/wizards/node_wizard.rb +163 -0
  28. data/lib/bebox/wizards/profile_wizard.rb +91 -0
  29. data/lib/bebox/wizards/project_wizard.rb +175 -0
  30. data/lib/bebox/wizards/provision_wizard.rb +80 -0
  31. data/lib/bebox/wizards/role_wizard.rb +97 -0
  32. data/lib/bebox.rb +2 -0
  33. data/lib/deb/puppet_3.6.0/augeas-lenses_0.10.0-0ubuntu4_all.deb +0 -0
  34. data/lib/deb/puppet_3.6.0/debconf-utils_1.5.42ubuntu1_all.deb +0 -0
  35. data/lib/deb/puppet_3.6.0/facter_2.0.1-1puppetlabs1_amd64.deb +0 -0
  36. data/lib/deb/puppet_3.6.0/hiera_1.3.2-1puppetlabs1_all.deb +0 -0
  37. data/lib/deb/puppet_3.6.0/libaugeas-ruby1.8_0.3.0-1.1ubuntu4_amd64.deb +0 -0
  38. data/lib/deb/puppet_3.6.0/libaugeas-ruby_0.3.0-1.1ubuntu4_all.deb +0 -0
  39. data/lib/deb/puppet_3.6.0/libaugeas0_0.10.0-0ubuntu4_amd64.deb +0 -0
  40. data/lib/deb/puppet_3.6.0/libjson-ruby_1.6.3-1_all.deb +0 -0
  41. data/lib/deb/puppet_3.6.0/libruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb +0 -0
  42. data/lib/deb/puppet_3.6.0/libruby_4.8_all.deb +0 -0
  43. data/lib/deb/puppet_3.6.0/libshadow-ruby1.8_1.4.1-8build1_amd64.deb +0 -0
  44. data/lib/deb/puppet_3.6.0/puppet-common_3.6.0-1puppetlabs1_all.deb +0 -0
  45. data/lib/deb/puppet_3.6.0/puppet_3.6.0-1puppetlabs1_all.deb +0 -0
  46. data/lib/deb/puppet_3.6.0/ruby-json_1.6.3-1_amd64.deb +0 -0
  47. data/lib/deb/puppet_3.6.0/ruby-rgen_0.6.5-1puppetlabs1_all.deb +0 -0
  48. data/lib/deb/puppet_3.6.0/ruby1.8_1.8.7.352-2ubuntu1.4_amd64.deb +0 -0
  49. data/lib/deb/puppet_3.6.0/ruby_4.8_all.deb +0 -0
  50. data/lib/deb/puppet_3.6.0/virt-what_1.11-1_amd64.deb +0 -0
  51. data/lib/templates/node/Vagrantfile.erb +18 -0
  52. data/lib/templates/node/deploy_vagrant_node.erb +3 -0
  53. data/lib/templates/node/node.yml.erb +3 -0
  54. data/lib/templates/node/prepared_node.yml.erb +4 -0
  55. data/lib/templates/node/provisioned_node.yml.erb +4 -0
  56. data/lib/templates/project/Capfile.erb +2 -0
  57. data/lib/templates/project/Gemfile.erb +5 -0
  58. data/lib/templates/project/config/deploy/environment.erb +40 -0
  59. data/lib/templates/project/config/deploy/vagrant.erb +42 -0
  60. data/lib/templates/project/config/deploy.erb +120 -0
  61. data/lib/templates/project/dot_bebox.erb +4 -0
  62. data/lib/templates/project/gitignore.erb +7 -0
  63. data/lib/templates/project/ubuntu_dependencies +10 -0
  64. data/lib/templates/puppet/default_profiles/base/fundamental/ruby/Puppetfile +0 -0
  65. data/lib/templates/puppet/default_profiles/base/fundamental/ruby/manifests/init.pp +24 -0
  66. data/lib/templates/puppet/default_profiles/base/fundamental/sudo/Puppetfile +0 -0
  67. data/lib/templates/puppet/default_profiles/base/fundamental/sudo/manifests/init.pp +22 -0
  68. data/lib/templates/puppet/default_profiles/base/fundamental/users/Puppetfile +0 -0
  69. data/lib/templates/puppet/default_profiles/base/fundamental/users/manifests/init.pp +18 -0
  70. data/lib/templates/puppet/default_profiles/base/security/fail2ban/Puppetfile +2 -0
  71. data/lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp +28 -0
  72. data/lib/templates/puppet/default_profiles/base/security/iptables/Puppetfile +2 -0
  73. data/lib/templates/puppet/default_profiles/base/security/iptables/manifests/init.pp +27 -0
  74. data/lib/templates/puppet/default_profiles/base/security/ssh/Puppetfile +2 -0
  75. data/lib/templates/puppet/default_profiles/base/security/ssh/manifests/init.pp +30 -0
  76. data/lib/templates/puppet/default_profiles/base/security/sysctl/Puppetfile +2 -0
  77. data/lib/templates/puppet/default_profiles/base/security/sysctl/manifests/init.pp +20 -0
  78. data/lib/templates/puppet/default_profiles/base/users/ssh/Puppetfile +2 -0
  79. data/lib/templates/puppet/default_profiles/base/users/ssh/manifests/init.pp +47 -0
  80. data/lib/templates/puppet/default_profiles/base/users/users/Puppetfile +0 -0
  81. data/lib/templates/puppet/default_profiles/base/users/users/manifests/init.pp +18 -0
  82. data/lib/templates/puppet/default_roles/fundamental/manifests/init.pp +16 -0
  83. data/lib/templates/puppet/default_roles/security/manifests/init.pp +17 -0
  84. data/lib/templates/puppet/default_roles/users/manifests/init.pp +15 -0
  85. data/lib/templates/puppet/profiles/Puppetfile.erb +24 -0
  86. data/lib/templates/puppet/profiles/manifests/init.pp.erb +17 -0
  87. data/lib/templates/puppet/roles/manifests/init.pp.erb +14 -0
  88. data/lib/templates/puppet/step-0/Puppetfile.erb +5 -0
  89. data/lib/templates/puppet/step-0/hiera/data/common.yaml.erb +26 -0
  90. data/lib/templates/puppet/step-0/hiera/data/environment.yaml.erb +26 -0
  91. data/lib/templates/puppet/step-0/hiera/data/node.yaml.erb +26 -0
  92. data/lib/templates/puppet/step-0/hiera/hiera.yaml.erb +11 -0
  93. data/lib/templates/puppet/step-0/manifests/node.erb +5 -0
  94. data/lib/templates/puppet/step-0/manifests/site.pp.erb +15 -0
  95. data/lib/templates/puppet/step-0/modules/rbenv/AUTHORS +11 -0
  96. data/lib/templates/puppet/step-0/modules/rbenv/CHANGELOG.md +70 -0
  97. data/lib/templates/puppet/step-0/modules/rbenv/Gemfile +8 -0
  98. data/lib/templates/puppet/step-0/modules/rbenv/Gemfile.lock +28 -0
  99. data/lib/templates/puppet/step-0/modules/rbenv/Modulefile +7 -0
  100. data/lib/templates/puppet/step-0/modules/rbenv/README.md +173 -0
  101. data/lib/templates/puppet/step-0/modules/rbenv/Rakefile +22 -0
  102. data/lib/templates/puppet/step-0/modules/rbenv/TODO +10 -0
  103. data/lib/templates/puppet/step-0/modules/rbenv/bin/autospec +16 -0
  104. data/lib/templates/puppet/step-0/modules/rbenv/bin/facter +16 -0
  105. data/lib/templates/puppet/step-0/modules/rbenv/bin/filebucket +16 -0
  106. data/lib/templates/puppet/step-0/modules/rbenv/bin/hiera +16 -0
  107. data/lib/templates/puppet/step-0/modules/rbenv/bin/htmldiff +16 -0
  108. data/lib/templates/puppet/step-0/modules/rbenv/bin/ldiff +16 -0
  109. data/lib/templates/puppet/step-0/modules/rbenv/bin/pi +16 -0
  110. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet +16 -0
  111. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet-lint +16 -0
  112. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppet-module +16 -0
  113. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetca +16 -0
  114. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetd +16 -0
  115. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetdoc +16 -0
  116. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetmasterd +16 -0
  117. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetqd +16 -0
  118. data/lib/templates/puppet/step-0/modules/rbenv/bin/puppetrun +16 -0
  119. data/lib/templates/puppet/step-0/modules/rbenv/bin/rake +16 -0
  120. data/lib/templates/puppet/step-0/modules/rbenv/bin/ralsh +16 -0
  121. data/lib/templates/puppet/step-0/modules/rbenv/bin/rspec +16 -0
  122. data/lib/templates/puppet/step-0/modules/rbenv/bin/rspec-puppet-init +16 -0
  123. data/lib/templates/puppet/step-0/modules/rbenv/lib/puppet/provider/rbenvgem/default.rb +50 -0
  124. data/lib/templates/puppet/step-0/modules/rbenv/lib/puppet/type/rbenvgem.rb +62 -0
  125. data/lib/templates/puppet/step-0/modules/rbenv/manifests/bundle.pp +36 -0
  126. data/lib/templates/puppet/step-0/modules/rbenv/manifests/client.pp +48 -0
  127. data/lib/templates/puppet/step-0/modules/rbenv/manifests/compile.pp +102 -0
  128. data/lib/templates/puppet/step-0/modules/rbenv/manifests/definition.pp +31 -0
  129. data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/centos.pp +25 -0
  130. data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/suse.pp +28 -0
  131. data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies/ubuntu.pp +17 -0
  132. data/lib/templates/puppet/step-0/modules/rbenv/manifests/dependencies.pp +8 -0
  133. data/lib/templates/puppet/step-0/modules/rbenv/manifests/gem.pp +29 -0
  134. data/lib/templates/puppet/step-0/modules/rbenv/manifests/install.pp +55 -0
  135. data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin/rbenvvars.pp +16 -0
  136. data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin/rubybuild.pp +16 -0
  137. data/lib/templates/puppet/step-0/modules/rbenv/manifests/plugin.pp +40 -0
  138. data/lib/templates/puppet/step-0/modules/rbenv/metadata.json +109 -0
  139. data/lib/templates/puppet/step-0/modules/rbenv/templates/Gemfile.erb +5 -0
  140. data/lib/templates/puppet/step-0/modules/rbenv/templates/dot.rbenvrc.erb +8 -0
  141. data/lib/templates/puppet/step-0/modules/stdlib/CHANGELOG.md +418 -0
  142. data/lib/templates/puppet/step-0/modules/stdlib/CONTRIBUTING.md +65 -0
  143. data/lib/templates/puppet/step-0/modules/stdlib/Gemfile +33 -0
  144. data/lib/templates/puppet/step-0/modules/stdlib/Gemfile.lock +166 -0
  145. data/lib/templates/puppet/step-0/modules/stdlib/LICENSE +19 -0
  146. data/lib/templates/puppet/step-0/modules/stdlib/Modulefile +11 -0
  147. data/lib/templates/puppet/step-0/modules/stdlib/README.markdown +1304 -0
  148. data/lib/templates/puppet/step-0/modules/stdlib/README_DEVELOPER.markdown +35 -0
  149. data/lib/templates/puppet/step-0/modules/stdlib/README_SPECS.markdown +7 -0
  150. data/lib/templates/puppet/step-0/modules/stdlib/RELEASE_PROCESS.markdown +24 -0
  151. data/lib/templates/puppet/step-0/modules/stdlib/Rakefile +18 -0
  152. data/lib/templates/puppet/step-0/modules/stdlib/checksums.json +349 -0
  153. data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/facter_dot_d.rb +202 -0
  154. data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/pe_version.rb +53 -0
  155. data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/puppet_vardir.rb +26 -0
  156. data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/root_home.rb +32 -0
  157. data/lib/templates/puppet/step-0/modules/stdlib/lib/facter/util/puppet_settings.rb +21 -0
  158. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/abs.rb +36 -0
  159. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/any2array.rb +33 -0
  160. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/base64.rb +37 -0
  161. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/bool2num.rb +49 -0
  162. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/capitalize.rb +34 -0
  163. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/chomp.rb +35 -0
  164. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/chop.rb +37 -0
  165. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/concat.rb +41 -0
  166. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/count.rb +22 -0
  167. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/deep_merge.rb +44 -0
  168. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/defined_with_params.rb +35 -0
  169. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete.rb +46 -0
  170. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_at.rb +49 -0
  171. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_undef_values.rb +34 -0
  172. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/delete_values.rb +26 -0
  173. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/difference.rb +36 -0
  174. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/dirname.rb +15 -0
  175. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/downcase.rb +33 -0
  176. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/empty.rb +28 -0
  177. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/ensure_packages.rb +35 -0
  178. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb +45 -0
  179. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/flatten.rb +33 -0
  180. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/floor.rb +25 -0
  181. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/fqdn_rotate.rb +46 -0
  182. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/get_module_path.rb +17 -0
  183. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/getparam.rb +35 -0
  184. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/getvar.rb +26 -0
  185. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/grep.rb +33 -0
  186. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_interface_with.rb +52 -0
  187. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_ip_address.rb +25 -0
  188. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_ip_network.rb +25 -0
  189. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/has_key.rb +28 -0
  190. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/hash.rb +41 -0
  191. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/intersection.rb +34 -0
  192. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_array.rb +22 -0
  193. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_bool.rb +22 -0
  194. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_domain_name.rb +50 -0
  195. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_float.rb +30 -0
  196. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_function_available.rb +26 -0
  197. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_hash.rb +22 -0
  198. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_integer.rb +45 -0
  199. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_ip_address.rb +32 -0
  200. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_mac_address.rb +27 -0
  201. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_numeric.rb +75 -0
  202. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/is_string.rb +26 -0
  203. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/join.rb +41 -0
  204. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/join_keys_to_values.rb +47 -0
  205. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/keys.rb +26 -0
  206. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/loadyaml.rb +20 -0
  207. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/lstrip.rb +33 -0
  208. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/max.rb +21 -0
  209. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/member.rb +44 -0
  210. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/merge.rb +34 -0
  211. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/min.rb +21 -0
  212. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/num2bool.rb +43 -0
  213. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/parsejson.rb +24 -0
  214. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/parseyaml.rb +24 -0
  215. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/pick.rb +29 -0
  216. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/pick_default.rb +35 -0
  217. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/prefix.rb +45 -0
  218. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/range.rb +88 -0
  219. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/reject.rb +31 -0
  220. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/reverse.rb +28 -0
  221. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/rstrip.rb +32 -0
  222. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/shuffle.rb +46 -0
  223. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/size.rb +48 -0
  224. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/sort.rb +27 -0
  225. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/squeeze.rb +36 -0
  226. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/str2bool.rb +46 -0
  227. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/str2saltedsha512.rb +32 -0
  228. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/strftime.rb +107 -0
  229. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/strip.rb +39 -0
  230. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/suffix.rb +45 -0
  231. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/swapcase.rb +39 -0
  232. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/time.rb +49 -0
  233. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb +28 -0
  234. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/type.rb +50 -0
  235. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/union.rb +34 -0
  236. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/unique.rb +51 -0
  237. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/upcase.rb +41 -0
  238. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/uriescape.rb +35 -0
  239. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_absolute_path.rb +56 -0
  240. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_array.rb +33 -0
  241. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_augeas.rb +81 -0
  242. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_bool.rb +34 -0
  243. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_cmd.rb +48 -0
  244. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_hash.rb +33 -0
  245. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb +48 -0
  246. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_ipv6_address.rb +49 -0
  247. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_re.rb +40 -0
  248. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_slength.rb +71 -0
  249. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/validate_string.rb +33 -0
  250. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/values.rb +39 -0
  251. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/values_at.rb +98 -0
  252. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/parser/functions/zip.rb +65 -0
  253. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/provider/file_line/ruby.rb +83 -0
  254. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/type/anchor.rb +46 -0
  255. data/lib/templates/puppet/step-0/modules/stdlib/lib/puppet/type/file_line.rb +79 -0
  256. data/lib/templates/puppet/step-0/modules/stdlib/manifests/init.pp +20 -0
  257. data/lib/templates/puppet/step-0/modules/stdlib/manifests/stages.pp +43 -0
  258. data/lib/templates/puppet/step-0/modules/stdlib/metadata.json +111 -0
  259. data/lib/templates/puppet/step-0/modules/sudo/.fixtures.yml +5 -0
  260. data/lib/templates/puppet/step-0/modules/sudo/.gemfile +14 -0
  261. data/lib/templates/puppet/step-0/modules/sudo/.gemfile.lock +43 -0
  262. data/lib/templates/puppet/step-0/modules/sudo/.travis.yml +34 -0
  263. data/lib/templates/puppet/step-0/modules/sudo/LICENSE +13 -0
  264. data/lib/templates/puppet/step-0/modules/sudo/Modulefile +9 -0
  265. data/lib/templates/puppet/step-0/modules/sudo/README.md +171 -0
  266. data/lib/templates/puppet/step-0/modules/sudo/Rakefile +1 -0
  267. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.aix +90 -0
  268. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.archlinux +90 -0
  269. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.deb +90 -0
  270. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.freebsd +98 -0
  271. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.omnios +90 -0
  272. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.rhel5 +97 -0
  273. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.rhel6 +115 -0
  274. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.solaris +90 -0
  275. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.suse +81 -0
  276. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.ubuntu +30 -0
  277. data/lib/templates/puppet/step-0/modules/sudo/files/sudoers.wheezy +17 -0
  278. data/lib/templates/puppet/step-0/modules/sudo/lib/augeas/lenses/fixedsudoers.aug +520 -0
  279. data/lib/templates/puppet/step-0/modules/sudo/manifests/allow.pp +76 -0
  280. data/lib/templates/puppet/step-0/modules/sudo/manifests/conf.pp +105 -0
  281. data/lib/templates/puppet/step-0/modules/sudo/manifests/configs.pp +24 -0
  282. data/lib/templates/puppet/step-0/modules/sudo/manifests/init.pp +151 -0
  283. data/lib/templates/puppet/step-0/modules/sudo/manifests/package/aix.pp +46 -0
  284. data/lib/templates/puppet/step-0/modules/sudo/manifests/package/solaris.pp +60 -0
  285. data/lib/templates/puppet/step-0/modules/sudo/manifests/package.pp +61 -0
  286. data/lib/templates/puppet/step-0/modules/sudo/manifests/params.pp +127 -0
  287. data/lib/templates/puppet/step-0/modules/sudo/metadata.json +59 -0
  288. data/lib/templates/puppet/step-0/modules/sudo/templates/users_groups.erb +9 -0
  289. data/lib/templates/puppet/step-0/modules/users/manifests/init.pp +15 -0
  290. data/lib/templates/puppet/step-0/modules/users/manifests/user.pp +50 -0
  291. data/lib/templates/puppet/step-1/Puppetfile.erb +5 -0
  292. data/lib/templates/puppet/step-1/hiera/data/common.yaml.erb +11 -0
  293. data/lib/templates/puppet/step-1/hiera/data/environment.yaml.erb +11 -0
  294. data/lib/templates/puppet/step-1/hiera/data/node.yaml.erb +11 -0
  295. data/lib/templates/puppet/step-1/hiera/hiera.yaml.erb +11 -0
  296. data/lib/templates/puppet/step-1/manifests/node.erb +5 -0
  297. data/lib/templates/puppet/step-1/manifests/site.pp.erb +15 -0
  298. data/lib/templates/puppet/step-1/modules/users/manifests/init.pp +15 -0
  299. data/lib/templates/puppet/step-1/modules/users/manifests/user.pp +49 -0
  300. data/lib/templates/puppet/step-2/Puppetfile.erb +5 -0
  301. data/lib/templates/puppet/step-2/hiera/data/common.yaml.erb +1 -0
  302. data/lib/templates/puppet/step-2/hiera/data/environment.yaml.erb +1 -0
  303. data/lib/templates/puppet/step-2/hiera/data/node.yaml.erb +1 -0
  304. data/lib/templates/puppet/step-2/hiera/hiera.yaml.erb +11 -0
  305. data/lib/templates/puppet/step-2/manifests/node.erb +3 -0
  306. data/lib/templates/puppet/step-2/manifests/site.pp.erb +10 -0
  307. data/lib/templates/puppet/step-3/Puppetfile.erb +5 -0
  308. data/lib/templates/puppet/step-3/hiera/data/common.yaml.erb +99 -0
  309. data/lib/templates/puppet/step-3/hiera/data/environment.yaml.erb +99 -0
  310. data/lib/templates/puppet/step-3/hiera/data/node.yaml.erb +99 -0
  311. data/lib/templates/puppet/step-3/hiera/hiera.yaml.erb +11 -0
  312. data/lib/templates/puppet/step-3/manifests/node.erb +5 -0
  313. data/lib/templates/puppet/step-3/manifests/site.pp.erb +15 -0
  314. data/spec/environment_spec.rb +82 -0
  315. data/spec/factories/environment.rb +20 -0
  316. data/spec/factories/node.rb +22 -0
  317. data/spec/factories/profile.rb +10 -0
  318. data/spec/factories/project.rb +17 -0
  319. data/spec/factories/provision.rb +13 -0
  320. data/spec/factories/role.rb +9 -0
  321. data/spec/fixtures/Capfile.test +2 -0
  322. data/spec/fixtures/Gemfile.test +5 -0
  323. data/spec/fixtures/config/deploy/environment.test +35 -0
  324. data/spec/fixtures/config/deploy/production.test +35 -0
  325. data/spec/fixtures/config/deploy/staging.test +35 -0
  326. data/spec/fixtures/config/deploy/vagrant.test +37 -0
  327. data/spec/fixtures/config/deploy.test +120 -0
  328. data/spec/fixtures/dot_bebox.test.erb +4 -0
  329. data/spec/fixtures/dot_gitignore.test +8 -0
  330. data/spec/fixtures/node/Vagrantfile.test.erb +18 -0
  331. data/spec/fixtures/node/node_0.test.erb +3 -0
  332. data/spec/fixtures/node/prepared_node_0.test.erb +4 -0
  333. data/spec/fixtures/node/provisioned_node_0.test.erb +4 -0
  334. data/spec/fixtures/node/vagrant_deploy.test +38 -0
  335. data/spec/fixtures/puppet/hiera/data/node0.server1.test.yaml.test +4 -0
  336. data/spec/fixtures/puppet/profiles/test/profile_0/Puppetfile.test +24 -0
  337. data/spec/fixtures/puppet/profiles/test/profile_0/Puppetfile_with_modules.test +20 -0
  338. data/spec/fixtures/puppet/profiles/test/profile_0/manifests/init.pp.test +17 -0
  339. data/spec/fixtures/puppet/profiles/test/profile_0/manifests/init_with_content.pp.test +22 -0
  340. data/spec/fixtures/puppet/roles/manifests/init.pp.test +14 -0
  341. data/spec/fixtures/puppet/steps/step-0/hiera/data/common.yaml.test +26 -0
  342. data/spec/fixtures/puppet/steps/step-0/hiera/data/node0.server1.test.yaml.test +0 -0
  343. data/spec/fixtures/puppet/steps/step-0/hiera/data/pname_env.yaml.test +26 -0
  344. data/spec/fixtures/puppet/steps/step-0/hiera/data/production.yaml.test +0 -0
  345. data/spec/fixtures/puppet/steps/step-0/hiera/data/staging.yaml.test +0 -0
  346. data/spec/fixtures/puppet/steps/step-0/hiera/data/vagrant.yaml.test +0 -0
  347. data/spec/fixtures/puppet/steps/step-0/hiera/hiera.yaml.test +11 -0
  348. data/spec/fixtures/puppet/steps/step-0/manifests/site.pp.test +10 -0
  349. data/spec/fixtures/puppet/steps/step-0/manifests/site_with_node.pp.test +15 -0
  350. data/spec/fixtures/puppet/steps/step-1/hiera/data/common.yaml.test +11 -0
  351. data/spec/fixtures/puppet/steps/step-1/hiera/data/node0.server1.test.yaml.test +0 -0
  352. data/spec/fixtures/puppet/steps/step-1/hiera/data/pname_env.yaml.test +11 -0
  353. data/spec/fixtures/puppet/steps/step-1/hiera/data/production.yaml.test +0 -0
  354. data/spec/fixtures/puppet/steps/step-1/hiera/data/staging.yaml.test +0 -0
  355. data/spec/fixtures/puppet/steps/step-1/hiera/data/vagrant.yaml.test +0 -0
  356. data/spec/fixtures/puppet/steps/step-1/hiera/hiera.yaml.test +11 -0
  357. data/spec/fixtures/puppet/steps/step-1/manifests/site.pp.test +10 -0
  358. data/spec/fixtures/puppet/steps/step-1/manifests/site_with_node.pp.test +15 -0
  359. data/spec/fixtures/puppet/steps/step-2/Puppetfile.test +6 -0
  360. data/spec/fixtures/puppet/steps/step-2/hiera/data/common.yaml.test +1 -0
  361. data/spec/fixtures/puppet/steps/step-2/hiera/data/node0.server1.test.yaml.test +1 -0
  362. data/spec/fixtures/puppet/steps/step-2/hiera/data/pname_env.yaml.test +1 -0
  363. data/spec/fixtures/puppet/steps/step-2/hiera/data/production.yaml.test +1 -0
  364. data/spec/fixtures/puppet/steps/step-2/hiera/data/staging.yaml.test +1 -0
  365. data/spec/fixtures/puppet/steps/step-2/hiera/data/vagrant.yaml.test +1 -0
  366. data/spec/fixtures/puppet/steps/step-2/hiera/hiera.yaml.test +11 -0
  367. data/spec/fixtures/puppet/steps/step-2/manifests/site.pp.test +10 -0
  368. data/spec/fixtures/puppet/steps/step-2/manifests/site_with_node.pp.test +13 -0
  369. data/spec/fixtures/puppet/steps/step-2/manifests/site_with_node_role_association.pp.test +16 -0
  370. data/spec/fixtures/puppet/steps/step-2/modules/profiles/manifests/test/profile_0.pp.test +17 -0
  371. data/spec/fixtures/puppet/steps/step-2/modules/roles/manifests/role_0.pp.test +16 -0
  372. data/spec/fixtures/puppet/steps/step-3/hiera/data/common.yaml.test +99 -0
  373. data/spec/fixtures/puppet/steps/step-3/hiera/data/node0.server1.test.yaml.test +1 -0
  374. data/spec/fixtures/puppet/steps/step-3/hiera/data/pname_env.yaml.test +99 -0
  375. data/spec/fixtures/puppet/steps/step-3/hiera/data/production.yaml.test +1 -0
  376. data/spec/fixtures/puppet/steps/step-3/hiera/data/staging.yaml.test +1 -0
  377. data/spec/fixtures/puppet/steps/step-3/hiera/data/vagrant.yaml.test +1 -0
  378. data/spec/fixtures/puppet/steps/step-3/hiera/hiera.yaml.test +11 -0
  379. data/spec/fixtures/puppet/steps/step-3/manifests/site.pp.test +10 -0
  380. data/spec/fixtures/puppet/steps/step-3/manifests/site_with_node.pp.test +15 -0
  381. data/spec/fixtures/puppet/ubuntu_dependencies.test +10 -0
  382. data/spec/node0.server1.test/prepare_phase_spec.rb +53 -0
  383. data/spec/node0.server1.test/provision_step_0_spec.rb +46 -0
  384. data/spec/node0.server1.test/provision_step_1_spec.rb +41 -0
  385. data/spec/node0.server1.test/provision_step_2_spec.rb +79 -0
  386. data/spec/node0.server1.test/provision_step_3_spec.rb +76 -0
  387. data/spec/node_role_spec.rb +20 -0
  388. data/spec/node_spec.rb +71 -0
  389. data/spec/node_wizard_spec.rb +22 -0
  390. data/spec/ordered_phases_spec.rb +55 -0
  391. data/spec/pre_prepare_spec.rb +78 -0
  392. data/spec/pre_provision_steps_spec.rb +40 -0
  393. data/spec/profile_spec.rb +70 -0
  394. data/spec/project_spec.rb +195 -0
  395. data/spec/project_wizard_spec.rb +51 -0
  396. data/spec/puppet_spec_helper.rb +15 -0
  397. data/spec/role_profiles_spec.rb +40 -0
  398. data/spec/role_spec.rb +56 -0
  399. data/spec/spec_helper.rb +37 -0
  400. data/spec/support/config_specs.yaml.example +2 -0
  401. data/spec/vagrant_spec_helper.rb +15 -0
  402. metadata +625 -0
@@ -0,0 +1,418 @@
1
+ ##2014-06-04 - Release 4.2.2
2
+ ### Summary
3
+
4
+ This release adds PE3.3 support in the metadata and fixes a few tests.
5
+
6
+ ## 2014-05-08 - Release - 4.2.1
7
+ ### Summary
8
+ This release moves a stray symlink that can cause problems.
9
+
10
+ ## 2014-05-08 - Release - 4.2.0
11
+ ### Summary
12
+ This release adds many new functions and fixes, and continues to be backwards compatible with stdlib 3.x
13
+
14
+ #### Features
15
+ - New `base64()` function
16
+ - New `deep_merge()` function
17
+ - New `delete_undef_values()` function
18
+ - New `delete_values()` function
19
+ - New `difference()` function
20
+ - New `intersection()` function
21
+ - New `is_bool()` function
22
+ - New `pick_default()` function
23
+ - New `union()` function
24
+ - New `validate_ipv4_address` function
25
+ - New `validate_ipv6_address` function
26
+ - Update `ensure_packages()` to take an option hash as a second parameter.
27
+ - Update `range()` to take an optional third argument for range step
28
+ - Update `validate_slength()` to take an optional third argument for minimum length
29
+ - Update `file_line` resource to take `after` and `multiple` attributes
30
+
31
+ #### Bugfixes
32
+ - Correct `is_string`, `is_domain_name`, `is_array`, `is_float`, and `is_function_available` for parsing odd types such as bools and hashes.
33
+ - Allow facts.d facts to contain `=` in the value
34
+ - Fix `root_home` fact on darwin systems
35
+ - Fix `concat()` to work with a second non-array argument
36
+ - Fix `floor()` to work with integer strings
37
+ - Fix `is_integer()` to return true if passed integer strings
38
+ - Fix `is_numeric()` to return true if passed integer strings
39
+ - Fix `merge()` to work with empty strings
40
+ - Fix `pick()` to raise the correct error type
41
+ - Fix `uriescape()` to use the default URI.escape list
42
+ - Add/update unit & acceptance tests.
43
+
44
+
45
+ ##2014-03-04 - Supported Release - 3.2.1
46
+ ###Summary
47
+ This is a supported release
48
+
49
+ ####Bugfixes
50
+ - Fixed `is_integer`/`is_float`/`is_numeric` for checking the value of arithmatic expressions.
51
+
52
+ ####Known bugs
53
+ * No known bugs
54
+
55
+ ---
56
+
57
+ ##### 2013-05-06 - Jeff McCune <jeff@puppetlabs.com> - 4.1.0
58
+
59
+ * (#20582) Restore facter\_dot\_d to stdlib for PE users (3b887c8)
60
+ * (maint) Update Gemfile with GEM\_FACTER\_VERSION (f44d535)
61
+
62
+ ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> - 4.1.0
63
+
64
+ * Terser method of string to array conversion courtesy of ethooz. (d38bce0)
65
+
66
+ ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> 4.1.0
67
+
68
+ * Refactor ensure\_resource expectations (b33cc24)
69
+
70
+ ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> 4.1.0
71
+
72
+ * Changed str-to-array conversion and removed abbreviation. (de253db)
73
+
74
+ ##### 2013-05-03 - Alex Cline <acline@us.ibm.com> 4.1.0
75
+
76
+ * (#20548) Allow an array of resource titles to be passed into the ensure\_resource function (e08734a)
77
+
78
+ ##### 2013-05-02 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.1.0
79
+
80
+ * Add a dirname function (2ba9e47)
81
+
82
+ ##### 2013-04-29 - Mark Smith-Guerrero <msmithgu@gmail.com> - 4.1.0
83
+
84
+ * (maint) Fix a small typo in hash() description (928036a)
85
+
86
+ ##### 2013-04-12 - Jeff McCune <jeff@puppetlabs.com> - 4.0.2
87
+
88
+ * Update user information in gemspec to make the intent of the Gem clear.
89
+
90
+ ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.1
91
+
92
+ * Fix README function documentation (ab3e30c)
93
+
94
+ ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
95
+
96
+ * stdlib 4.0 drops support with Puppet 2.7
97
+ * stdlib 4.0 preserves support with Puppet 3
98
+
99
+ ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
100
+
101
+ * Add ability to use puppet from git via bundler (9c5805f)
102
+
103
+ ##### 2013-04-10 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
104
+
105
+ * (maint) Make stdlib usable as a Ruby GEM (e81a45e)
106
+
107
+ ##### 2013-04-10 - Erik Dalén <dalen@spotify.com> - 4.0.0
108
+
109
+ * Add a count function (f28550e)
110
+
111
+ ##### 2013-03-31 - Amos Shapira <ashapira@atlassian.com> - 4.0.0
112
+
113
+ * (#19998) Implement any2array (7a2fb80)
114
+
115
+ ##### 2013-03-29 - Steve Huff <shuff@vecna.org> - 4.0.0
116
+
117
+ * (19864) num2bool match fix (8d217f0)
118
+
119
+ ##### 2013-03-20 - Erik Dalén <dalen@spotify.com> - 4.0.0
120
+
121
+ * Allow comparisons of Numeric and number as String (ff5dd5d)
122
+
123
+ ##### 2013-03-26 - Richard Soderberg <rsoderberg@mozilla.com> - 4.0.0
124
+
125
+ * add suffix function to accompany the prefix function (88a93ac)
126
+
127
+ ##### 2013-03-19 - Kristof Willaert <kristof.willaert@gmail.com> - 4.0.0
128
+
129
+ * Add floor function implementation and unit tests (0527341)
130
+
131
+ ##### 2012-04-03 - Eric Shamow <eric@puppetlabs.com> - 4.0.0
132
+
133
+ * (#13610) Add is\_function\_available to stdlib (961dcab)
134
+
135
+ ##### 2012-12-17 - Justin Lambert <jlambert@eml.cc> - 4.0.0
136
+
137
+ * str2bool should return a boolean if called with a boolean (5d5a4d4)
138
+
139
+ ##### 2012-10-23 - Uwe Stuehler <ustuehler@team.mobile.de> - 4.0.0
140
+
141
+ * Fix number of arguments check in flatten() (e80207b)
142
+
143
+ ##### 2013-03-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
144
+
145
+ * Add contributing document (96e19d0)
146
+
147
+ ##### 2013-03-04 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.0.0
148
+
149
+ * Add missing documentation for validate\_augeas and validate\_cmd to README.markdown (a1510a1)
150
+
151
+ ##### 2013-02-14 - Joshua Hoblitt <jhoblitt@cpan.org> - 4.0.0
152
+
153
+ * (#19272) Add has\_element() function (95cf3fe)
154
+
155
+ ##### 2013-02-07 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.0.0
156
+
157
+ * validate\_cmd(): Use Puppet::Util::Execution.execute when available (69248df)
158
+
159
+ ##### 2012-12-06 - Raphaël Pinson <raphink@gmail.com> - 4.0.0
160
+
161
+ * Add validate\_augeas function (3a97c23)
162
+
163
+ ##### 2012-12-06 - Raphaël Pinson <raphink@gmail.com> - 4.0.0
164
+
165
+ * Add validate\_cmd function (6902cc5)
166
+
167
+ ##### 2013-01-14 - David Schmitt <david@dasz.at> - 4.0.0
168
+
169
+ * Add geppetto project definition (b3fc0a3)
170
+
171
+ ##### 2013-01-02 - Jaka Hudoklin <jakahudoklin@gmail.com> - 4.0.0
172
+
173
+ * Add getparam function to get defined resource parameters (20e0e07)
174
+
175
+ ##### 2013-01-05 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
176
+
177
+ * (maint) Add Travis CI Support (d082046)
178
+
179
+ ##### 2012-12-04 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
180
+
181
+ * Clarify that stdlib 3 supports Puppet 3 (3a6085f)
182
+
183
+ ##### 2012-11-30 - Erik Dalén <dalen@spotify.com> - 4.0.0
184
+
185
+ * maint: style guideline fixes (7742e5f)
186
+
187
+ ##### 2012-11-09 - James Fryman <james@frymanet.com> - 4.0.0
188
+
189
+ * puppet-lint cleanup (88acc52)
190
+
191
+ ##### 2012-11-06 - Joe Julian <me@joejulian.name> - 4.0.0
192
+
193
+ * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)
194
+
195
+ ##### 2012-09-18 - Chad Metcalf <chad@wibidata.com> - 3.2.0
196
+
197
+ * Add an ensure\_packages function. (8a8c09e)
198
+
199
+ ##### 2012-11-23 - Erik Dalén <dalen@spotify.com> - 3.2.0
200
+
201
+ * (#17797) min() and max() functions (9954133)
202
+
203
+ ##### 2012-05-23 - Peter Meier <peter.meier@immerda.ch> - 3.2.0
204
+
205
+ * (#14670) autorequire a file\_line resource's path (dfcee63)
206
+
207
+ ##### 2012-11-19 - Joshua Harlan Lifton <lifton@puppetlabs.com> - 3.2.0
208
+
209
+ * Add join\_keys\_to\_values function (ee0f2b3)
210
+
211
+ ##### 2012-11-17 - Joshua Harlan Lifton <lifton@puppetlabs.com> - 3.2.0
212
+
213
+ * Extend delete function for strings and hashes (7322e4d)
214
+
215
+ ##### 2012-08-03 - Gary Larizza <gary@puppetlabs.com> - 3.2.0
216
+
217
+ * Add the pick() function (ba6dd13)
218
+
219
+ ##### 2012-03-20 - Wil Cooley <wcooley@pdx.edu> - 3.2.0
220
+
221
+ * (#13974) Add predicate functions for interface facts (f819417)
222
+
223
+ ##### 2012-11-06 - Joe Julian <me@joejulian.name> - 3.2.0
224
+
225
+ * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)
226
+
227
+ ##### 2012-10-25 - Jeff McCune <jeff@puppetlabs.com> - 3.1.1
228
+
229
+ * (maint) Fix spec failures resulting from Facter API changes (97f836f)
230
+
231
+ ##### 2012-10-23 - Matthaus Owens <matthaus@puppetlabs.com> - 3.1.0
232
+
233
+ * Add PE facts to stdlib (cdf3b05)
234
+
235
+ ##### 2012-08-16 - Jeff McCune <jeff@puppetlabs.com> - 3.0.1
236
+
237
+ * Fix accidental removal of facts\_dot\_d.rb in 3.0.0 release
238
+
239
+ ##### 2012-08-16 - Jeff McCune <jeff@puppetlabs.com> - 3.0.0
240
+
241
+ * stdlib 3.0 drops support with Puppet 2.6
242
+ * stdlib 3.0 preserves support with Puppet 2.7
243
+
244
+ ##### 2012-08-07 - Dan Bode <dan@puppetlabs.com> - 3.0.0
245
+
246
+ * Add function ensure\_resource and defined\_with\_params (ba789de)
247
+
248
+ ##### 2012-07-10 - Hailee Kenney <hailee@puppetlabs.com> - 3.0.0
249
+
250
+ * (#2157) Remove facter\_dot\_d for compatibility with external facts (f92574f)
251
+
252
+ ##### 2012-04-10 - Chris Price <chris@puppetlabs.com> - 3.0.0
253
+
254
+ * (#13693) moving logic from local spec\_helper to puppetlabs\_spec\_helper (85f96df)
255
+
256
+ ##### 2012-10-25 - Jeff McCune <jeff@puppetlabs.com> - 2.5.1
257
+
258
+ * (maint) Fix spec failures resulting from Facter API changes (97f836f)
259
+
260
+ ##### 2012-10-23 - Matthaus Owens <matthaus@puppetlabs.com> - 2.5.0
261
+
262
+ * Add PE facts to stdlib (cdf3b05)
263
+
264
+ ##### 2012-08-15 - Dan Bode <dan@puppetlabs.com> - 2.5.0
265
+
266
+ * Explicitly load functions used by ensure\_resource (9fc3063)
267
+
268
+ ##### 2012-08-13 - Dan Bode <dan@puppetlabs.com> - 2.5.0
269
+
270
+ * Add better docs about duplicate resource failures (97d327a)
271
+
272
+ ##### 2012-08-13 - Dan Bode <dan@puppetlabs.com> - 2.5.0
273
+
274
+ * Handle undef for parameter argument (4f8b133)
275
+
276
+ ##### 2012-08-07 - Dan Bode <dan@puppetlabs.com> - 2.5.0
277
+
278
+ * Add function ensure\_resource and defined\_with\_params (a0cb8cd)
279
+
280
+ ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
281
+
282
+ * Disable tests that fail on 2.6.x due to #15912 (c81496e)
283
+
284
+ ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
285
+
286
+ * (Maint) Fix mis-use of rvalue functions as statements (4492913)
287
+
288
+ ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
289
+
290
+ * Add .rspec file to repo root (88789e8)
291
+
292
+ ##### 2012-06-07 - Chris Price <chris@puppetlabs.com> - 2.4.0
293
+
294
+ * Add support for a 'match' parameter to file\_line (a06c0d8)
295
+
296
+ ##### 2012-08-07 - Erik Dalén <dalen@spotify.com> - 2.4.0
297
+
298
+ * (#15872) Add to\_bytes function (247b69c)
299
+
300
+ ##### 2012-07-19 - Jeff McCune <jeff@puppetlabs.com> - 2.4.0
301
+
302
+ * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)
303
+
304
+ ##### 2012-07-10 - Hailee Kenney <hailee@puppetlabs.com> - 2.4.0
305
+
306
+ * (#2157) Make facts\_dot\_d compatible with external facts (5fb0ddc)
307
+
308
+ ##### 2012-03-16 - Steve Traylen <steve.traylen@cern.ch> - 2.4.0
309
+
310
+ * (#13205) Rotate array/string randomley based on fqdn, fqdn\_rotate() (fef247b)
311
+
312
+ ##### 2012-05-22 - Peter Meier <peter.meier@immerda.ch> - 2.3.3
313
+
314
+ * fix regression in #11017 properly (f0a62c7)
315
+
316
+ ##### 2012-05-10 - Jeff McCune <jeff@puppetlabs.com> - 2.3.3
317
+
318
+ * Fix spec tests using the new spec\_helper (7d34333)
319
+
320
+ ##### 2012-05-10 - Puppet Labs <support@puppetlabs.com> - 2.3.2
321
+
322
+ * Make file\_line default to ensure => present (1373e70)
323
+ * Memoize file\_line spec instance variables (20aacc5)
324
+ * Fix spec tests using the new spec\_helper (1ebfa5d)
325
+ * (#13595) initialize\_everything\_for\_tests couples modules Puppet ver (3222f35)
326
+ * (#13439) Fix MRI 1.9 issue with spec\_helper (15c5fd1)
327
+ * (#13439) Fix test failures with Puppet 2.6.x (665610b)
328
+ * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)
329
+ * (#13494) Specify the behavior of zero padded strings (61891bb)
330
+
331
+ ##### 2012-03-29 Puppet Labs <support@puppetlabs.com> - 2.1.3
332
+
333
+ * (#11607) Add Rakefile to enable spec testing
334
+ * (#12377) Avoid infinite loop when retrying require json
335
+
336
+ ##### 2012-03-13 Puppet Labs <support@puppetlabs.com> - 2.3.1
337
+
338
+ * (#13091) Fix LoadError bug with puppet apply and puppet\_vardir fact
339
+
340
+ ##### 2012-03-12 Puppet Labs <support@puppetlabs.com> - 2.3.0
341
+
342
+ * Add a large number of new Puppet functions
343
+ * Backwards compatibility preserved with 2.2.x
344
+
345
+ ##### 2011-12-30 Puppet Labs <support@puppetlabs.com> - 2.2.1
346
+
347
+ * Documentation only release for the Forge
348
+
349
+ ##### 2011-12-30 Puppet Labs <support@puppetlabs.com> - 2.1.2
350
+
351
+ * Documentation only release for PE 2.0.x
352
+
353
+ ##### 2011-11-08 Puppet Labs <support@puppetlabs.com> - 2.2.0
354
+
355
+ * #10285 - Refactor json to use pson instead.
356
+ * Maint - Add watchr autotest script
357
+ * Maint - Make rspec tests work with Puppet 2.6.4
358
+ * #9859 - Add root\_home fact and tests
359
+
360
+ ##### 2011-08-18 Puppet Labs <support@puppetlabs.com> - 2.1.1
361
+
362
+ * Change facts.d paths to match Facter 2.0 paths.
363
+ * /etc/facter/facts.d
364
+ * /etc/puppetlabs/facter/facts.d
365
+
366
+ ##### 2011-08-17 Puppet Labs <support@puppetlabs.com> - 2.1.0
367
+
368
+ * Add R.I. Pienaar's facts.d custom facter fact
369
+ * facts defined in /etc/facts.d and /etc/puppetlabs/facts.d are
370
+ automatically loaded now.
371
+
372
+ ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 2.0.0
373
+
374
+ * Rename whole\_line to file\_line
375
+ * This is an API change and as such motivating a 2.0.0 release according to semver.org.
376
+
377
+ ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 1.1.0
378
+
379
+ * Rename append\_line to whole\_line
380
+ * This is an API change and as such motivating a 1.1.0 release.
381
+
382
+ ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 1.0.0
383
+
384
+ * Initial stable release
385
+ * Add validate\_array and validate\_string functions
386
+ * Make merge() function work with Ruby 1.8.5
387
+ * Add hash merging function
388
+ * Add has\_key function
389
+ * Add loadyaml() function
390
+ * Add append\_line native
391
+
392
+ ##### 2011-06-21 Jeff McCune <jeff@puppetlabs.com> - 0.1.7
393
+
394
+ * Add validate\_hash() and getvar() functions
395
+
396
+ ##### 2011-06-15 Jeff McCune <jeff@puppetlabs.com> - 0.1.6
397
+
398
+ * Add anchor resource type to provide containment for composite classes
399
+
400
+ ##### 2011-06-03 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
401
+
402
+ * Add validate\_bool() function to stdlib
403
+
404
+ ##### 0.1.4 2011-05-26 Jeff McCune <jeff@puppetlabs.com>
405
+
406
+ * Move most stages after main
407
+
408
+ ##### 0.1.3 2011-05-25 Jeff McCune <jeff@puppetlabs.com>
409
+
410
+ * Add validate\_re() function
411
+
412
+ ##### 0.1.2 2011-05-24 Jeff McCune <jeff@puppetlabs.com>
413
+
414
+ * Update to add annotated tag
415
+
416
+ ##### 0.1.1 2011-05-24 Jeff McCune <jeff@puppetlabs.com>
417
+
418
+ * Add stdlib::stages class with a standard set of stages
@@ -0,0 +1,65 @@
1
+ # How to contribute
2
+
3
+ Third-party patches are essential for keeping stdlib great. We simply can't
4
+ access the huge number of platforms and myriad configurations for running
5
+ stdlib. We want to keep it as easy as possible to contribute changes that
6
+ get things working in your environment. There are a few guidelines that we
7
+ need contributors to follow so that we can have a chance of keeping on
8
+ top of things.
9
+
10
+ ## Getting Started
11
+
12
+ * Make sure you have a [Jira account](http://tickets.puppetlabs.com)
13
+ * Make sure you have a [GitHub account](https://github.com/signup/free)
14
+ * Submit a ticket for your issue, assuming one does not already exist.
15
+ * Clearly describe the issue including steps to reproduce when it is a bug.
16
+ * Make sure you fill in the earliest version that you know has the issue.
17
+ * Fork the repository on GitHub
18
+
19
+ ## Making Changes
20
+
21
+ * Create a topic branch from where you want to base your work.
22
+ * This is usually the master branch.
23
+ * Only target release branches if you are certain your fix must be on that
24
+ branch.
25
+ * To quickly create a topic branch based on master; `git branch
26
+ fix/master/my_contribution master` then checkout the new branch with `git
27
+ checkout fix/master/my_contribution`. Please avoid working directly on the
28
+ `master` branch.
29
+ * Make commits of logical units.
30
+ * Check for unnecessary whitespace with `git diff --check` before committing.
31
+ * Make sure your commit messages are in the proper format.
32
+
33
+ ````
34
+ (#99999) Make the example in CONTRIBUTING imperative and concrete
35
+
36
+ Without this patch applied the example commit message in the CONTRIBUTING
37
+ document is not a concrete example. This is a problem because the
38
+ contributor is left to imagine what the commit message should look like
39
+ based on a description rather than an example. This patch fixes the
40
+ problem by making the example concrete and imperative.
41
+
42
+ The first line is a real life imperative statement with a ticket number
43
+ from our issue tracker. The body describes the behavior without the patch,
44
+ why this is a problem, and how the patch fixes the problem when applied.
45
+ ````
46
+
47
+ * Make sure you have added the necessary tests for your changes.
48
+ * Run _all_ the tests to assure nothing else was accidentally broken.
49
+
50
+ ## Submitting Changes
51
+
52
+ * Sign the [Contributor License Agreement](http://links.puppetlabs.com/cla).
53
+ * Push your changes to a topic branch in your fork of the repository.
54
+ * Submit a pull request to the repository in the puppetlabs organization.
55
+ * Update your ticket to mark that you have submitted code and are ready for it to be reviewed.
56
+ * Include a link to the pull request in the ticket
57
+
58
+ # Additional Resources
59
+
60
+ * [More information on contributing](http://links.puppetlabs.com/contribute-to-puppet)
61
+ * [Bug tracker (Jira)](http://tickets.puppetlabs.com)
62
+ * [Contributor License Agreement](http://links.puppetlabs.com/cla)
63
+ * [General GitHub documentation](http://help.github.com/)
64
+ * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
65
+ * #puppet-dev IRC channel on freenode.org
@@ -0,0 +1,33 @@
1
+ source ENV['GEM_SOURCE'] || 'https://rubygems.org'
2
+
3
+ def location_for(place, fake_version = nil)
4
+ if place =~ /^(git[:@][^#]*)#(.*)/
5
+ [fake_version, { :git => $1, :branch => $2, :require => false }].compact
6
+ elsif place =~ /^file:\/\/(.*)/
7
+ ['>= 0', { :path => File.expand_path($1), :require => false }]
8
+ else
9
+ [place, { :require => false }]
10
+ end
11
+ end
12
+
13
+ group :development, :test do
14
+ gem 'rake', '~> 10.1.0', :require => false
15
+ gem 'rspec-puppet', :require => false
16
+ gem 'puppetlabs_spec_helper', :require => false
17
+ gem 'serverspec', :require => false
18
+ gem 'puppet-lint', :require => false
19
+ gem 'pry', :require => false
20
+ gem 'simplecov', :require => false
21
+ gem 'beaker', :require => false
22
+ gem 'beaker-rspec', :require => false
23
+ end
24
+
25
+ ENV['GEM_PUPPET_VERSION'] ||= ENV['PUPPET_GEM_VERSION']
26
+ puppetversion = ENV['GEM_PUPPET_VERSION']
27
+ if puppetversion
28
+ gem 'puppet', *location_for(puppetversion)
29
+ else
30
+ gem 'puppet', :require => false
31
+ end
32
+
33
+ # vim:ft=ruby
@@ -0,0 +1,166 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ CFPropertyList (2.2.8)
5
+ addressable (2.3.6)
6
+ archive-tar-minitar (0.5.2)
7
+ autoparse (0.3.3)
8
+ addressable (>= 2.3.1)
9
+ extlib (>= 0.9.15)
10
+ multi_json (>= 1.0.0)
11
+ aws-sdk (1.42.0)
12
+ json (~> 1.4)
13
+ nokogiri (>= 1.4.4)
14
+ beaker (1.12.1)
15
+ aws-sdk (~> 1.38)
16
+ blimpy (~> 0.6)
17
+ docker-api
18
+ fission (~> 0.4)
19
+ google-api-client (~> 0.7.1)
20
+ inifile (~> 2.0)
21
+ json (~> 1.8)
22
+ mime-types (~> 1.25)
23
+ net-scp (~> 1.1)
24
+ net-ssh (~> 2.6)
25
+ nokogiri (= 1.5.10)
26
+ rbvmomi (= 1.8.1)
27
+ unf (~> 0.1)
28
+ beaker-rspec (2.2.4)
29
+ beaker (~> 1.10)
30
+ rspec (~> 2.14)
31
+ serverspec (~> 1.0)
32
+ specinfra (~> 1.0)
33
+ blimpy (0.6.7)
34
+ fog
35
+ minitar
36
+ thor
37
+ builder (3.2.2)
38
+ coderay (1.1.0)
39
+ diff-lcs (1.2.5)
40
+ docile (1.1.3)
41
+ docker-api (1.11.0)
42
+ archive-tar-minitar
43
+ excon (>= 0.34.0)
44
+ json
45
+ excon (0.34.0)
46
+ extlib (0.9.16)
47
+ facter (2.0.1)
48
+ CFPropertyList (~> 2.2.6)
49
+ faraday (0.9.0)
50
+ multipart-post (>= 1.2, < 3)
51
+ fission (0.5.0)
52
+ CFPropertyList (~> 2.2)
53
+ fog (1.11.1)
54
+ builder
55
+ excon (~> 0.20)
56
+ formatador (~> 0.2.0)
57
+ json (~> 1.7)
58
+ mime-types
59
+ net-scp (~> 1.1)
60
+ net-ssh (>= 2.1.3)
61
+ nokogiri (~> 1.5.0)
62
+ ruby-hmac
63
+ formatador (0.2.5)
64
+ google-api-client (0.7.1)
65
+ addressable (>= 2.3.2)
66
+ autoparse (>= 0.3.3)
67
+ extlib (>= 0.9.15)
68
+ faraday (>= 0.9.0)
69
+ jwt (>= 0.1.5)
70
+ launchy (>= 2.1.1)
71
+ multi_json (>= 1.0.0)
72
+ retriable (>= 1.4)
73
+ signet (>= 0.5.0)
74
+ uuidtools (>= 2.1.0)
75
+ hiera (1.3.3)
76
+ json_pure
77
+ highline (1.6.21)
78
+ inifile (2.0.2)
79
+ json (1.8.1)
80
+ json_pure (1.8.1)
81
+ jwt (1.0.0)
82
+ launchy (2.4.2)
83
+ addressable (~> 2.3)
84
+ metaclass (0.0.4)
85
+ method_source (0.8.2)
86
+ mime-types (1.25.1)
87
+ minitar (0.5.4)
88
+ mocha (1.1.0)
89
+ metaclass (~> 0.0.1)
90
+ multi_json (1.10.1)
91
+ multipart-post (2.0.0)
92
+ net-scp (1.2.1)
93
+ net-ssh (>= 2.6.5)
94
+ net-ssh (2.9.1)
95
+ nokogiri (1.5.10)
96
+ pry (0.9.12.6)
97
+ coderay (~> 1.0)
98
+ method_source (~> 0.8)
99
+ slop (~> 3.4)
100
+ puppet (3.6.1)
101
+ facter (> 1.6, < 3)
102
+ hiera (~> 1.0)
103
+ json_pure
104
+ rgen (~> 0.6.5)
105
+ puppet-lint (0.3.2)
106
+ puppetlabs_spec_helper (0.4.1)
107
+ mocha (>= 0.10.5)
108
+ rake
109
+ rspec (>= 2.9.0)
110
+ rspec-puppet (>= 0.1.1)
111
+ rake (10.1.1)
112
+ rbvmomi (1.8.1)
113
+ builder
114
+ nokogiri (>= 1.4.1)
115
+ trollop
116
+ retriable (1.4.1)
117
+ rgen (0.6.6)
118
+ rspec (2.99.0)
119
+ rspec-core (~> 2.99.0)
120
+ rspec-expectations (~> 2.99.0)
121
+ rspec-mocks (~> 2.99.0)
122
+ rspec-core (2.99.0)
123
+ rspec-expectations (2.99.0)
124
+ diff-lcs (>= 1.1.3, < 2.0)
125
+ rspec-mocks (2.99.0)
126
+ rspec-puppet (1.0.1)
127
+ rspec
128
+ ruby-hmac (0.4.0)
129
+ serverspec (1.7.0)
130
+ highline
131
+ net-ssh
132
+ rspec (~> 2.13)
133
+ specinfra (~> 1.13)
134
+ signet (0.5.0)
135
+ addressable (>= 2.2.3)
136
+ faraday (>= 0.9.0.rc5)
137
+ jwt (>= 0.1.5)
138
+ multi_json (>= 1.0.0)
139
+ simplecov (0.8.2)
140
+ docile (~> 1.1.0)
141
+ multi_json
142
+ simplecov-html (~> 0.8.0)
143
+ simplecov-html (0.8.0)
144
+ slop (3.5.0)
145
+ specinfra (1.15.0)
146
+ thor (0.19.1)
147
+ trollop (2.0)
148
+ unf (0.1.4)
149
+ unf_ext
150
+ unf_ext (0.0.6)
151
+ uuidtools (2.1.4)
152
+
153
+ PLATFORMS
154
+ ruby
155
+
156
+ DEPENDENCIES
157
+ beaker
158
+ beaker-rspec (= 2.2.4)
159
+ pry
160
+ puppet
161
+ puppet-lint
162
+ puppetlabs_spec_helper
163
+ rake (~> 10.1.0)
164
+ rspec-puppet
165
+ serverspec
166
+ simplecov
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2011 Puppet Labs Inc
2
+
3
+ and some parts:
4
+
5
+ Copyright (C) 2011 Krzysztof Wilczynski
6
+
7
+ Puppet Labs can be contacted at: info@puppetlabs.com
8
+
9
+ Licensed under the Apache License, Version 2.0 (the "License");
10
+ you may not use this file except in compliance with the License.
11
+ You may obtain a copy of the License at
12
+
13
+ http://www.apache.org/licenses/LICENSE-2.0
14
+
15
+ Unless required by applicable law or agreed to in writing, software
16
+ distributed under the License is distributed on an "AS IS" BASIS,
17
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ See the License for the specific language governing permissions and
19
+ limitations under the License.