puppet 0.24.5 → 0.24.6

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 (354) hide show
  1. data/CHANGELOG +206 -0
  2. data/Rakefile +53 -0
  3. data/bin/filebucket +0 -0
  4. data/bin/puppet +32 -11
  5. data/bin/puppetca +1 -0
  6. data/bin/puppetd +0 -0
  7. data/bin/puppetdoc +0 -0
  8. data/bin/puppetmasterd +0 -0
  9. data/bin/puppetrun +16 -8
  10. data/bin/ralsh +0 -0
  11. data/conf/debian/rules +0 -0
  12. data/conf/gentoo/init.d/puppetmaster +0 -0
  13. data/conf/osx/PackageInfo.plist +36 -0
  14. data/conf/osx/createpackage.sh +167 -0
  15. data/conf/osx/preflight +12 -0
  16. data/conf/redhat/client.init +1 -1
  17. data/conf/redhat/puppet.spec +34 -6
  18. data/conf/redhat/server.init +42 -7
  19. data/conf/redhat/server.sysconfig +22 -0
  20. data/conf/solaris/smf/svc-puppetd +0 -0
  21. data/conf/solaris/smf/svc-puppetmasterd +0 -0
  22. data/examples/etc/init.d/sleeper +0 -0
  23. data/examples/mac_dscl.pp +0 -0
  24. data/examples/mac_dscl_revert.pp +0 -0
  25. data/examples/mac_netinfo.pp +0 -0
  26. data/examples/mac_pkgdmg.pp +0 -0
  27. data/ext/bin/sleeper +0 -0
  28. data/ext/module_puppet +0 -0
  29. data/ext/nagios/check_puppet.rb +0 -0
  30. data/ext/passenger/README +63 -0
  31. data/ext/passenger/apache2.conf +29 -0
  32. data/ext/passenger/config.ru +40 -0
  33. data/ext/puppet-test +0 -0
  34. data/ext/puppetlast +6 -31
  35. data/ext/puppetstoredconfigclean.rb +87 -0
  36. data/install.rb +75 -20
  37. data/lib/puppet.rb +1 -1
  38. data/lib/puppet/daemon.rb +0 -0
  39. data/lib/puppet/defaults.rb +3 -7
  40. data/lib/puppet/external/base64.rb +0 -0
  41. data/lib/puppet/external/nagios.rb +0 -0
  42. data/lib/puppet/external/nagios/base.rb +0 -0
  43. data/lib/puppet/file_serving/fileset.rb +2 -2
  44. data/lib/puppet/file_serving/metadata.rb +3 -3
  45. data/lib/puppet/indirector/facts/facter.rb +3 -2
  46. data/lib/puppet/indirector/yaml.rb +10 -1
  47. data/lib/puppet/module.rb +36 -12
  48. data/lib/puppet/network/authstore.rb +0 -0
  49. data/lib/puppet/network/client/master.rb +12 -11
  50. data/lib/puppet/network/handler/filebucket.rb +0 -0
  51. data/lib/puppet/network/handler/fileserver.rb +38 -46
  52. data/lib/puppet/network/handler/master.rb +1 -1
  53. data/lib/puppet/network/handler/report.rb +0 -0
  54. data/lib/puppet/network/handler/resource.rb +0 -0
  55. data/lib/puppet/network/handler/runner.rb +0 -0
  56. data/lib/puppet/network/http_server/rack.rb +148 -0
  57. data/lib/puppet/network/rights.rb +0 -0
  58. data/lib/puppet/network/xmlrpc/client.rb +5 -5
  59. data/lib/puppet/node.rb +5 -9
  60. data/lib/puppet/node/environment.rb +1 -17
  61. data/lib/puppet/node/facts.rb +0 -0
  62. data/lib/puppet/parameter.rb +1 -28
  63. data/lib/puppet/parser/ast.rb +6 -0
  64. data/lib/puppet/parser/ast/arithmetic_operator.rb +41 -0
  65. data/lib/puppet/parser/ast/boolean_operator.rb +48 -0
  66. data/lib/puppet/parser/ast/collexpr.rb +6 -1
  67. data/lib/puppet/parser/ast/comparison_operator.rb +37 -0
  68. data/lib/puppet/parser/ast/minus.rb +23 -0
  69. data/lib/puppet/parser/ast/nop.rb +11 -0
  70. data/lib/puppet/parser/ast/not.rb +19 -0
  71. data/lib/puppet/parser/ast/resource_override.rb +23 -16
  72. data/lib/puppet/parser/ast/resource_reference.rb +10 -6
  73. data/lib/puppet/parser/ast/vardef.rb +2 -2
  74. data/lib/puppet/parser/collector.rb +2 -1
  75. data/lib/puppet/parser/functions.rb +7 -217
  76. data/lib/puppet/parser/functions/defined.rb +27 -0
  77. data/lib/puppet/parser/functions/fail.rb +4 -0
  78. data/lib/puppet/parser/functions/file.rb +21 -0
  79. data/lib/puppet/parser/functions/fqdn_rand.rb +15 -0
  80. data/lib/puppet/parser/functions/generate.rb +35 -0
  81. data/lib/puppet/parser/functions/include.rb +26 -0
  82. data/lib/puppet/parser/functions/realize.rb +14 -0
  83. data/lib/puppet/parser/functions/search.rb +7 -0
  84. data/lib/puppet/parser/functions/sha1.rb +6 -0
  85. data/lib/puppet/parser/functions/tag.rb +6 -0
  86. data/lib/puppet/parser/functions/tagged.rb +18 -0
  87. data/lib/puppet/parser/functions/template.rb +22 -0
  88. data/lib/puppet/parser/lexer.rb +15 -5
  89. data/lib/puppet/parser/parser.rb +1073 -715
  90. data/lib/puppet/parser/parser_support.rb +18 -13
  91. data/lib/puppet/parser/resource.rb +1 -1
  92. data/lib/puppet/parser/resource/param.rb +10 -2
  93. data/lib/puppet/parser/scope.rb +63 -5
  94. data/lib/puppet/parser/templatewrapper.rb +61 -15
  95. data/lib/puppet/property.rb +7 -1
  96. data/lib/puppet/property/keyvalue.rb +96 -0
  97. data/lib/puppet/property/list.rb +78 -0
  98. data/lib/puppet/provider/confine.rb +1 -1
  99. data/lib/puppet/provider/confine/variable.rb +10 -1
  100. data/lib/puppet/provider/cron/crontab.rb +0 -0
  101. data/lib/puppet/provider/mailalias/aliases.rb +0 -0
  102. data/lib/puppet/provider/maillist/mailman.rb +0 -0
  103. data/lib/puppet/provider/mount/parsed.rb +0 -0
  104. data/lib/puppet/provider/nameservice.rb +24 -39
  105. data/lib/puppet/provider/nameservice/directoryservice.rb +12 -3
  106. data/lib/puppet/provider/nameservice/netinfo.rb +12 -2
  107. data/lib/puppet/provider/nameservice/objectadd.rb +1 -10
  108. data/lib/puppet/provider/package/appdmg.rb +1 -1
  109. data/lib/puppet/provider/package/apple.rb +0 -0
  110. data/lib/puppet/provider/package/apt.rb +14 -21
  111. data/lib/puppet/provider/package/aptitude.rb +0 -0
  112. data/lib/puppet/provider/package/blastwave.rb +2 -0
  113. data/lib/puppet/provider/package/darwinport.rb +0 -0
  114. data/lib/puppet/provider/package/dpkg.rb +33 -51
  115. data/lib/puppet/provider/package/fink.rb +1 -1
  116. data/lib/puppet/provider/package/freebsd.rb +0 -0
  117. data/lib/puppet/provider/package/gem.rb +0 -0
  118. data/lib/puppet/provider/package/hpux.rb +46 -0
  119. data/lib/puppet/provider/package/openbsd.rb +0 -0
  120. data/lib/puppet/provider/package/pkgdmg.rb +1 -1
  121. data/lib/puppet/provider/package/portage.rb +3 -1
  122. data/lib/puppet/provider/package/ports.rb +3 -3
  123. data/lib/puppet/provider/package/rpm.rb +8 -1
  124. data/lib/puppet/provider/package/rug.rb +2 -2
  125. data/lib/puppet/provider/package/sun.rb +2 -0
  126. data/lib/puppet/provider/package/sunfreeware.rb +3 -0
  127. data/lib/puppet/provider/package/yum.rb +24 -17
  128. data/lib/puppet/provider/package/yumhelper.py +92 -11
  129. data/lib/puppet/provider/parsedfile.rb +0 -0
  130. data/lib/puppet/provider/port/parsed.rb +0 -0
  131. data/lib/puppet/provider/selboolean/getsetsebool.rb +47 -0
  132. data/lib/puppet/provider/selmodule/semodule.rb +143 -0
  133. data/lib/puppet/provider/service/base.rb +0 -0
  134. data/lib/puppet/provider/service/daemontools.rb +154 -0
  135. data/lib/puppet/provider/service/debian.rb +1 -1
  136. data/lib/puppet/provider/service/freebsd.rb +2 -0
  137. data/lib/puppet/provider/service/gentoo.rb +2 -0
  138. data/lib/puppet/provider/service/init.rb +0 -0
  139. data/lib/puppet/provider/service/redhat.rb +1 -1
  140. data/lib/puppet/provider/service/runit.rb +93 -0
  141. data/lib/puppet/provider/service/smf.rb +2 -0
  142. data/lib/puppet/provider/ssh_authorized_key/parsed.rb +7 -1
  143. data/lib/puppet/provider/sshkey/parsed.rb +0 -0
  144. data/lib/puppet/provider/user/hpux.rb +30 -0
  145. data/lib/puppet/provider/user/user_role_add.rb +156 -0
  146. data/lib/puppet/provider/user/useradd.rb +23 -14
  147. data/lib/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb +17 -0
  148. data/lib/puppet/rails/database/schema.rb +0 -8
  149. data/lib/puppet/rails/resource.rb +6 -6
  150. data/lib/puppet/reference/configuration.rb +0 -7
  151. data/lib/puppet/reports.rb +0 -0
  152. data/lib/puppet/reports/rrdgraph.rb +3 -2
  153. data/lib/puppet/sslcertificates.rb +0 -0
  154. data/lib/puppet/sslcertificates/inventory.rb +3 -2
  155. data/lib/puppet/sslcertificates/support.rb +3 -0
  156. data/lib/puppet/transaction/report.rb +1 -7
  157. data/lib/puppet/transportable.rb +10 -7
  158. data/lib/puppet/type.rb +2110 -14
  159. data/lib/puppet/type/cron.rb +0 -0
  160. data/lib/puppet/type/exec.rb +0 -0
  161. data/lib/puppet/type/file.rb +12 -2
  162. data/lib/puppet/type/file/checksum.rb +4 -0
  163. data/lib/puppet/type/file/content.rb +0 -0
  164. data/lib/puppet/type/file/ensure.rb +0 -0
  165. data/lib/puppet/type/file/group.rb +30 -43
  166. data/lib/puppet/type/file/mode.rb +0 -0
  167. data/lib/puppet/type/file/owner.rb +0 -0
  168. data/lib/puppet/type/file/selcontext.rb +104 -0
  169. data/lib/puppet/type/file/source.rb +0 -0
  170. data/lib/puppet/type/file/type.rb +0 -0
  171. data/lib/puppet/type/filebucket.rb +0 -0
  172. data/lib/puppet/type/group.rb +0 -8
  173. data/lib/puppet/type/host.rb +0 -0
  174. data/lib/puppet/type/mailalias.rb +0 -0
  175. data/lib/puppet/type/maillist.rb +0 -0
  176. data/lib/puppet/type/mount.rb +0 -0
  177. data/lib/puppet/type/package.rb +2 -2
  178. data/lib/puppet/type/port.rb +0 -0
  179. data/lib/puppet/type/schedule.rb +0 -0
  180. data/lib/puppet/type/selboolean.rb +31 -0
  181. data/lib/puppet/type/selmodule.rb +54 -0
  182. data/lib/puppet/type/ssh_authorized_key.rb +3 -3
  183. data/lib/puppet/type/sshkey.rb +0 -0
  184. data/lib/puppet/type/tidy.rb +0 -0
  185. data/lib/puppet/type/user.rb +153 -137
  186. data/lib/puppet/type/yumrepo.rb +18 -2
  187. data/lib/puppet/type/zone.rb +5 -1
  188. data/lib/puppet/util.rb +7 -7
  189. data/lib/puppet/util/filetype.rb +7 -0
  190. data/lib/puppet/util/instance_loader.rb +0 -0
  191. data/lib/puppet/util/ldap/connection.rb +11 -1
  192. data/lib/puppet/util/ldap/manager.rb +1 -1
  193. data/lib/puppet/util/loadedfile.rb +0 -0
  194. data/lib/puppet/util/log.rb +42 -43
  195. data/lib/puppet/util/metric.rb +23 -9
  196. data/lib/puppet/util/posix.rb +69 -18
  197. data/lib/puppet/util/selinux.rb +139 -0
  198. data/lib/puppet/util/settings.rb +5 -7
  199. data/lib/puppet/util/user_attr.rb +21 -0
  200. data/test/certmgr/ca.rb +0 -0
  201. data/test/certmgr/certmgr.rb +0 -0
  202. data/test/certmgr/inventory.rb +0 -0
  203. data/test/certmgr/support.rb +0 -0
  204. data/test/data/providers/ssh_authorized_key/parsed/authorized_keys1 +3 -0
  205. data/test/data/snippets/append.pp +11 -0
  206. data/test/data/snippets/arithmetic_expression.pp +8 -0
  207. data/test/data/snippets/arraytrailingcomma.pp +3 -0
  208. data/test/data/snippets/emptyifelse.pp +9 -0
  209. data/test/data/snippets/funccomma.pp +5 -0
  210. data/test/data/snippets/ifexpression.rb +6 -0
  211. data/test/data/snippets/subclass_name_duplication.pp +0 -0
  212. data/test/executables/filebucket.rb +0 -0
  213. data/test/executables/puppetbin.rb +0 -0
  214. data/test/executables/puppetca.rb +0 -0
  215. data/test/executables/puppetd.rb +0 -0
  216. data/test/executables/puppetmasterd.rb +0 -0
  217. data/test/executables/puppetmodule.rb +0 -0
  218. data/test/language/ast.rb +0 -0
  219. data/test/language/ast/casestatement.rb +0 -0
  220. data/test/language/ast/resource.rb +0 -0
  221. data/test/language/ast/resource_reference.rb +0 -28
  222. data/test/language/ast/selector.rb +0 -0
  223. data/test/language/ast/variable.rb +0 -0
  224. data/test/language/functions.rb +91 -12
  225. data/test/language/parser.rb +21 -0
  226. data/test/language/resource.rb +0 -0
  227. data/test/language/scope.rb +28 -0
  228. data/test/language/snippets.rb +14 -0
  229. data/test/language/transportable.rb +0 -0
  230. data/test/lib/puppettest.rb +0 -0
  231. data/test/lib/puppettest/reporttesting.rb +0 -2
  232. data/test/lib/puppettest/runnable_test.rb +2 -0
  233. data/test/lib/puppettest/support/resources.rb +0 -0
  234. data/test/network/authconfig.rb +0 -0
  235. data/test/network/authorization.rb +0 -0
  236. data/test/network/authstore.rb +0 -0
  237. data/test/network/client/ca.rb +0 -0
  238. data/test/network/client/client.rb +0 -0
  239. data/test/network/client/dipper.rb +0 -0
  240. data/test/network/client/master.rb +2 -6
  241. data/test/network/client/resource.rb +0 -0
  242. data/test/network/client_request.rb +0 -0
  243. data/test/network/daemon.rb +0 -0
  244. data/test/network/handler/bucket.rb +0 -0
  245. data/test/network/handler/ca.rb +0 -0
  246. data/test/network/handler/fileserver.rb +8 -0
  247. data/test/network/handler/handler.rb +0 -0
  248. data/test/network/handler/master.rb +3 -1
  249. data/test/network/handler/report.rb +0 -0
  250. data/test/network/handler/resource.rb +0 -0
  251. data/test/network/handler/runner.rb +0 -0
  252. data/test/network/rights.rb +0 -0
  253. data/test/network/server/mongrel_test.rb +0 -0
  254. data/test/network/server/webrick.rb +0 -0
  255. data/test/network/xmlrpc/client.rb +0 -0
  256. data/test/network/xmlrpc/processor.rb +0 -0
  257. data/test/network/xmlrpc/server.rb +0 -0
  258. data/test/network/xmlrpc/webrick_servlet.rb +0 -0
  259. data/test/other/dsl.rb +0 -0
  260. data/test/other/events.rb +0 -0
  261. data/test/other/overrides.rb +0 -0
  262. data/test/other/provider.rb +0 -0
  263. data/test/other/puppet.rb +0 -0
  264. data/test/other/relationships.rb +0 -0
  265. data/test/other/report.rb +2 -4
  266. data/test/other/transactions.rb +1 -1
  267. data/test/puppet/conffiles.rb +0 -0
  268. data/test/puppet/defaults.rb +0 -0
  269. data/test/puppet/errortest.rb +0 -0
  270. data/test/puppet/tc_suidmanager.rb +0 -0
  271. data/test/rails/ast.rb +0 -0
  272. data/test/rails/configuration.rb +0 -0
  273. data/test/rails/host.rb +0 -0
  274. data/test/rails/rails.rb +0 -0
  275. data/test/rails/railsparameter.rb +0 -0
  276. data/test/rails/railsresource.rb +0 -0
  277. data/test/ral/manager/attributes.rb +0 -0
  278. data/test/ral/manager/instances.rb +0 -0
  279. data/test/ral/manager/manager.rb +0 -0
  280. data/test/ral/manager/provider.rb +0 -0
  281. data/test/ral/manager/type.rb +0 -0
  282. data/test/ral/providers/cron/crontab.rb +0 -0
  283. data/test/ral/providers/group.rb +14 -13
  284. data/test/ral/providers/host/netinfo.rb +0 -0
  285. data/test/ral/providers/host/parsed.rb +0 -0
  286. data/test/ral/providers/mailalias/aliases.rb +0 -0
  287. data/test/ral/providers/mount/netinfo.rb +0 -0
  288. data/test/ral/providers/nameservice.rb +0 -0
  289. data/test/ral/providers/package.rb +0 -31
  290. data/test/ral/providers/package/aptitude.rb +1 -2
  291. data/test/ral/providers/package/aptrpm.rb +2 -2
  292. data/test/ral/providers/parsedfile.rb +0 -0
  293. data/test/ral/providers/port/parsed.rb +0 -0
  294. data/test/ral/providers/provider.rb +0 -0
  295. data/test/ral/providers/service/base.rb +0 -0
  296. data/test/ral/providers/service/debian.rb +0 -0
  297. data/test/ral/providers/sshkey/parsed.rb +0 -0
  298. data/test/ral/providers/user.rb +8 -8
  299. data/test/ral/providers/user/useradd.rb +0 -0
  300. data/test/ral/type/basic.rb +0 -0
  301. data/test/ral/type/cron.rb +0 -0
  302. data/test/ral/type/exec.rb +0 -0
  303. data/test/ral/type/file.rb +0 -0
  304. data/test/ral/type/file/target.rb +0 -0
  305. data/test/ral/type/filebucket.rb +0 -0
  306. data/test/ral/type/fileignoresource.rb +0 -0
  307. data/test/ral/type/filesources.rb +1 -3
  308. data/test/ral/type/group.rb +0 -0
  309. data/test/ral/type/host.rb +0 -0
  310. data/test/ral/type/mailalias.rb +1 -2
  311. data/test/ral/type/parameter.rb +0 -0
  312. data/test/ral/type/port.rb +0 -0
  313. data/test/ral/type/property.rb +0 -0
  314. data/test/ral/type/resources.rb +0 -0
  315. data/test/ral/type/service.rb +0 -0
  316. data/test/ral/type/sshkey.rb +0 -0
  317. data/test/ral/type/tidy.rb +0 -0
  318. data/test/ral/type/user.rb +0 -50
  319. data/test/ral/type/yumrepo.rb +7 -1
  320. data/test/ral/type/zone.rb +0 -0
  321. data/test/test +0 -0
  322. data/test/util/autoload.rb +0 -0
  323. data/test/util/classgen.rb +0 -0
  324. data/test/util/execution.rb +0 -0
  325. data/test/util/features.rb +0 -0
  326. data/test/util/fileparsing.rb +0 -0
  327. data/test/util/filetype.rb +0 -0
  328. data/test/util/inifile.rb +0 -0
  329. data/test/util/instance_loader.rb +0 -0
  330. data/test/util/log.rb +0 -59
  331. data/test/util/metrics.rb +0 -0
  332. data/test/util/package.rb +0 -0
  333. data/test/util/pidlock.rb +0 -0
  334. data/test/util/settings.rb +0 -0
  335. data/test/util/storage.rb +0 -0
  336. data/test/util/subclass_loader.rb +0 -0
  337. data/test/util/utiltest.rb +0 -0
  338. metadata +54 -19
  339. data/lib/puppet/metatype/attributes.rb +0 -685
  340. data/lib/puppet/metatype/closure.rb +0 -49
  341. data/lib/puppet/metatype/container.rb +0 -50
  342. data/lib/puppet/metatype/evaluation.rb +0 -163
  343. data/lib/puppet/metatype/instances.rb +0 -305
  344. data/lib/puppet/metatype/metaparams.rb +0 -423
  345. data/lib/puppet/metatype/providers.rb +0 -247
  346. data/lib/puppet/metatype/relationships.rb +0 -115
  347. data/lib/puppet/metatype/schedules.rb +0 -33
  348. data/lib/puppet/metatype/tags.rb +0 -38
  349. data/lib/puppet/util/plist.rb +0 -23
  350. data/lib/puppet/util/plist/generator.rb +0 -225
  351. data/lib/puppet/util/plist/parser.rb +0 -226
  352. data/test/ral/providers/package/apt.rb +0 -169
  353. data/test/ral/providers/package/dpkg.rb +0 -64
  354. data/test/util/posixtest.rb +0 -169
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -292,11 +292,9 @@ class TestFileSources < Test::Unit::TestCase
292
292
  # Lastly, make sure we return an empty array when no sources are there
