puppet 0.24.6 → 0.24.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (383) hide show
  1. data/CHANGELOG +115 -0
  2. data/Rakefile +43 -14
  3. data/bin/puppetca +6 -5
  4. data/bin/puppetdoc +109 -15
  5. data/bin/ralsh +3 -1
  6. data/conf/redhat/puppet.spec +74 -48
  7. data/examples/mcx_dock_absent.pp +4 -0
  8. data/examples/mcx_dock_default.pp +118 -0
  9. data/examples/mcx_dock_full.pp +125 -0
  10. data/examples/mcx_dock_invalid.pp +9 -0
  11. data/examples/mcx_nogroup.pp +118 -0
  12. data/examples/mcx_notexists_absent.pp +4 -0
  13. data/ext/emacs/puppet-mode.el +1 -1
  14. data/lib/puppet.rb +1 -1
  15. data/lib/puppet/external/nagios/base.rb +114 -71
  16. data/lib/puppet/feature/base.rb +6 -0
  17. data/lib/puppet/indirector/yaml.rb +12 -3
  18. data/lib/puppet/module.rb +1 -1
  19. data/lib/puppet/network/client/master.rb +1 -1
  20. data/lib/puppet/network/xmlrpc/client.rb +3 -1
  21. data/lib/puppet/parameter.rb +1 -1
  22. data/lib/puppet/parser/ast.rb +15 -0
  23. data/lib/puppet/parser/ast/astarray.rb +1 -2
  24. data/lib/puppet/parser/ast/casestatement.rb +2 -0
  25. data/lib/puppet/parser/ast/collection.rb +2 -0
  26. data/lib/puppet/parser/ast/comparison_operator.rb +4 -0
  27. data/lib/puppet/parser/ast/definition.rb +2 -0
  28. data/lib/puppet/parser/ast/else.rb +3 -0
  29. data/lib/puppet/parser/ast/function.rb +19 -12
  30. data/lib/puppet/parser/ast/hostclass.rb +9 -1
  31. data/lib/puppet/parser/ast/ifstatement.rb +3 -0
  32. data/lib/puppet/parser/ast/node.rb +3 -0
  33. data/lib/puppet/parser/ast/resource.rb +3 -0
  34. data/lib/puppet/parser/ast/resource_defaults.rb +2 -0
  35. data/lib/puppet/parser/ast/resource_override.rb +3 -0
  36. data/lib/puppet/parser/ast/vardef.rb +3 -0
  37. data/lib/puppet/parser/functions.rb +14 -0
  38. data/lib/puppet/parser/functions/inline_template.rb +21 -0
  39. data/lib/puppet/parser/functions/template.rb +3 -2
  40. data/lib/puppet/parser/lexer.rb +56 -7
  41. data/lib/puppet/parser/parser.rb +114 -98
  42. data/lib/puppet/parser/parser_support.rb +24 -4
  43. data/lib/puppet/parser/resource/reference.rb +4 -3
  44. data/lib/puppet/parser/templatewrapper.rb +30 -22
  45. data/lib/puppet/property.rb +1 -1
  46. data/lib/puppet/property/list.rb +7 -2
  47. data/lib/puppet/property/ordered_list.rb +22 -0
  48. data/lib/puppet/provider/augeas/augeas.rb +189 -0
  49. data/lib/puppet/provider/computer/computer.rb +22 -0
  50. data/lib/puppet/provider/confine.rb +4 -1
  51. data/lib/puppet/provider/confine/variable.rb +13 -2
  52. data/lib/puppet/provider/confine_collection.rb +4 -1
  53. data/lib/puppet/provider/confiner.rb +1 -1
  54. data/lib/puppet/provider/group/directoryservice.rb +6 -3
  55. data/lib/puppet/provider/group/groupadd.rb +5 -2
  56. data/lib/puppet/provider/group/ldap.rb +11 -9
  57. data/lib/puppet/provider/group/netinfo.rb +8 -4
  58. data/lib/puppet/provider/group/pw.rb +5 -1
  59. data/lib/puppet/provider/host/netinfo.rb +5 -2
  60. data/lib/puppet/provider/macauthorization/macauthorization.rb +315 -0
  61. data/lib/puppet/provider/mcx/mcxcontent.rb +201 -0
  62. data/lib/puppet/provider/nameservice/directoryservice.rb +210 -107
  63. data/lib/puppet/provider/nameservice/netinfo.rb +7 -2
  64. data/lib/puppet/provider/package/appdmg.rb +0 -3
  65. data/lib/puppet/provider/package/apt.rb +6 -0
  66. data/lib/puppet/provider/package/rpm.rb +2 -0
  67. data/lib/puppet/provider/package/yum.rb +5 -1
  68. data/lib/puppet/provider/package/yumhelper.py +9 -0
  69. data/lib/puppet/provider/service/base.rb +9 -6
  70. data/lib/puppet/provider/service/daemontools.rb +25 -15
  71. data/lib/puppet/provider/service/debian.rb +6 -2
  72. data/lib/puppet/provider/service/freebsd.rb +5 -2
  73. data/lib/puppet/provider/service/gentoo.rb +6 -3
  74. data/lib/puppet/provider/service/init.rb +31 -21
  75. data/lib/puppet/provider/service/launchd.rb +195 -0
  76. data/lib/puppet/provider/service/redhat.rb +5 -2
  77. data/lib/puppet/provider/service/runit.rb +30 -20
  78. data/lib/puppet/provider/service/smf.rb +7 -4
  79. data/lib/puppet/provider/ssh_authorized_key/parsed.rb +21 -1
  80. data/lib/puppet/provider/user/directoryservice.rb +1 -0
  81. data/lib/puppet/provider/user/netinfo.rb +9 -3
  82. data/lib/puppet/provider/user/user_role_add.rb +43 -6
  83. data/lib/puppet/provider/zfs/solaris.rb +45 -0
  84. data/lib/puppet/provider/zone/solaris.rb +8 -4
  85. data/lib/puppet/provider/zpool/solaris.rb +116 -0
  86. data/lib/puppet/rails/database/003_add_environment_to_host.rb +9 -0
  87. data/lib/puppet/rails/database/schema.rb +1 -0
  88. data/lib/puppet/rails/host.rb +4 -0
  89. data/lib/puppet/reference/configuration.rb +1 -1
  90. data/lib/puppet/reports/tagmail.rb +15 -6
  91. data/lib/puppet/transaction/change.rb +3 -5
  92. data/lib/puppet/transportable.rb +1 -0
  93. data/lib/puppet/type/augeas.rb +155 -0
  94. data/lib/puppet/type/computer.rb +62 -0
  95. data/lib/puppet/type/exec.rb +2 -1
  96. data/lib/puppet/type/file.rb +1 -1
  97. data/lib/puppet/type/file/ensure.rb +8 -5
  98. data/lib/puppet/type/file/mode.rb +0 -14
  99. data/lib/puppet/type/file/owner.rb +32 -64
  100. data/lib/puppet/type/file/selcontext.rb +3 -8
  101. data/lib/puppet/type/group.rb +27 -45
  102. data/lib/puppet/type/k5login.rb +1 -1
  103. data/lib/puppet/type/macauthorization.rb +141 -0
  104. data/lib/puppet/type/mcx.rb +115 -0
  105. data/lib/puppet/type/mount.rb +1 -1
  106. data/lib/puppet/type/nagios_hostdependency.rb +3 -0
  107. data/lib/puppet/type/ssh_authorized_key.rb +16 -0
  108. data/lib/puppet/type/tidy.rb +43 -14
  109. data/lib/puppet/type/user.rb +25 -1
  110. data/lib/puppet/type/zfs.rb +51 -0
  111. data/lib/puppet/type/zone.rb +8 -0
  112. data/lib/puppet/type/zpool.rb +93 -0
  113. data/lib/puppet/util.rb +17 -38
  114. data/lib/puppet/util/file_locking.rb +44 -0
  115. data/lib/puppet/util/filetype.rb +3 -3
  116. data/lib/puppet/util/log.rb +1 -16
  117. data/lib/puppet/util/metric.rb +0 -5
  118. data/lib/puppet/util/rdoc.rb +85 -0
  119. data/lib/puppet/util/rdoc/code_objects.rb +219 -0
  120. data/lib/puppet/util/rdoc/generators/puppet_generator.rb +829 -0
  121. data/lib/puppet/util/rdoc/generators/template/puppet/puppet.rb +1051 -0
  122. data/lib/puppet/util/rdoc/parser.rb +437 -0
  123. data/lib/puppet/util/selinux.rb +135 -63
  124. data/lib/puppet/util/settings.rb +136 -126
  125. data/lib/puppet/util/storage.rb +4 -2
  126. data/spec/Rakefile +91 -0
  127. data/spec/integration/checksum.rb +47 -0
  128. data/spec/integration/defaults.rb +47 -0
  129. data/spec/integration/file_serving/configuration.rb +43 -0
  130. data/spec/integration/file_serving/content.rb +18 -0
  131. data/spec/integration/file_serving/metadata.rb +18 -0
  132. data/spec/integration/indirector/direct_file_server.rb +80 -0
  133. data/spec/integration/indirector/file_content/file_server.rb +18 -0
  134. data/spec/integration/indirector/file_metadata/file_server.rb +18 -0
  135. data/spec/integration/indirector/module_files.rb +57 -0
  136. data/spec/integration/indirector/node/ldap.rb +15 -0
  137. data/spec/integration/indirector/rest.rb +464 -0
  138. data/spec/integration/network/server/mongrel.rb +48 -0
  139. data/spec/integration/network/server/webrick.rb +48 -0
  140. data/spec/integration/node.rb +93 -0
  141. data/spec/integration/node/catalog.rb +54 -0
  142. data/spec/integration/node/facts.rb +45 -0
  143. data/spec/integration/provider/package.rb +26 -0
  144. data/spec/integration/provider/service/init.rb +32 -0
  145. data/spec/integration/reference/providers.rb +17 -0
  146. data/spec/integration/reports.rb +14 -0
  147. data/spec/integration/transaction/report.rb +26 -0
  148. data/spec/integration/type/package.rb +22 -0
  149. data/spec/integration/util/file_locking.rb +36 -0
  150. data/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb +46 -0
  151. data/spec/monkey_patches/alias_should_to_must.rb +5 -0
  152. data/spec/shared_behaviours/file_server_terminus.rb +42 -0
  153. data/spec/shared_behaviours/file_serving.rb +64 -0
  154. data/spec/shared_behaviours/memory_terminus.rb +32 -0
  155. data/spec/spec.opts +5 -0
  156. data/spec/spec_helper.rb +36 -0
  157. data/spec/unit/executables/client/certhandler.rb +122 -0
  158. data/spec/unit/file_serving/configuration.rb +224 -0
  159. data/spec/unit/file_serving/configuration/parser.rb +135 -0
  160. data/spec/unit/file_serving/content.rb +71 -0
  161. data/spec/unit/file_serving/file_base.rb +124 -0
  162. data/spec/unit/file_serving/fileset.rb +239 -0
  163. data/spec/unit/file_serving/indirection_hooks.rb +124 -0
  164. data/spec/unit/file_serving/metadata.rb +187 -0
  165. data/spec/unit/file_serving/mount.rb +143 -0
  166. data/spec/unit/file_serving/terminus_helper.rb +76 -0
  167. data/spec/unit/indirector.rb +152 -0
  168. data/spec/unit/indirector/catalog/compiler.rb +156 -0
  169. data/spec/unit/indirector/catalog/yaml.rb +25 -0
  170. data/spec/unit/indirector/checksum/file.rb +139 -0
  171. data/spec/unit/indirector/code.rb +33 -0
  172. data/spec/unit/indirector/direct_file_server.rb +89 -0
  173. data/spec/unit/indirector/envelope.rb +47 -0
  174. data/spec/unit/indirector/exec.rb +51 -0
  175. data/spec/unit/indirector/facts/facter.rb +76 -0
  176. data/spec/unit/indirector/facts/yaml.rb +26 -0
  177. data/spec/unit/indirector/file.rb +154 -0
  178. data/spec/unit/indirector/file_content/file.rb +18 -0
  179. data/spec/unit/indirector/file_content/file_server.rb +18 -0
  180. data/spec/unit/indirector/file_content/modules.rb +18 -0
  181. data/spec/unit/indirector/file_content/rest.rb +11 -0
  182. data/spec/unit/indirector/file_metadata/file.rb +52 -0
  183. data/spec/unit/indirector/file_metadata/file_server.rb +18 -0
  184. data/spec/unit/indirector/file_metadata/modules.rb +42 -0
  185. data/spec/unit/indirector/file_metadata/rest.rb +9 -0
  186. data/spec/unit/indirector/file_server.rb +184 -0
  187. data/spec/unit/indirector/indirection.rb +731 -0
  188. data/spec/unit/indirector/ldap.rb +143 -0
  189. data/spec/unit/indirector/memory.rb +29 -0
  190. data/spec/unit/indirector/module_files.rb +259 -0
  191. data/spec/unit/indirector/node/exec.rb +69 -0
  192. data/spec/unit/indirector/node/ldap.rb +424 -0
  193. data/spec/unit/indirector/node/memory.rb +19 -0
  194. data/spec/unit/indirector/node/plain.rb +19 -0
  195. data/spec/unit/indirector/node/rest.rb +13 -0
  196. data/spec/unit/indirector/node/yaml.rb +25 -0
  197. data/spec/unit/indirector/plain.rb +29 -0
  198. data/spec/unit/indirector/report/processor.rb +81 -0
  199. data/spec/unit/indirector/request.rb +87 -0
  200. data/spec/unit/indirector/rest.rb +372 -0
  201. data/spec/unit/indirector/ssl_rsa/file.rb +116 -0
  202. data/spec/unit/indirector/terminus.rb +245 -0
  203. data/spec/unit/indirector/yaml.rb +145 -0
  204. data/spec/unit/module.rb +247 -0
  205. data/spec/unit/network/client.rb +45 -0
  206. data/spec/unit/network/client/master.rb +442 -0
  207. data/spec/unit/network/handler/fileserver.rb +179 -0
  208. data/spec/unit/network/http.rb +35 -0
  209. data/spec/unit/network/http/mongrel.rb +117 -0
  210. data/spec/unit/network/http/mongrel/rest.rb +377 -0
  211. data/spec/unit/network/http/mongrel/xmlrpc.rb +0 -0
  212. data/spec/unit/network/http/webrick.rb +127 -0
  213. data/spec/unit/network/http/webrick/rest.rb +323 -0
  214. data/spec/unit/network/http/webrick/xmlrpc.rb +0 -0
  215. data/spec/unit/network/http_pool.rb +238 -0
  216. data/spec/unit/network/server.rb +316 -0
  217. data/spec/unit/network/xmlrpc/client.rb +13 -0
  218. data/spec/unit/node.rb +167 -0
  219. data/spec/unit/node/catalog.rb +864 -0
  220. data/spec/unit/node/environment.rb +37 -0
  221. data/spec/unit/node/facts.rb +44 -0
  222. data/spec/unit/other/checksum.rb +92 -0
  223. data/spec/unit/other/pgraph.rb +210 -0
  224. data/spec/unit/other/transaction.rb +33 -0
  225. data/spec/unit/other/transbucket.rb +172 -0
  226. data/spec/unit/other/transobject.rb +92 -0
  227. data/spec/unit/parameter.rb +24 -0
  228. data/spec/unit/parser/ast.rb +37 -0
  229. data/spec/unit/parser/ast/arithmetic_operator.rb +73 -0
  230. data/spec/unit/parser/ast/astarray.rb +66 -0
  231. data/spec/unit/parser/ast/boolean_operator.rb +53 -0
  232. data/spec/unit/parser/ast/collexpr.rb +92 -0
  233. data/spec/unit/parser/ast/comparison_operator.rb +92 -0
  234. data/spec/unit/parser/ast/definition.rb +195 -0
  235. data/spec/unit/parser/ast/function.rb +77 -0
  236. data/spec/unit/parser/ast/hostclass.rb +148 -0
  237. data/spec/unit/parser/ast/minus.rb +36 -0
  238. data/spec/unit/parser/ast/node.rb +125 -0
  239. data/spec/unit/parser/ast/nop.rb +20 -0
  240. data/spec/unit/parser/ast/not.rb +30 -0
  241. data/spec/unit/parser/ast/resource_override.rb +51 -0
  242. data/spec/unit/parser/ast/resource_reference.rb +63 -0
  243. data/spec/unit/parser/ast/vardef.rb +47 -0
  244. data/spec/unit/parser/collector.rb +426 -0
  245. data/spec/unit/parser/compiler.rb +561 -0
  246. data/spec/unit/parser/functions.rb +83 -0
  247. data/spec/unit/parser/functions/inline_template.rb +59 -0
  248. data/spec/unit/parser/functions/template.rb +62 -0
  249. data/spec/unit/parser/interpreter.rb +138 -0
  250. data/spec/unit/parser/lexer.rb +646 -0
  251. data/spec/unit/parser/parser.rb +228 -0
  252. data/spec/unit/parser/resource.rb +336 -0
  253. data/spec/unit/parser/resource/reference.rb +95 -0
  254. data/spec/unit/parser/scope.rb +87 -0
  255. data/spec/unit/parser/templatewrapper.rb +129 -0
  256. data/spec/unit/property.rb +35 -0
  257. data/spec/unit/property/keyvalue.rb +168 -0
  258. data/spec/unit/property/list.rb +156 -0
  259. data/spec/unit/property/ordered_list.rb +64 -0
  260. data/spec/unit/provider/augeas/augeas.rb +238 -0
  261. data/spec/unit/provider/confine.rb +78 -0
  262. data/spec/unit/provider/confine/exists.rb +81 -0
  263. data/spec/unit/provider/confine/false.rb +53 -0
  264. data/spec/unit/provider/confine/feature.rb +60 -0
  265. data/spec/unit/provider/confine/true.rb +53 -0
  266. data/spec/unit/provider/confine/variable.rb +107 -0
  267. data/spec/unit/provider/confine_collection.rb +134 -0
  268. data/spec/unit/provider/confiner.rb +63 -0
  269. data/spec/unit/provider/group/groupadd.rb +31 -0
  270. data/spec/unit/provider/group/ldap.rb +105 -0
  271. data/spec/unit/provider/ldap.rb +248 -0
  272. data/spec/unit/provider/macauthorization.rb +147 -0
  273. data/spec/unit/provider/mcx/mcxcontent.rb +175 -0
  274. data/spec/unit/provider/mount.rb +130 -0
  275. data/spec/unit/provider/mount/parsed.rb +185 -0
  276. data/spec/unit/provider/package/apt.rb +138 -0
  277. data/spec/unit/provider/package/dpkg.rb +163 -0
  278. data/spec/unit/provider/package/gem.rb +87 -0
  279. data/spec/unit/provider/package/hpux.rb +52 -0
  280. data/spec/unit/provider/selboolean.rb +37 -0
  281. data/spec/unit/provider/selmodule-example.pp +0 -0
  282. data/spec/unit/provider/selmodule.rb +66 -0
  283. data/spec/unit/provider/service/daemontools.rb +124 -0
  284. data/spec/unit/provider/service/launchd.rb +134 -0
  285. data/spec/unit/provider/service/runit.rb +117 -0
  286. data/spec/unit/provider/ssh_authorized_key/parsed.rb +102 -0
  287. data/spec/unit/provider/user/hpux.rb +25 -0
  288. data/spec/unit/provider/user/ldap.rb +279 -0
  289. data/spec/unit/provider/user/user_role_add.rb +249 -0
  290. data/spec/unit/provider/user/useradd.rb +115 -0
  291. data/spec/unit/provider/zfs/solaris.rb +87 -0
  292. data/spec/unit/provider/zone/solaris.rb +42 -0
  293. data/spec/unit/provider/zpool/solaris.rb +179 -0
  294. data/spec/unit/rails.rb +125 -0
  295. data/spec/unit/relationship.rb +149 -0
  296. data/spec/unit/reports.rb +61 -0
  297. data/spec/unit/resource_reference.rb +73 -0
  298. data/spec/unit/simple_graph.rb +280 -0
  299. data/spec/unit/transaction/change.rb +187 -0
  300. data/spec/unit/transaction/event.rb +25 -0
  301. data/spec/unit/transaction/report.rb +40 -0
  302. data/spec/unit/type.rb +64 -0
  303. data/spec/unit/type/augeas.rb +113 -0
  304. data/spec/unit/type/computer.rb +82 -0
  305. data/spec/unit/type/exec.rb +91 -0
  306. data/spec/unit/type/file.rb +155 -0
  307. data/spec/unit/type/file/ensure.rb +21 -0
  308. data/spec/unit/type/file/group.rb +118 -0
  309. data/spec/unit/type/file/owner.rb +132 -0
  310. data/spec/unit/type/file/selinux.rb +82 -0
  311. data/spec/unit/type/group.rb +40 -0
  312. data/spec/unit/type/macauthorization.rb +78 -0
  313. data/spec/unit/type/mcx.rb +108 -0
  314. data/spec/unit/type/mount.rb +219 -0
  315. data/spec/unit/type/nagios.rb +63 -0
  316. data/spec/unit/type/noop_metaparam.rb +38 -0
  317. data/spec/unit/type/package.rb +246 -0
  318. data/spec/unit/type/resources.rb +27 -0
  319. data/spec/unit/type/schedule.rb +339 -0
  320. data/spec/unit/type/selboolean.rb +47 -0
  321. data/spec/unit/type/selmodule.rb +18 -0
  322. data/spec/unit/type/service.rb +254 -0
  323. data/spec/unit/type/ssh_authorized_key.rb +106 -0
  324. data/spec/unit/type/tidy.rb +68 -0
  325. data/spec/unit/type/user.rb +260 -0
  326. data/spec/unit/type/zfs.rb +45 -0
  327. data/spec/unit/type/zone.rb +20 -0
  328. data/spec/unit/type/zpool.rb +110 -0
  329. data/spec/unit/util/checksums.rb +99 -0
  330. data/spec/unit/util/constant_inflector.rb +70 -0
  331. data/spec/unit/util/file_locking.rb +115 -0
  332. data/spec/unit/util/ldap/connection.rb +169 -0
  333. data/spec/unit/util/ldap/generator.rb +54 -0
  334. data/spec/unit/util/ldap/manager.rb +654 -0
  335. data/spec/unit/util/loadedfile.rb +65 -0
  336. data/spec/unit/util/log.rb +107 -0
  337. data/spec/unit/util/metric.rb +95 -0
  338. data/spec/unit/util/nagios_maker.rb +128 -0
  339. data/spec/unit/util/posix.rb +256 -0
  340. data/spec/unit/util/resource_template.rb +58 -0
  341. data/spec/unit/util/selinux.rb +219 -0
  342. data/spec/unit/util/settings.rb +847 -0
  343. data/spec/unit/util/storage.rb +248 -0
  344. data/spec/unit/util/tagging.rb +92 -0
  345. data/spec/unit/util/uri_helper.rb +41 -0
  346. data/spec/unit/util/user_attr.rb +47 -0
  347. data/spec/unit/util/warnings.rb +35 -0
  348. data/test/certmgr/support.rb +0 -6
  349. data/test/data/providers/ssh_authorized_key/parsed/authorized_keys +1 -0
  350. data/test/data/snippets/multilinecomments.pp +6 -0
  351. data/test/data/snippets/multipleclass.pp +9 -0
  352. data/test/language/functions.rb +11 -1
  353. data/test/language/snippets.rb +16 -0
  354. data/test/lib/puppettest/runnable_test.rb +1 -1
  355. data/test/network/handler/fileserver.rb +5 -0
  356. data/test/other/report.rb +0 -4
  357. data/test/ral/type/resources.rb +2 -19
  358. data/test/util/settings.rb +4 -4
  359. data/test/util/storage.rb +0 -24
  360. data/test/util/utiltest.rb +0 -33
  361. metadata +319 -26
  362. data/conf/debian/README.source +0 -2
  363. data/conf/debian/TODO.Debian +0 -1
  364. data/conf/debian/changelog +0 -257
  365. data/conf/debian/compat +0 -1
  366. data/conf/debian/control +0 -45
  367. data/conf/debian/copyright +0 -17
  368. data/conf/debian/docs +0 -1
  369. data/conf/debian/fileserver.conf +0 -12
  370. data/conf/debian/puppet.NEWS +0 -63
  371. data/conf/debian/puppet.conf +0 -8
  372. data/conf/debian/puppet.dirs +0 -7
  373. data/conf/debian/puppet.files +0 -6
  374. data/conf/debian/puppet.init +0 -64
  375. data/conf/debian/puppet.logrotate +0 -11
  376. data/conf/debian/puppet.postinst +0 -9
  377. data/conf/debian/puppet.postrm +0 -21
  378. data/conf/debian/puppet.preinst +0 -25
  379. data/conf/debian/puppetmaster.files +0 -4
  380. data/conf/debian/puppetmaster.init +0 -58
  381. data/conf/debian/rules +0 -115
  382. data/conf/debian/watch +0 -2
  383. data/lib/puppet/type/nagios_hostgroupescalation.rb +0 -3