293
293
  obj[:source] = [nosource, tempfile()]
294
294
 
295
- assert_nothing_raised do
295
+ assert_raise(Puppet::Error) do
296
296
  result, sourced = obj.sourcerecurse(true)
297
297
  end
298
- assert_equal([], sourced, "Did not get correct list of sourced objects")
299
- assert_equal([], result, "Sourcerecurse failed when all sources are missing")
300
298
  end
301
299
 
302
300
  def test_simplelocalsource
File without changes
File without changes
@@ -34,12 +34,11 @@ class TestMailAlias < Test::Unit::TestCase
34
34
  # This isn't much of a test, but then, it's not much of a type.
35
35
  def test_recipient_arrays
36
36
  resource = @type.create(:name => "luke", :recipient => "yay", :target => tempfile)
37
- resource.provider.expects(:recipient).returns([:absent])
38
37
  values = nil
39
38
  assert_nothing_raised("Could not retrieve mailalias") do
40
39
  values = resource.retrieve.inject({}) { |hash, a| hash[a[0].name] = a[1]; hash }
41
40
  end
42
- assert_equal([:absent], values[:recipient])
41
+ assert_equal(:absent, values[:recipient])
43
42
  resource.property(:recipient).expects(:set).with(%w{yay})
44
43
  assert_nothing_raised("Could not sync mailalias") do
45
44
  resource.property(:recipient).sync
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -164,56 +164,6 @@ class TestUser < Test::Unit::TestCase
164
164
  assert_equal(old, user.provider.shell, "Shell was not reverted")
165
165
  end
166
166
 
167
- def attrtest_gid(user)
168
- obj = nil
169
- old = user.provider.gid
170
- comp = mk_catalog("gidtest", user)
171
-
172
- user.retrieve
173
-
174
- user[:gid] = old
175
-
176
- trans = assert_events([], comp, "user")
177
-
178
- newgid = %w{nogroup nobody staff users daemon}.find { |gid|
179
- begin
180
- group = Etc.getgrnam(gid)
181
- rescue ArgumentError => detail
182
- next
183
- end
184
- old != group.gid and group.gid > 0
185
- }
186
-
187
- unless newgid
188
- $stderr.puts "Cannot find alternate group; skipping gid test"
189
- return
190
- end
191
-
192
- # first test by name
193
- assert_nothing_raised("Failed to specify group by name") {
194
- user[:gid] = newgid
195
- }
196
-
197
- trans = assert_events([:user_changed], comp, "user")
198
-
199
- # then by id
200
- newgid = Etc.getgrnam(newgid).gid
201
-
202
- assert_nothing_raised("Failed to specify group by id for %s" % newgid) {
203
- user[:gid] = newgid
204
- }
205
-
206
- user.retrieve
207
-
208
- assert_events([], comp, "user")
209
-
210
- assert_equal(newgid, user.provider.gid, "GID was not changed")
211
-
212
- assert_rollback_events(trans, [:user_changed], "user")
213
-
214
- assert_equal(old, user.provider.gid, "GID was not reverted")
215
- end
216
-
217
167
  def attrtest_uid(user)