@@ -86,17 +86,11 @@ class TestCertSupport < Test::Unit::TestCase
86
86
  # Write a key out to disk in a file containing upper-case.
87
87
  key = OpenSSL::PKey::RSA.new(32)
88
88
  should_path = Puppet[:hostprivkey]
89
- puts "%s: %s" % [should_path, FileTest.exist?(should_path).inspect]
90
89
 
91
90
  dir, file = File.split(should_path)
92
91
  newfile = file.sub(/^([a-z.]+)\./) { $1.upcase + "."}
93
- puts "%s: %s" % [should_path, FileTest.exist?(should_path).inspect]
94
92
  upper_path = File.join(dir, newfile)
95
- puts "%s: %s" % [should_path, FileTest.exist?(should_path).inspect]
96
- puts "%s: %s" % [upper_path, FileTest.exist?(upper_path).inspect]
97
93
  File.open(upper_path, "w") { |f| f.print key.to_s }
98
- puts "%s: %s" % [should_path, FileTest.exist?(should_path).inspect]
99
- puts "%s: %s" % [upper_path, FileTest.exist?(upper_path).inspect]
100
94
 
101
95
  user = CertUser.new
102
96
 
@@ -1,5 +1,6 @@
1
1
  ssh-dss AAAAB3NzaC1kc3MAAACBAJkupmdsJSDXfUy5EU5NTRBDr9Woo3w0YnB8KmnJW9ghU8C7SkWPB1fIHVe+esFfd3qWBseb83PoFX63geZJAg6bjV4/Rdn1zEoa9EO2QyUdYUen4+rpsh3vVKZ6HFNsn3+W5+kPYgE1F/N4INqkbjY3sqCkP/W1BL9+sbVVbuJFAAAAFQCfjWDk5XhvGUkPjNWWVqltBYzHtwAAAIEAg/XL7ky7x9Ad5banzPFAfmM+DGFe0A/JEbLDjKmr5KBM5x4RFohtEvZ8ECuVGUOqBWdgAjyYwsG4oRVjLnKrf/rgmbNRzSFgEWkcAye3BVwk7Dt6hh4knEl+mNfOLq+FH0011UhecOiqTcESMzQDtgQ1vJh2VchElBLjl3x/ZugAAACAAh5jGQC338t5ObP8trSlOefkx0sXmmEzUbo3Mt8mGUuGJPx8m+X0L8Xd+l5rQxytqE3SmV/RD+6REqBuPqHM8RQuqAzfjdOeg/Ajdggx1CRMTVhltZsgQoxO30cz9Qo0SdPoL+Jp1fLuaLZq7m/RmsWYvoLT3jebBlpvvQE8YlI= francois.deppierraz@nimag.net