218
168
  obj = nil
219
169
  comp = mk_catalog("uidtest", user)
@@ -47,7 +47,10 @@ class TestYumRepo < Test::Unit::TestCase
47
47
  :enabled => "1",
48
48
  :gpgcheck => "1",
49
49
  :includepkgs => "absent",
50
- :gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora"
50
+ :gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora",
51
+ :proxy => "http://proxy.example.com:80/",
52
+ :proxy_username => "username",
53
+ :proxy_password => "password"
51
54
  }
52
55
  repo = make_repo("base", values)
53
56
 
@@ -101,6 +104,9 @@ baseurl=http://example.com/yum/$releasever/$basearch/os/
101
104
  enabled=1
102
105
  gpgcheck=1
103
106
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
107
+ proxy=http://proxy.example.com:80/
108
+ proxy_username=username
109
+ proxy_password=password
104
110
  EOF
105
111
 
106
112
  end
File without changes
data/test/test CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -114,44 +114,6 @@ class TestLog < Test::Unit::TestCase
114
114
  assert(FileTest.file?(file))
115
115
  end
116
116
 
117
- def test_logtags
118
- path = tempfile
119
- File.open(path, "w") { |f| f.puts "yayness" }
120
-
121
- file = Puppet.type(:file).create(
122
- :path => path,
123
- :check => [:owner, :group, :mode, :checksum],
124
- :ensure => :file
125
- )
126
- file.tags = %w{this is a test}
127
-
128
- property = file.property(:ensure)
129
- assert(property, "Did not get property")
130
- log = nil
131
- assert_nothing_raised {
132
- log = Puppet::Util::Log.new(
133
- :level => :info,
134
- :source => property,
135
- :message => "A test message"
136
- )
137
- }
138
-
139
- # Now yaml and de-yaml it, and test again
140
- yamllog = YAML.load(YAML.dump(log))
141
-
142
- {:log => log, :yaml => yamllog}.each do |type, msg|
143
- assert(msg.tags, "Got no tags")
144
-
145
- msg.tags.each do |tag|
146
- assert(msg.tagged?(tag), "Was not tagged with %s" % tag)
147
- end
148
-
149
- assert_equal(msg.tags, property.tags, "Tags were not equal")
150
- assert_equal(msg.source, property.path, "Source was not set correctly")
151
- end
152
-
153
- end
154
-
155
117
  # Verify that we can pass strings that match printf args