2
2
  ssh-dss AAAAB3NzaC1kc3MAAACBAJkupmdsJSDXfUy5EU5NTRBDr9Woo3w0YnB8KmnJW9ghU8C7SkWPB1fIHVe+esFfd3qWBseb83PoFX63geZJAg6bjV4/Rdn1zEoa9EO2QyUdYUen4+rpsh3vVKZ6HFNsn3+W5+kPYgE1F/N4INqkbjY3sqCkP/W1BL9+sbVVbuJFAAAAFQCfjWDk5XhvGUkPjNWWVqltBYzHtwAAAIEAg/XL7ky7x9Ad5banzPFAfmM+DGFe0A/JEbLDjKmr5KBM5x4RFohtEvZ8ECuVGUOqBWdgAjyYwsG4oRVjLnKrf/rgmbNRzSFgEWkcAye3BVwk7Dt6hh4knEl+mNfOLq+FH0011UhecOiqTcESMzQDtgQ1vJh2VchElBLjl3x/ZugAAACAAh5jGQC338t5ObP8trSlOefkx0sXmmEzUbo3Mt8mGUuGJPx8m+X0L8Xd+l5rQxytqE3SmV/RD+6REqBuPqHM8RQuqAzfjdOeg/Ajdggx1CRMTVhltZsgQoxO30cz9Qo0SdPoL+Jp1fLuaLZq7m/RmsWYvoLT3jebBlpvvQE8YlI= Francois Deppierraz <francois@ctrlaltdel.ch>
3
3
  from="192.168.1.1",command="/bin/false",no-pty,no-port-forwarding ssh-dss AAAAB3NzaC1kc3MAAACBAJkupmdsJSDXfUy5EU5NTRBDr9Woo3w0YnB8KmnJW9ghU8C7SkWPB1fIHVe+esFfd3qWBseb83PoFX63geZJAg6bjV4/Rdn1zEoa9EO2QyUdYUen4+rpsh3vVKZ6HFNsn3+W5+kPYgE1F/N4INqkbjY3sqCkP/W1BL9+sbVVbuJFAAAAFQCfjWDk5XhvGUkPjNWWVqltBYzHtwAAAIEAg/XL7ky7x9Ad5banzPFAfmM+DGFe0A/JEbLDjKmr5KBM5x4RFohtEvZ8ECuVGUOqBWdgAjyYwsG4oRVjLnKrf/rgmbNRzSFgEWkcAye3BVwk7Dt6hh4knEl+mNfOLq+FH0011UhecOiqTcESMzQDtgQ1vJh2VchElBLjl3x/ZugAAACAAh5jGQC338t5ObP8trSlOefkx0sXmmEzUbo3Mt8mGUuGJPx8m+X0L8Xd+l5rQxytqE3SmV/RD+6REqBuPqHM8RQuqAzfjdOeg/Ajdggx1CRMTVhltZsgQoxO30cz9Qo0SdPoL+Jp1fLuaLZq7m/RmsWYvoLT3jebBlpvvQE8YlI= Francois Deppierraz
4
+ from="192.168.1.1, www.reductivelabs.com",command="/bin/false",no-pty,no-port-forwarding ssh-dss AAAAB3NzaC1kc3MAAACBAJkupmdsJSDXfUy5EU5NTRBDr9Woo3w0YnB8KmnJW9ghU8C7SkWPB1fIHVe+esFfd3qWBseb83PoFX63geZJAg6bjV4/Rdn1zEoa9EO2QyUdYUen4+rpsh3vVKZ6HFNsn3+W5+kPYgE1F/N4INqkbjY3sqCkP/W1BL9+sbVVbuJFAAAAFQCfjWDk5XhvGUkPjNWWVqltBYzHtwAAAIEAg/XL7ky7x9Ad5banzPFAfmM+DGFe0A/JEbLDjKmr5KBM5x4RFohtEvZ8ECuVGUOqBWdgAjyYwsG4oRVjLnKrf/rgmbNRzSFgEWkcAye3BVwk7Dt6hh4knEl+mNfOLq+FH0011UhecOiqTcESMzQDtgQ1vJh2VchElBLjl3x/ZugAAACAAh5jGQC338t5ObP8trSlOefkx0sXmmEzUbo3Mt8mGUuGJPx8m+X0L8Xd+l5rQxytqE3SmV/RD+6REqBuPqHM8RQuqAzfjdOeg/Ajdggx1CRMTVhltZsgQoxO30cz9Qo0SdPoL+Jp1fLuaLZq7m/RmsWYvoLT3jebBlpvvQE8YlI= Francois Deppierraz
4
5
  ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2Vi+TdC3iOGYcIo5vGTvC9P9rjHl9RxCuZmSfn+YDFQ35RXf0waijtjp9I7GYh6R4hBjA5z0u/Pzi95LET5NfRM0Gdc0DJyvBI7K+ALBxIT383Iz6Yz4iKxe1TEJgHGM2he4+7BHkjc3kdIZqIpZjucCk4VsXSxujO4MKKvtaKK2l+kahlLQHHw/vZkDpIgL52iGVsjW9l8RLJaKHZ4mDHJN/Q/Rzn2W4EvcdHUzwhvGMwZlm8clDwITBrSsawYtnivJrQSYcmTRqJuS8wprNDrLIhTGjrwFg5WpruUuMt6fLuCqwe6TeEL+nh3DQ4g554c5aRp3oU6LGBKTvNZGWQ== francois@korn
5
6
  ssh-dss AAAAB3NzaC1kc3MAAACBAMPpCYnjywOemd8LqbbmC+bePNR3/H1rXsiFwjSLhYE3bbOpvclvOzN1DruFc34m0FopVnMkP+aubjdIYF8pijl+5hg9ggB7Kno2dl0Dd1rGN/swvmhA8OpLAQv7Qt7UnXKVho3as08zYZsrHxYFu0wlnkdbsv4cy4aXyQKd4MPVAAAAFQDSyQFWg8Qt3wU05buhZ10psoR7tQAAAIEAmAhguXwUnI3P2FF5NAW/mpJUmUERdL4pyZARUyAgpf7ezwrh9TJqrvGTQNBF97Xqaivyncm5JWQdMIsTBxEFaXZGkmBta02KnWcn447qvIh7iv8XpNL6M9flCkBEZOJ4t9El0ytTSHHaiCz8A20Et+E8evWyi1kXkFDt8ML2dGgAAACBAK0X4ympbdEjgV/ZyOc+BU22u7vOnfSOUJmyar4Ax1MIDNnoyNWKnGvxRutydQcQOKQHZEU0fE8MhPFn6nLF6CoVfEl/oz0EYz3hjV4WPFpHrF5DY/rhvNj8iuneKJ5P0dy/rG6m5qey25PnHyGFVoIRlkHJvBCJT40dHs40YEjI francois@korn
@@ -0,0 +1,6 @@
1
+
2
+ /*
3
+ file {
4
+ "/tmp/multilinecomments": content => "pouet"
5
+ }
6
+ */
@@ -0,0 +1,9 @@
1
+ class one {
2
+ file { "/tmp/multipleclassone": content => "one" }
3
+ }
4
+
5
+ class one {
6
+ file { "/tmp/multipleclasstwo": content => "two" }
7
+ }
8
+
9
+ include one
@@ -12,7 +12,7 @@ class TestLangFunctions < Test::Unit::TestCase
12
12
  include PuppetTest::ParserTesting
13
13
  include PuppetTest::ResourceTesting
14
14
  def test_functions