156
118
  def test_percentlogs
157
119
  Puppet::Util::Log.newdestination :syslog
@@ -182,27 +144,6 @@ class TestLog < Test::Unit::TestCase
182
144
  assert_instance_of(String, msg.source)
183
145
  end
184
146
 
185
- # Verify that loglevel behaves as one expects
186
- def test_loglevel
187
- path = tempfile()
188
- file = Puppet.type(:file).create(
189
- :path => path,
190
- :ensure => "file"
191
- )
192
-
193
- assert_nothing_raised {
194
- assert_equal(:notice, file[:loglevel])
195
- }
196
-
197
- assert_nothing_raised {
198
- file[:loglevel] = "warning"
199
- }
200
-
201
- assert_nothing_raised {
202
- assert_equal(:warning, file[:loglevel])
203
- }
204
- end
205
-
206
147
  def test_destination_matching
207
148
  dest = nil
208
149
  assert_nothing_raised {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.5
4
+ version: 0.24.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Kanies
@@ -9,11 +9,12 @@ autorequire: puppet
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-24 00:00:00 +02:00
12
+ date: 2008-10-23 00:00:00 +02:00
13
13
  default_executable: puppet
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: facter
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -44,12 +45,15 @@ files:
44
45
  - CHANGELOG
45
46
  - lib/puppet.rb
46
47
  - lib/puppet/parameter.rb
48
+ - lib/puppet/property/keyvalue.rb
49
+ - lib/puppet/property/list.rb
47
50
  - lib/puppet/network.rb
48
51
  - lib/puppet/node/catalog.rb
49
52
  - lib/puppet/node/environment.rb
50
53
  - lib/puppet/node/facts.rb
51
54
  - lib/puppet/reports.rb
52
55
  - lib/puppet/type/tidy.rb
56
+ - lib/puppet/type/selmodule.rb
53
57
  - lib/puppet/type/nagios_servicegroup.rb
54
58
  - lib/puppet/type/zone.rb
55
59
  - lib/puppet/type/nagios_serviceescalation.rb
@@ -70,6 +74,7 @@ files:
70
74
  - lib/puppet/type/component.rb
71
75
  - lib/puppet/type/user.rb
72
76
  - lib/puppet/type/package.rb
77
+ - lib/puppet/type/selboolean.rb
73
78
  - lib/puppet/type/schedule.rb
74
79
  - lib/puppet/type/sshkey.rb
75
80
  - lib/puppet/type/nagios_hostextinfo.rb
@@ -84,6 +89,7 @@ files:
84
89
  - lib/puppet/type/file/source.rb
85
90
  - lib/puppet/type/file/owner.rb
86
91
  - lib/puppet/type/file/content.rb
92
+ - lib/puppet/type/file/selcontext.rb
87
93
  - lib/puppet/type/cron.rb
88
94
  - lib/puppet/type/exec.rb
89
95
  - lib/puppet/type/ssh_authorized_key.rb
@@ -131,6 +137,7 @@ files:
131
137
  - lib/puppet/provider/package/ports.rb
132
138
  - lib/puppet/provider/package/yum.rb
133
139
  - lib/puppet/provider/package/sunfreeware.rb
140
+ - lib/puppet/provider/package/hpux.rb
134
141
  - lib/puppet/provider/package/pkgdmg.rb
135
142
  - lib/puppet/provider/package/up2date.rb
136
143
  - lib/puppet/provider/package/appdmg.rb
@@ -162,14 +169,19 @@ files:
162
169
  - lib/puppet/provider/confine/false.rb
163
170
  - lib/puppet/provider/confine/variable.rb
164
171
  - lib/puppet/provider/service/base.rb
172
+ - lib/puppet/provider/service/runit.rb
165
173
  - lib/puppet/provider/service/smf.rb
166
174
  - lib/puppet/provider/service/redhat.rb
167
175
  - lib/puppet/provider/service/debian.rb
168
176
  - lib/puppet/provider/service/gentoo.rb
177
+ - lib/puppet/provider/service/daemontools.rb
169
178
  - lib/puppet/provider/service/freebsd.rb
170
179
  - lib/puppet/provider/service/init.rb
180
+ - lib/puppet/provider/selmodule/semodule.rb
171
181
  - lib/puppet/provider/mailalias/aliases.rb
172
182
  - lib/puppet/provider/user/useradd.rb
183
+ - lib/puppet/provider/user/hpux.rb
184
+ - lib/puppet/provider/user/user_role_add.rb
173
185
  - lib/puppet/provider/user/ldap.rb
174
186
  - lib/puppet/provider/user/directoryservice.rb
175
187
  - lib/puppet/provider/user/pw.rb
@@ -183,6 +195,7 @@ files:
183
195
  - lib/puppet/provider/group/pw.rb
184
196
  - lib/puppet/provider/group/netinfo.rb
185
197
  - lib/puppet/provider/parsedfile.rb
198
+ - lib/puppet/provider/selboolean/getsetsebool.rb
186
199
  - lib/puppet/provider/cron/crontab.rb
187
200
  - lib/puppet/provider/mount.rb
188
201
  - lib/puppet/provider/confine_collection.rb
@@ -193,6 +206,7 @@ files:
193
206
  - lib/puppet/provider/nameservice/objectadd.rb
194
207
  - lib/puppet/util.rb
195
208
  - lib/puppet/network/rest_controller.rb
209
+ - lib/puppet/network/http_server/rack.rb
196
210
  - lib/puppet/network/http_server/webrick.rb
197
211
  - lib/puppet/network/http_server/mongrel.rb
198
212
  - lib/puppet/network/handler.rb
@@ -240,17 +254,7 @@ files:
240
254
  - lib/puppet/sslcertificates/certificate.rb
241
255
  - lib/puppet/indirector.rb
242
256
  - lib/puppet/checksum.rb
243
- - lib/puppet/metatype/attributes.rb
244
- - lib/puppet/metatype/relationships.rb
245
- - lib/puppet/metatype/metaparams.rb
246
- - lib/puppet/metatype/providers.rb
247
257
  - lib/puppet/metatype/manager.rb
248
- - lib/puppet/metatype/closure.rb
249
- - lib/puppet/metatype/tags.rb
250
- - lib/puppet/metatype/container.rb
251
- - lib/puppet/metatype/evaluation.rb
252
- - lib/puppet/metatype/schedules.rb
253
- - lib/puppet/metatype/instances.rb
254
258
  - lib/puppet/config_stores/rest.rb
255
259
  - lib/puppet/executables/client/certhandler.rb
256
260
  - lib/puppet/property.rb
@@ -274,6 +278,7 @@ files:
274
278
  - lib/puppet/util/autoload.rb
275
279
  - lib/puppet/util/warnings.rb
276
280
  - lib/puppet/util/package.rb
281
+ - lib/puppet/util/selinux.rb
277
282
  - lib/puppet/util/diff.rb
278
283
  - lib/puppet/util/loadedfile.rb
279
284
  - lib/puppet/util/resource_template.rb
@@ -286,7 +291,6 @@ files:
286
291
  - lib/puppet/util/ldap/connection.rb
287
292
  - lib/puppet/util/ldap/generator.rb
288
293
  - lib/puppet/util/nagios_maker.rb
289
- - lib/puppet/util/plist.rb
290
294
  - lib/puppet/util/metric.rb
291
295
  - lib/puppet/util/fileparsing.rb
292
296
  - lib/puppet/util/inifile.rb
@@ -295,8 +299,7 @@ files:
295
299
  - lib/puppet/util/provider_features.rb
296
300
  - lib/puppet/util/uri_helper.rb
297
301
  - lib/puppet/util/rails/collection_merger.rb
298
- - lib/puppet/util/plist/parser.rb
299
- - lib/puppet/util/plist/generator.rb
302
+ - lib/puppet/util/user_attr.rb
300
303
  - lib/puppet/util/constant_inflector.rb
301
304
  - lib/puppet/util/tagging.rb
302
305
  - lib/puppet/util/execution.rb
@@ -353,6 +356,7 @@ files:
353
356
  - lib/puppet/rails/resource_tag.rb
354
357
  - lib/puppet/rails/resource.rb
355
358
  - lib/puppet/rails/database/schema.rb
359
+ - lib/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb
356
360
  - lib/puppet/rails/database/001_add_created_at_to_all_tables.rb
357
361
  - lib/puppet/rails/fact_name.rb
358
362
  - lib/puppet/rails/source_file.rb
@@ -377,6 +381,18 @@ files:
377
381
  - lib/puppet/parser/interpreter.rb
378
382
  - lib/puppet/parser/lexer.rb
379
383
  - lib/puppet/parser/scope.rb
384
+ - lib/puppet/parser/functions/generate.rb
385
+ - lib/puppet/parser/functions/fqdn_rand.rb
386
+ - lib/puppet/parser/functions/tag.rb
387
+ - lib/puppet/parser/functions/file.rb
388
+ - lib/puppet/parser/functions/tagged.rb
389
+ - lib/puppet/parser/functions/defined.rb
390
+ - lib/puppet/parser/functions/include.rb
391
+ - lib/puppet/parser/functions/template.rb
392
+ - lib/puppet/parser/functions/fail.rb
393
+ - lib/puppet/parser/functions/search.rb
394
+ - lib/puppet/parser/functions/sha1.rb
395
+ - lib/puppet/parser/functions/realize.rb
380
396
  - lib/puppet/parser/parser_support.rb
381
397
  - lib/puppet/parser/parser.rb
382
398
  - lib/puppet/parser/resource/reference.rb
@@ -396,12 +412,18 @@ files:
396
412
  - lib/puppet/parser/ast/branch.rb
397
413
  - lib/puppet/parser/ast/ifstatement.rb
398
414
  - lib/puppet/parser/ast/selector.rb
415
+ - lib/puppet/parser/ast/nop.rb
416
+ - lib/puppet/parser/ast/comparison_operator.rb
399
417
  - lib/puppet/parser/ast/casestatement.rb
418
+ - lib/puppet/parser/ast/not.rb
419
+ - lib/puppet/parser/ast/boolean_operator.rb
400
420
  - lib/puppet/parser/ast/resource.rb
401
421
  - lib/puppet/parser/ast/astarray.rb
402
422
  - lib/puppet/parser/ast/collexpr.rb
423
+ - lib/puppet/parser/ast/minus.rb
403
424
  - lib/puppet/parser/ast/caseopt.rb
404
425
  - lib/puppet/parser/ast/hostclass.rb
426
+ - lib/puppet/parser/ast/arithmetic_operator.rb
405
427
  - lib/puppet/parser/ast/resource_defaults.rb
406
428
  - lib/puppet/parser/ast/resource_reference.rb
407
429
  - lib/puppet/parser/ast/resource_override.rb
@@ -415,6 +437,7 @@ files:
415
437
  - test/data/providers/ssh_authorized_key
416
438
  - test/data/providers/ssh_authorized_key/parsed
417
439
  - test/data/providers/ssh_authorized_key/parsed/authorized_keys
440
+ - test/data/providers/ssh_authorized_key/parsed/authorized_keys1
418
441
  - test/data/providers/cron
419
442
  - test/data/providers/cron/crontab.envNcomment
420
443
  - test/data/providers/cron/crontab.multirecords
@@ -461,6 +484,7 @@ files:
461
484
  - test/data/failers/badtypeparam
462
485
  - test/data/failers/badclassnoparam
463
486
  - test/data/snippets
487
+ - test/data/snippets/ifexpression.rb
464
488
  - test/data/snippets/selectorvalues.pp
465
489
  - test/data/snippets/subclass_name_duplication.pp
466
490
  - test/data/snippets/componentmetaparams.pp
@@ -470,11 +494,14 @@ files:
470
494
  - test/data/snippets/deepclassheirarchy.pp
471
495
  - test/data/snippets/componentrequire.pp
472
496
  - test/data/snippets/filecreate
497
+ - test/data/snippets/funccomma.pp
473
498
  - test/data/snippets/argumentdefaults
474
499
  - test/data/snippets/singlequote.pp
475
500
  - test/data/snippets/fqdefinition.pp
476
501
  - test/data/snippets/aliastest.pp
502
+ - test/data/snippets/append.pp
477
503
  - test/data/snippets/singleary.pp
504
+ - test/data/snippets/emptyifelse.pp
478
505
  - test/data/snippets/classpathtest
479
506
  - test/data/snippets/simpleselector
480
507
  - test/data/snippets/fqparents.pp
@@ -483,6 +510,7 @@ files:
483
510
  - test/data/snippets/collection_within_virtual_definitions.pp
484
511
  - test/data/snippets/emptyexec.pp
485
512
  - test/data/snippets/namevartest
513
+ - test/data/snippets/arithmetic_expression.pp
486
514
  - test/data/snippets/simpledefaults
487
515
  - test/data/snippets/multipleinstances
488
516
  - test/data/snippets/collection.pp
@@ -490,6 +518,7 @@ files:
490
518
  - test/data/snippets/implicititeration
491
519
  - test/data/snippets/virtualresources.pp
492
520
  - test/data/snippets/classheirarchy.pp
521
+ - test/data/snippets/arraytrailingcomma.pp
493
522
  - test/data/snippets/tagged.pp
494
523
  - test/data/snippets/singleselector.pp
495
524
  - test/data/snippets/defineoverrides.pp
@@ -500,8 +529,6 @@ files:
500
529
  - test/ral/providers/port
501
530
  - test/ral/providers/port/parsed.rb
502
531
  - test/ral/providers/package
503
- - test/ral/providers/package/apt.rb
504
- - test/ral/providers/package/dpkg.rb
505
532
  - test/ral/providers/package/aptitude.rb
506
533
  - test/ral/providers/package/aptrpm.rb
507
534
  - test/ral/providers/host
@@ -636,7 +663,6 @@ files:
636
663
  - test/util/classgen.rb
637
664
  - test/util/instance_loader.rb
638
665
  - test/util/log.rb
639
- - test/util/posixtest.rb
640
666
  - test/util/autoload.rb
641
667
  - test/util/package.rb
642
668
  - test/util/subclass_loader.rb
@@ -688,6 +714,11 @@ files:
688
714
  - bin/puppetd
689
715
  - bin/ralsh
690
716
  - ext/puppet-test
717
+ - ext/puppetstoredconfigclean.rb
718
+ - ext/passenger
719
+ - ext/passenger/config.ru
720
+ - ext/passenger/README
721
+ - ext/passenger/apache2.conf
691
722
  - ext/nagios
692
723
  - ext/nagios/check_puppet.rb
693
724
  - ext/autotest
@@ -756,6 +787,10 @@ files:
756
787
  - examples/etc/puppet/namespaceauth.conf
757
788
  - examples/etc/puppet/puppet.conf
758
789
  - examples/etc/puppet/fileserver.conf
790
+ - conf/osx
791
+ - conf/osx/createpackage.sh
792
+ - conf/osx/PackageInfo.plist
793
+ - conf/osx/preflight
759
794
  - conf/suse
760
795
  - conf/suse/server.init
761
796
  - conf/suse/client.init
@@ -853,7 +888,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
853
888
  requirements: []
854
889
 
855
890
  rubyforge_project: puppet
856
- rubygems_version: 1.0.1
891
+ rubygems_version: 1.2.0
857
892
  signing_key:
858
893
  specification_version: 2
859
894
  summary: System Automation and Configuration Management Software