15
- assert_raise(Puppet::ParseError) do
15
+ assert_nothing_raised do
16
16
  Puppet::Parser::AST::Function.new(
17
17
  :name => "fakefunction",
18
18
  :arguments => AST::ASTArray.new(
@@ -21,6 +21,16 @@ class TestLangFunctions < Test::Unit::TestCase
21
21
  )
22
22
  end
23
23
 
24
+ assert_raise(Puppet::ParseError) do
25
+ func = Puppet::Parser::AST::Function.new(
26
+ :name => "fakefunction",
27
+ :arguments => AST::ASTArray.new(
28
+ :children => [nameobj("avalue")]
29
+ )
30
+ )
31
+ func.evaluate(mkscope)
32
+ end
33
+
24
34
  assert_nothing_raised do
25
35
  Puppet::Parser::Functions.newfunction(:fakefunction, :type => :rvalue) do |input|
26
36
  return "output %s" % input[0]
@@ -30,6 +30,13 @@ class TestSnippets < Test::Unit::TestCase
30
30
  end
31
31
  end
32
32
 
33
+ def assert_not_file(path, msg = nil)
34
+ if file = @file[path]
35
+ msg ||= "File %s exists!" % path
36
+ raise msg
37
+ end
38
+ end
39
+
33
40
  def assert_mode_equal(mode, path)
34
41
  unless file = @file[path]
35
42
  raise "Could not find file %s" % path
@@ -460,6 +467,15 @@ class TestSnippets < Test::Unit::TestCase
460
467
  "Did not make second file from array")
461
468
  end
462
469
 
470
+ def snippet_multipleclass
471
+ assert_file("/tmp/multipleclassone", "one")
472
+ assert_file("/tmp/multipleclasstwo", "two")
473
+ end
474
+
475
+ def snippet_multilinecomments
476
+ assert_not_file("/tmp/multilinecomments","Did create a commented resource");
477
+ end
478
+
463
479
  # Iterate across each of the snippets and create a test.
464
480
  Dir.entries(snippetdir).sort.each { |file|
465
481
  next if file =~ /^\./
@@ -17,10 +17,10 @@ module PuppetTest
17
17
  # Evaluate all of our tests to see if any of them are false
18
18
  # and thus whether this test is considered not runnable.
19
19
  def runnable?
20
+ @messages ||= []
20
21
  if superclass.respond_to?(:runnable?) and ! superclass.runnable?
21
22
  return false
22
23
  end
23
- @messages ||= []
24
24
  return false unless @messages.empty?
25
25
  return true unless defined? @confines
26
26
  @confines.find_all do |message, result|
@@ -980,6 +980,11 @@ allow *
980
980
  }
981
981
 
982
982
  dir = tempfile()
983
+
984
+ # When mocks attack, part 2
985
+ kernel_fact = Facter.value(:kernel)
986
+ Facter.stubs(:value).with(:kernel).returns(kernel_fact)
987
+
983
988
  Facter.stubs(:value).with(:ipaddress).returns("127.0.0.1")
984
989
  Facter.stubs(:value).with { |v| v.to_s == "hostname" }.returns("myhost")
985
990
  Facter.stubs(:value).with { |v| v.to_s == "domain" }.returns("mydomain.com")
@@ -54,10 +54,6 @@ class TestReports < Test::Unit::TestCase
54
54
 
55
55
  assert(report.logs.include?(log), "Report did not get log message")
56
56
 
57
- log = Puppet.warning "This is a non-sourced message"
58
-
59
- assert(! report.logs.include?(log), "Report got log message")
60
-
61
57
  assert_nothing_raised {
62
58
  Puppet::Util::Log.close(report)
63
59
  }
@@ -58,24 +58,7 @@ class TestResources < Test::Unit::TestCase
58
58
  super
59
59
  @type = Puppet::Type.type(:resources)
60
60
  end
61
-
62
- def test_initialize
63
- assert(@type, "Could not retrieve resources type")
64
- # Make sure we can't create them for types that don't exist
65
- assert_raise(Puppet::Error) do
66
- @type.create :name => "thereisnotypewiththisname"
67
- end
68
-
69
- # Now make sure it works for a normal type
70
- usertype = nil
71
- assert_nothing_raised do
72
- usertype = @type.create :name => "user"
73
- end
74
- assert(usertype, "did not create user resource type")
75
- assert_equal(Puppet::Type.type(:user), usertype.resource_type,
76
- "resource_type was not set correctly")
77
- end
78
-
61
+
79
62
  def test_purge
80
63
  # Create a purgeable type
81
64
  mkpurgertype
@@ -149,7 +132,7 @@ class TestResources < Test::Unit::TestCase
149
132
 
150
133
  assert_nothing_raised {
151
134
  assert(res.check("A String"), "String failed check")
152
- assert(res.check(Puppet::Type.newfile(:path => tempfile())), "File failed check")
135
+ assert(res.check(Puppet::Type.type(:file).create(:path => tempfile())), "File failed check")
153
136
  assert(res.check(Puppet::Type.type(:user).create(:name => "yayness")), "User failed check in package")
154
137
  }
155
138
 
@@ -1058,12 +1058,12 @@ yay = /a/path
1058
1058
  def test_celement_short_name
1059
1059
  element = nil
1060
1060
  assert_nothing_raised("Could not create celement") do
1061
- element = CElement.new :short => "n", :desc => "anything"
1061
+ element = CElement.new :short => "n", :desc => "anything", :settings => Puppet::Util::Settings.new
1062
1062
  end
1063
1063
  assert_equal("n", element.short, "Short value is not retained")
1064
1064
 
1065
1065
  assert_raise(ArgumentError,"Allowed multicharactered short names.") do
1066
- element = CElement.new :short => "no", :desc => "anything"
1066
+ element = CElement.new :short => "no", :desc => "anything", :settings => Puppet::Util::Settings.new
1067
1067
  end
1068
1068
  end
1069
1069
 
@@ -1088,13 +1088,13 @@ yay = /a/path
1088
1088
 
1089
1089
  # Tell getopt which arguments are valid
1090
1090
  def test_get_getopt_args
1091
- element = CElement.new :name => "foo", :desc => "anything"
1091
+ element = CElement.new :name => "foo", :desc => "anything", :settings => Puppet::Util::Settings.new
1092
1092
  assert_equal([["--foo", GetoptLong::REQUIRED_ARGUMENT]], element.getopt_args, "Did not produce appropriate getopt args")
1093
1093
 
1094
1094
  element.short = "n"
1095
1095
  assert_equal([["--foo", "-n", GetoptLong::REQUIRED_ARGUMENT]], element.getopt_args, "Did not produce appropriate getopt args")
1096
1096
 
1097
- element = CBoolean.new :name => "foo", :desc => "anything"
1097
+ element = CBoolean.new :name => "foo", :desc => "anything", :settings => Puppet::Util::Settings.new
1098
1098
  assert_equal([["--foo", GetoptLong::NO_ARGUMENT], ["--no-foo", GetoptLong::NO_ARGUMENT]],
1099
1099
  element.getopt_args, "Did not produce appropriate getopt args")
1100
1100
 
@@ -63,30 +63,6 @@ class TestStorage < Test::Unit::TestCase
63
63
  assert_equal(state["name"], hash)
64
64
  end
65
65
 
66
- # we're getting corrupt files, probably because multiple processes
67
- # are reading or writing the file at once
68
- # so we need to test that
69
- def test_multiwrite
70
- f = mkfile()
71
-
72
- value = {:a => :b}
73
- threads = []
74
- 9.times { |a|
75
- threads << Thread.new {
76
- 9.times { |b|
77
- assert_nothing_raised {
78
- Puppet::Util::Storage.load
79
- state = Puppet::Util::Storage.cache(f)
80
- value.each { |k,v| state[k] = v }
81
- state[:e] = rand(100)
82
- Puppet::Util::Storage.store
83
- }
84
- }
85
- }
86
- }
87
- threads.each { |th| th.join }
88
- end
89
-
90
66
  def test_emptyrestore
91
67
  Puppet::Util::Storage.load
92
68
  Puppet::Util::Storage.store
@@ -8,39 +8,6 @@ require 'mocha'
8
8
  class TestPuppetUtil < Test::Unit::TestCase
9
9
  include PuppetTest
10
10
 
11
- # we're getting corrupt files, probably because multiple processes
12
- # are reading or writing the file at once
13
- # so we need to test that
14
- def test_multiwrite
15
- file = tempfile()
16
- File.open(file, "w") { |f| f.puts "starting" }
17
-
18
- value = {:a => :b}
19
- threads = []
20
- sync = Sync.new
21
- 9.times { |a|
22
- threads << Thread.new {
23
- 9.times { |b|
24
- assert_nothing_raised {
25
- sync.synchronize(Sync::SH) {
26
- Puppet::Util.readlock(file) { |f|
27
- f.read
28
- }
29
- }
30
- sleep 0.01
31
- sync.synchronize(Sync::EX) {
32
- Puppet::Util.writelock(file) { |f|
33
- f.puts "%s %s" % [a, b]
34
- }
35
- }
36
- }
37
- }
38
- }
39
- }
40
- threads.each { |th| th.join }
41
- end
42
-
43
-
44
11
  def test_withumask
45
12
  oldmask = File.umask
46
13
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.6
4
+ version: 0.24.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Kanies
8
- autorequire: puppet
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-23 00:00:00 +02:00
12
+ date: 2008-12-16 00:00:00 +01:00
13
13
  default_executable: puppet
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,7 @@ files:
46
46
  - lib/puppet.rb
47
47
  - lib/puppet/parameter.rb
48
48
  - lib/puppet/property/keyvalue.rb
49
+ - lib/puppet/property/ordered_list.rb
49
50
  - lib/puppet/property/list.rb
50
51
  - lib/puppet/network.rb
51
52
  - lib/puppet/node/catalog.rb
@@ -55,8 +56,10 @@ files:
55
56
  - lib/puppet/type/tidy.rb
56
57
  - lib/puppet/type/selmodule.rb
57
58
  - lib/puppet/type/nagios_servicegroup.rb
59
+ - lib/puppet/type/zfs.rb
58
60
  - lib/puppet/type/zone.rb
59
61
  - lib/puppet/type/nagios_serviceescalation.rb
62
+ - lib/puppet/type/computer.rb
60
63
  - lib/puppet/type/group.rb
61
64
  - lib/puppet/type/nagios_service.rb
62
65
  - lib/puppet/type/file.rb
@@ -76,6 +79,7 @@ files:
76
79
  - lib/puppet/type/package.rb
77
80
  - lib/puppet/type/selboolean.rb
78
81
  - lib/puppet/type/schedule.rb
82
+ - lib/puppet/type/mcx.rb
79
83
  - lib/puppet/type/sshkey.rb
80
84
  - lib/puppet/type/nagios_hostextinfo.rb
81
85
  - lib/puppet/type/nagios_servicedependency.rb
@@ -91,12 +95,15 @@ files:
91
95
  - lib/puppet/type/file/content.rb
92
96
  - lib/puppet/type/file/selcontext.rb
93
97
  - lib/puppet/type/cron.rb
98
+ - lib/puppet/type/zpool.rb
94
99
  - lib/puppet/type/exec.rb
95
100
  - lib/puppet/type/ssh_authorized_key.rb
96
- - lib/puppet/type/nagios_hostgroupescalation.rb
97
101
  - lib/puppet/type/mount.rb
98
102
  - lib/puppet/type/nagios_host.rb
99
103
  - lib/puppet/type/mailalias.rb
104
+ - lib/puppet/type/nagios_hostdependency.rb
105
+ - lib/puppet/type/augeas.rb
106
+ - lib/puppet/type/macauthorization.rb
100
107
  - lib/puppet/type/nagios_serviceextinfo.rb
101
108
  - lib/puppet/type/nagios_contact.rb
102
109
  - lib/puppet/type/maillist.rb
@@ -129,6 +136,8 @@ files:
129
136
  - lib/puppet/feature/base.rb
130
137
  - lib/puppet/feature/rails.rb
131
138
  - lib/puppet/transportable.rb
139
+ - lib/puppet/provider/zpool/solaris.rb
140
+ - lib/puppet/provider/mcx/mcxcontent.rb
132
141
  - lib/puppet/provider/naginator.rb
133
142
  - lib/puppet/provider/port/parsed.rb
134
143
  - lib/puppet/provider/package/rpm.rb
@@ -162,6 +171,7 @@ files:
162
171
  - lib/puppet/provider/ldap.rb
163
172
  - lib/puppet/provider/nameservice.rb
164
173
  - lib/puppet/provider/ssh_authorized_key/parsed.rb
174
+ - lib/puppet/provider/computer/computer.rb
165
175
  - lib/puppet/provider/package.rb
166
176
  - lib/puppet/provider/confine/feature.rb
167
177
  - lib/puppet/provider/confine/true.rb
@@ -177,6 +187,7 @@ files:
177
187
  - lib/puppet/provider/service/daemontools.rb
178
188
  - lib/puppet/provider/service/freebsd.rb
179
189
  - lib/puppet/provider/service/init.rb
190
+ - lib/puppet/provider/service/launchd.rb
180
191
  - lib/puppet/provider/selmodule/semodule.rb
181
192
  - lib/puppet/provider/mailalias/aliases.rb
182
193
  - lib/puppet/provider/user/useradd.rb
@@ -189,6 +200,7 @@ files:
189
200
  - lib/puppet/provider/mount/parsed.rb
190
201
  - lib/puppet/provider/mount/netinfo.rb
191
202
  - lib/puppet/provider/zone/solaris.rb
203
+ - lib/puppet/provider/macauthorization/macauthorization.rb
192
204
  - lib/puppet/provider/group/ldap.rb
193
205
  - lib/puppet/provider/group/groupadd.rb
194
206
  - lib/puppet/provider/group/directoryservice.rb
@@ -196,9 +208,11 @@ files:
196
208
  - lib/puppet/provider/group/netinfo.rb
197
209
  - lib/puppet/provider/parsedfile.rb
198
210
  - lib/puppet/provider/selboolean/getsetsebool.rb
211
+ - lib/puppet/provider/zfs/solaris.rb
199
212
  - lib/puppet/provider/cron/crontab.rb
200
213
  - lib/puppet/provider/mount.rb
201
214
  - lib/puppet/provider/confine_collection.rb
215
+ - lib/puppet/provider/augeas/augeas.rb
202
216
  - lib/puppet/provider/maillist/mailman.rb
203
217
  - lib/puppet/provider/nameservice/directoryservice.rb
204
218
  - lib/puppet/provider/nameservice/pw.rb
@@ -267,6 +281,10 @@ files:
267
281
  - lib/puppet/util/filetype.rb
268
282
  - lib/puppet/util/feature.rb
269
283
  - lib/puppet/util/graph.rb
284
+ - lib/puppet/util/rdoc/code_objects.rb
285
+ - lib/puppet/util/rdoc/parser.rb
286
+ - lib/puppet/util/rdoc/generators/template/puppet/puppet.rb
287
+ - lib/puppet/util/rdoc/generators/puppet_generator.rb
270
288
  - lib/puppet/util/classgen.rb
271
289
  - lib/puppet/util/config_store.rb
272
290
  - lib/puppet/util/errors.rb
@@ -291,8 +309,10 @@ files:
291
309
  - lib/puppet/util/ldap/connection.rb
292
310
  - lib/puppet/util/ldap/generator.rb
293
311
  - lib/puppet/util/nagios_maker.rb
312
+ - lib/puppet/util/file_locking.rb
294
313
  - lib/puppet/util/metric.rb
295
314
  - lib/puppet/util/fileparsing.rb
315
+ - lib/puppet/util/rdoc.rb
296
316
  - lib/puppet/util/inifile.rb
297
317
  - lib/puppet/util/suidmanager.rb
298
318
  - lib/puppet/util/checksums.rb
@@ -358,6 +378,7 @@ files:
358
378
  - lib/puppet/rails/database/schema.rb
359
379
  - lib/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb
360
380
  - lib/puppet/rails/database/001_add_created_at_to_all_tables.rb
381
+ - lib/puppet/rails/database/003_add_environment_to_host.rb
361
382
  - lib/puppet/rails/fact_name.rb
362
383
  - lib/puppet/rails/source_file.rb
363
384
  - lib/puppet/file_serving/terminus_helper.rb
@@ -391,6 +412,7 @@ files:
391
412
  - lib/puppet/parser/functions/template.rb
392
413
  - lib/puppet/parser/functions/fail.rb
393
414
  - lib/puppet/parser/functions/search.rb
415
+ - lib/puppet/parser/functions/inline_template.rb
394
416
  - lib/puppet/parser/functions/sha1.rb
395
417
  - lib/puppet/parser/functions/realize.rb
396
418
  - lib/puppet/parser/parser_support.rb
@@ -487,6 +509,7 @@ files:
487
509
  - test/data/snippets/ifexpression.rb
488
510
  - test/data/snippets/selectorvalues.pp
489
511
  - test/data/snippets/subclass_name_duplication.pp
512
+ - test/data/snippets/multilinecomments.pp
490
513
  - test/data/snippets/componentmetaparams.pp
491
514
  - test/data/snippets/casestatement.pp
492
515
  - test/data/snippets/tag.pp
@@ -502,6 +525,7 @@ files:
502
525
  - test/data/snippets/append.pp
503
526
  - test/data/snippets/singleary.pp
504
527
  - test/data/snippets/emptyifelse.pp
528
+ - test/data/snippets/multipleclass.pp
505
529
  - test/data/snippets/classpathtest
506
530
  - test/data/snippets/simpleselector
507
531
  - test/data/snippets/fqparents.pp
@@ -705,6 +729,291 @@ files:
705
729
  - test/rails/host.rb
706
730
  - test/rails/configuration.rb
707
731
  - test/rails/rails.rb
732
+ - spec/spec.opts
733
+ - spec/unit
734
+ - spec/unit/parameter.rb
735
+ - spec/unit/property
736
+ - spec/unit/property/keyvalue.rb
737
+ - spec/unit/property/ordered_list.rb
738
+ - spec/unit/property/list.rb
739
+ - spec/unit/node
740
+ - spec/unit/node/catalog.rb
741
+ - spec/unit/node/environment.rb
742
+ - spec/unit/node/facts.rb
743
+ - spec/unit/reports.rb
744
+ - spec/unit/type
745
+ - spec/unit/type/tidy.rb
746
+ - spec/unit/type/selmodule.rb
747
+ - spec/unit/type/zfs.rb
748
+ - spec/unit/type/zone.rb
749
+ - spec/unit/type/computer.rb
750
+ - spec/unit/type/group.rb
751
+ - spec/unit/type/file.rb
752
+ - spec/unit/type/service.rb
753
+ - spec/unit/type/resources.rb
754
+ - spec/unit/type/user.rb
755
+ - spec/unit/type/package.rb
756
+ - spec/unit/type/selboolean.rb
757
+ - spec/unit/type/schedule.rb
758
+ - spec/unit/type/noop_metaparam.rb
759
+ - spec/unit/type/mcx.rb
760
+ - spec/unit/type/file
761
+ - spec/unit/type/file/group.rb
762
+ - spec/unit/type/file/ensure.rb
763
+ - spec/unit/type/file/selinux.rb
764
+ - spec/unit/type/file/owner.rb
765
+ - spec/unit/type/zpool.rb
766
+ - spec/unit/type/exec.rb
767
+ - spec/unit/type/nagios.rb
768
+ - spec/unit/type/ssh_authorized_key.rb
769
+ - spec/unit/type/mount.rb
770
+ - spec/unit/type/augeas.rb
771
+ - spec/unit/type/macauthorization.rb
772
+ - spec/unit/node.rb
773
+ - spec/unit/simple_graph.rb
774
+ - spec/unit/module.rb
775
+ - spec/unit/provider
776
+ - spec/unit/provider/zpool
777
+ - spec/unit/provider/zpool/solaris.rb
778
+ - spec/unit/provider/mcx
779
+ - spec/unit/provider/mcx/mcxcontent.rb
780
+ - spec/unit/provider/selmodule.rb
781
+ - spec/unit/provider/package
782
+ - spec/unit/provider/package/hpux.rb
783
+ - spec/unit/provider/package/apt.rb
784
+ - spec/unit/provider/package/dpkg.rb
785
+ - spec/unit/provider/package/gem.rb
786
+ - spec/unit/provider/confine.rb
787
+ - spec/unit/provider/confiner.rb
788
+ - spec/unit/provider/ldap.rb
789
+ - spec/unit/provider/ssh_authorized_key
790
+ - spec/unit/provider/ssh_authorized_key/parsed.rb
791
+ - spec/unit/provider/selmodule-example.pp
792
+ - spec/unit/provider/confine
793
+ - spec/unit/provider/confine/feature.rb
794
+ - spec/unit/provider/confine/true.rb
795
+ - spec/unit/provider/confine/exists.rb
796
+ - spec/unit/provider/confine/false.rb
797
+ - spec/unit/provider/confine/variable.rb
798
+ - spec/unit/provider/service
799
+ - spec/unit/provider/service/runit.rb
800
+ - spec/unit/provider/service/daemontools.rb
801
+ - spec/unit/provider/service/launchd.rb
802
+ - spec/unit/provider/selboolean.rb
803
+ - spec/unit/provider/user
804
+ - spec/unit/provider/user/useradd.rb
805
+ - spec/unit/provider/user/hpux.rb
806
+ - spec/unit/provider/user/user_role_add.rb
807
+ - spec/unit/provider/user/ldap.rb
808
+ - spec/unit/provider/mount
809
+ - spec/unit/provider/mount/parsed.rb
810
+ - spec/unit/provider/zone
811
+ - spec/unit/provider/zone/solaris.rb
812
+ - spec/unit/provider/group
813
+ - spec/unit/provider/group/ldap.rb
814
+ - spec/unit/provider/group/groupadd.rb
815
+ - spec/unit/provider/zfs
816
+ - spec/unit/provider/zfs/solaris.rb
817
+ - spec/unit/provider/mount.rb
818
+ - spec/unit/provider/confine_collection.rb
819
+ - spec/unit/provider/augeas
820
+ - spec/unit/provider/augeas/augeas.rb
821
+ - spec/unit/provider/macauthorization.rb
822
+ - spec/unit/network
823
+ - spec/unit/network/client
824
+ - spec/unit/network/client/master.rb
825
+ - spec/unit/network/http
826
+ - spec/unit/network/http/mongrel
827
+ - spec/unit/network/http/mongrel/rest.rb
828
+ - spec/unit/network/http/mongrel/xmlrpc.rb
829
+ - spec/unit/network/http/webrick.rb
830
+ - spec/unit/network/http/webrick
831
+ - spec/unit/network/http/webrick/rest.rb
832
+ - spec/unit/network/http/webrick/xmlrpc.rb
833
+ - spec/unit/network/http/mongrel.rb
834
+ - spec/unit/network/http.rb
835
+ - spec/unit/network/http_pool.rb
836
+ - spec/unit/network/server.rb
837
+ - spec/unit/network/client.rb
838
+ - spec/unit/network/xmlrpc
839
+ - spec/unit/network/xmlrpc/client.rb
840
+ - spec/unit/network/handler
841
+ - spec/unit/network/handler/fileserver.rb
842
+ - spec/unit/indirector.rb
843
+ - spec/unit/other
844
+ - spec/unit/other/pgraph.rb
845
+ - spec/unit/other/transobject.rb
846
+ - spec/unit/other/checksum.rb
847
+ - spec/unit/other/transaction.rb
848
+ - spec/unit/other/transbucket.rb
849
+ - spec/unit/executables
850
+ - spec/unit/executables/client
851
+ - spec/unit/executables/client/certhandler.rb
852
+ - spec/unit/property.rb
853
+ - spec/unit/type.rb
854
+ - spec/unit/util
855
+ - spec/unit/util/posix.rb
856
+ - spec/unit/util/log.rb
857
+ - spec/unit/util/warnings.rb
858
+ - spec/unit/util/selinux.rb
859
+ - spec/unit/util/loadedfile.rb
860
+ - spec/unit/util/resource_template.rb
861
+ - spec/unit/util/settings.rb
862
+ - spec/unit/util/storage.rb
863
+ - spec/unit/util/ldap
864
+ - spec/unit/util/ldap/manager.rb
865
+ - spec/unit/util/ldap/connection.rb
866
+ - spec/unit/util/ldap/generator.rb
867
+ - spec/unit/util/nagios_maker.rb
868
+ - spec/unit/util/file_locking.rb
869
+ - spec/unit/util/metric.rb
870
+ - spec/unit/util/checksums.rb
871
+ - spec/unit/util/uri_helper.rb
872
+ - spec/unit/util/user_attr.rb
873
+ - spec/unit/util/constant_inflector.rb
874
+ - spec/unit/util/tagging.rb
875
+ - spec/unit/indirector
876
+ - spec/unit/indirector/module_files.rb
877
+ - spec/unit/indirector/terminus.rb
878
+ - spec/unit/indirector/node
879
+ - spec/unit/indirector/node/rest.rb
880
+ - spec/unit/indirector/node/memory.rb
881
+ - spec/unit/indirector/node/ldap.rb
882
+ - spec/unit/indirector/node/plain.rb
883
+ - spec/unit/indirector/node/yaml.rb
884
+ - spec/unit/indirector/node/exec.rb
885
+ - spec/unit/indirector/rest.rb
886
+ - spec/unit/indirector/file.rb
887
+ - spec/unit/indirector/file_content
888
+ - spec/unit/indirector/file_content/rest.rb
889
+ - spec/unit/indirector/file_content/file.rb
890
+ - spec/unit/indirector/file_content/file_server.rb
891
+ - spec/unit/indirector/file_content/modules.rb
892
+ - spec/unit/indirector/code.rb
893
+ - spec/unit/indirector/report
894
+ - spec/unit/indirector/report/processor.rb
895
+ - spec/unit/indirector/checksum
896
+ - spec/unit/indirector/checksum/file.rb
897
+ - spec/unit/indirector/file_server.rb
898
+ - spec/unit/indirector/memory.rb
899
+ - spec/unit/indirector/request.rb
900
+ - spec/unit/indirector/file_metadata
901
+ - spec/unit/indirector/file_metadata/rest.rb
902
+ - spec/unit/indirector/file_metadata/file.rb
903
+ - spec/unit/indirector/file_metadata/file_server.rb
904
+ - spec/unit/indirector/file_metadata/modules.rb
905
+ - spec/unit/indirector/facts
906
+ - spec/unit/indirector/facts/facter.rb
907
+ - spec/unit/indirector/facts/yaml.rb
908
+ - spec/unit/indirector/ldap.rb
909
+ - spec/unit/indirector/plain.rb
910
+ - spec/unit/indirector/envelope.rb
911
+ - spec/unit/indirector/ssl_rsa
912
+ - spec/unit/indirector/ssl_rsa/file.rb
913
+ - spec/unit/indirector/catalog
914
+ - spec/unit/indirector/catalog/yaml.rb
915
+ - spec/unit/indirector/catalog/compiler.rb
916
+ - spec/unit/indirector/indirection.rb
917
+ - spec/unit/indirector/yaml.rb
918
+ - spec/unit/indirector/exec.rb
919
+ - spec/unit/indirector/direct_file_server.rb
920
+ - spec/unit/file_serving
921
+ - spec/unit/file_serving/terminus_helper.rb
922
+ - spec/unit/file_serving/file_base.rb
923
+ - spec/unit/file_serving/indirection_hooks.rb
924
+ - spec/unit/file_serving/configuration
925
+ - spec/unit/file_serving/configuration/parser.rb
926
+ - spec/unit/file_serving/configuration.rb
927
+ - spec/unit/file_serving/mount.rb
928
+ - spec/unit/file_serving/fileset.rb
929
+ - spec/unit/file_serving/metadata.rb
930
+ - spec/unit/file_serving/content.rb
931
+ - spec/unit/relationship.rb
932
+ - spec/unit/resource_reference.rb
933
+ - spec/unit/transaction
934
+ - spec/unit/transaction/change.rb
935
+ - spec/unit/transaction/event.rb
936
+ - spec/unit/transaction/report.rb
937
+ - spec/unit/rails.rb
938
+ - spec/unit/parser
939
+ - spec/unit/parser/ast.rb
940
+ - spec/unit/parser/interpreter.rb
941
+ - spec/unit/parser/lexer.rb
942
+ - spec/unit/parser/scope.rb
943
+ - spec/unit/parser/functions
944
+ - spec/unit/parser/functions/template.rb
945
+ - spec/unit/parser/functions/inline_template.rb
946
+ - spec/unit/parser/parser.rb
947
+ - spec/unit/parser/resource
948
+ - spec/unit/parser/resource/reference.rb
949
+ - spec/unit/parser/functions.rb
950
+ - spec/unit/parser/templatewrapper.rb
951
+ - spec/unit/parser/resource.rb
952
+ - spec/unit/parser/ast
953
+ - spec/unit/parser/ast/function.rb
954
+ - spec/unit/parser/ast/definition.rb
955
+ - spec/unit/parser/ast/vardef.rb
956
+ - spec/unit/parser/ast/node.rb
957
+ - spec/unit/parser/ast/nop.rb
958
+ - spec/unit/parser/ast/comparison_operator.rb
959
+ - spec/unit/parser/ast/not.rb
960
+ - spec/unit/parser/ast/boolean_operator.rb
961
+ - spec/unit/parser/ast/astarray.rb
962
+ - spec/unit/parser/ast/collexpr.rb
963
+ - spec/unit/parser/ast/minus.rb
964
+ - spec/unit/parser/ast/hostclass.rb
965
+ - spec/unit/parser/ast/arithmetic_operator.rb
966
+ - spec/unit/parser/ast/resource_reference.rb
967
+ - spec/unit/parser/ast/resource_override.rb
968
+ - spec/unit/parser/collector.rb
969
+ - spec/unit/parser/compiler.rb
970
+ - spec/shared_behaviours
971
+ - spec/shared_behaviours/memory_terminus.rb
972
+ - spec/shared_behaviours/file_serving.rb
973
+ - spec/shared_behaviours/file_server_terminus.rb
974
+ - spec/integration
975
+ - spec/integration/node
976
+ - spec/integration/node/catalog.rb
977
+ - spec/integration/node/facts.rb
978
+ - spec/integration/reports.rb
979
+ - spec/integration/type
980
+ - spec/integration/type/package.rb
981
+ - spec/integration/node.rb
982
+ - spec/integration/reference
983
+ - spec/integration/reference/providers.rb
984
+ - spec/integration/provider
985
+ - spec/integration/provider/package.rb
986
+ - spec/integration/provider/service
987
+ - spec/integration/provider/service/init.rb
988
+ - spec/integration/network
989
+ - spec/integration/network/server
990
+ - spec/integration/network/server/webrick.rb
991
+ - spec/integration/network/server/mongrel.rb
992
+ - spec/integration/defaults.rb
993
+ - spec/integration/checksum.rb
994
+ - spec/integration/util
995
+ - spec/integration/util/file_locking.rb
996
+ - spec/integration/indirector
997
+ - spec/integration/indirector/module_files.rb
998
+ - spec/integration/indirector/node
999
+ - spec/integration/indirector/node/ldap.rb
1000
+ - spec/integration/indirector/rest.rb
1001
+ - spec/integration/indirector/file_content
1002
+ - spec/integration/indirector/file_content/file_server.rb
1003
+ - spec/integration/indirector/file_metadata
1004
+ - spec/integration/indirector/file_metadata/file_server.rb
1005
+ - spec/integration/indirector/direct_file_server.rb
1006
+ - spec/integration/file_serving
1007
+ - spec/integration/file_serving/configuration.rb
1008
+ - spec/integration/file_serving/metadata.rb
1009
+ - spec/integration/file_serving/content.rb
1010
+ - spec/integration/transaction
1011
+ - spec/integration/transaction/report.rb
1012
+ - spec/spec_helper.rb
1013
+ - spec/Rakefile
1014
+ - spec/monkey_patches
1015
+ - spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb
1016
+ - spec/monkey_patches/alias_should_to_must.rb
708
1017
  - bin/puppetrun
709
1018
  - bin/puppetmasterd
710
1019
  - bin/filebucket
@@ -743,6 +1052,8 @@ files:
743
1052
  - ext/bin
744
1053
  - ext/bin/sleeper
745
1054
  - examples/mac_dscl.pp
1055
+ - examples/mcx_dock_default.pp
1056
+ - examples/mcx_dock_full.pp
746
1057
  - examples/groups
747
1058
  - examples/nodes
748
1059
  - examples/file.bl
@@ -759,9 +1070,11 @@ files:
759
1070
  - examples/modules/sample-module/lib/puppet/parser/functions/hostname_to_dn.rb
760
1071
  - examples/modules/sample-module/manifests
761
1072
  - examples/modules/sample-module/manifests/init.pp
1073
+ - examples/mcx_dock_invalid.pp
762
1074
  - examples/one
763
1075
  - examples/relationships
764
1076
  - examples/components
1077
+ - examples/mcx_dock_absent.pp
765
1078
  - examples/functions
766
1079
  - examples/fileparsing
767
1080
  - examples/mac_automount.pp
@@ -773,6 +1086,7 @@ files:
773
1086
  - examples/filerecursion
774
1087
  - examples/selectors
775
1088
  - examples/allatonce
1089
+ - examples/mcx_notexists_absent.pp
776
1090
  - examples/simpletests
777
1091
  - examples/mac_pkgdmg.pp
778
1092
  - examples/head
@@ -787,6 +1101,7 @@ files:
787
1101
  - examples/etc/puppet/namespaceauth.conf
788
1102
  - examples/etc/puppet/puppet.conf
789
1103
  - examples/etc/puppet/fileserver.conf
1104
+ - examples/mcx_nogroup.pp
790
1105
  - conf/osx
791
1106
  - conf/osx/createpackage.sh
792
1107
  - conf/osx/PackageInfo.plist
@@ -795,28 +1110,6 @@ files:
795
1110
  - conf/suse/server.init
796
1111
  - conf/suse/client.init
797
1112
  - conf/suse/puppet.spec
798
- - conf/debian
799
- - conf/debian/compat
800
- - conf/debian/puppet.postinst
801
- - conf/debian/puppet.NEWS
802
- - conf/debian/changelog
803
- - conf/debian/docs
804
- - conf/debian/puppet.postrm
805
- - conf/debian/README.source
806
- - conf/debian/control
807
- - conf/debian/puppet.dirs
808
- - conf/debian/watch
809
- - conf/debian/puppetmaster.init
810
- - conf/debian/copyright
811
- - conf/debian/puppet.preinst
812
- - conf/debian/puppet.conf
813
- - conf/debian/TODO.Debian
814
- - conf/debian/puppet.files
815
- - conf/debian/puppet.init
816
- - conf/debian/fileserver.conf
817
- - conf/debian/puppet.logrotate
818
- - conf/debian/puppetmaster.files
819
- - conf/debian/rules
820
1113
  - conf/gentoo
821
1114
  - conf/gentoo/conf.d
822
1115
  - conf/gentoo/conf.d/puppetmaster