puppet 2.6.0 → 2.6.1

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 (246) hide show
  1. data/CHANGELOG +123 -0
  2. data/conf/redhat/puppet.spec +8 -2
  3. data/conf/solaris/smf/svc-puppetd +1 -1
  4. data/conf/solaris/smf/svc-puppetmasterd +1 -1
  5. data/conf/suse/client.init +4 -4
  6. data/conf/suse/fileserver.conf +12 -0
  7. data/conf/suse/logrotate +10 -0
  8. data/conf/suse/puppet.conf +25 -0
  9. data/conf/suse/puppet.spec +114 -49
  10. data/conf/suse/ruby-env.patch +17 -0
  11. data/conf/suse/server.init +4 -4
  12. data/ext/logcheck/puppet +23 -23
  13. data/ext/puppet-load.rb +357 -0
  14. data/ext/puppetstoredconfigclean.rb +3 -3
  15. data/ext/rack/files/config.ru +3 -5
  16. data/ext/vim/syntax/puppet.vim +6 -5
  17. data/install.rb +12 -11
  18. data/lib/puppet.rb +1 -1
  19. data/lib/puppet/agent.rb +3 -1
  20. data/lib/puppet/application.rb +2 -3
  21. data/lib/puppet/application/agent.rb +4 -0
  22. data/lib/puppet/application/apply.rb +14 -6
  23. data/lib/puppet/application/describe.rb +1 -1
  24. data/lib/puppet/application/doc.rb +2 -36
  25. data/lib/puppet/application/master.rb +0 -3
  26. data/lib/puppet/application/queue.rb +1 -0
  27. data/lib/puppet/configurer.rb +4 -0
  28. data/lib/puppet/daemon.rb +1 -1
  29. data/lib/puppet/defaults.rb +38 -44
  30. data/lib/puppet/file_serving/indirection_hooks.rb +2 -2
  31. data/lib/puppet/indirector/facts/memory.rb +1 -1
  32. data/lib/puppet/indirector/node/exec.rb +1 -1
  33. data/lib/puppet/indirector/node/ldap.rb +9 -53
  34. data/lib/puppet/indirector/node/memory.rb +1 -1
  35. data/lib/puppet/indirector/yaml.rb +6 -9
  36. data/lib/puppet/network/format_handler.rb +6 -0
  37. data/lib/puppet/network/formats.rb +4 -4
  38. data/lib/puppet/network/http/handler.rb +1 -1
  39. data/lib/puppet/network/http/rack.rb +3 -0
  40. data/lib/puppet/network/http/rack/rest.rb +1 -1
  41. data/lib/puppet/network/rest_authconfig.rb +6 -3
  42. data/lib/puppet/node/environment.rb +15 -5
  43. data/lib/puppet/parameter/value_collection.rb +3 -3
  44. data/lib/puppet/parser/ast/function.rb +0 -1
  45. data/lib/puppet/parser/ast/leaf.rb +1 -1
  46. data/lib/puppet/parser/ast/resource.rb +4 -3
  47. data/lib/puppet/parser/ast/resource_reference.rb +9 -2
  48. data/lib/puppet/parser/compiler.rb +12 -14
  49. data/lib/puppet/parser/files.rb +1 -1
  50. data/lib/puppet/parser/functions.rb +2 -2
  51. data/lib/puppet/parser/functions/defined.rb +1 -1
  52. data/lib/puppet/parser/functions/extlookup.rb +157 -0
  53. data/lib/puppet/parser/functions/file.rb +1 -1
  54. data/lib/puppet/parser/functions/inline_template.rb +6 -5
  55. data/lib/puppet/parser/functions/md5.rb +5 -0
  56. data/lib/puppet/parser/functions/realize.rb +1 -1
  57. data/lib/puppet/parser/functions/regsubst.rb +19 -19
  58. data/lib/puppet/parser/functions/require.rb +2 -3
  59. data/lib/puppet/parser/functions/split.rb +1 -1
  60. data/lib/puppet/parser/functions/sprintf.rb +1 -1
  61. data/lib/puppet/parser/functions/template.rb +4 -2
  62. data/lib/puppet/parser/functions/versioncmp.rb +12 -12
  63. data/lib/puppet/parser/lexer.rb +13 -14
  64. data/lib/puppet/parser/resource.rb +2 -7
  65. data/lib/puppet/parser/resource/param.rb +1 -1
  66. data/lib/puppet/parser/scope.rb +35 -0
  67. data/lib/puppet/parser/type_loader.rb +1 -1
  68. data/lib/puppet/property.rb +5 -5
  69. data/lib/puppet/provider.rb +3 -3
  70. data/lib/puppet/provider/group/groupadd.rb +1 -1
  71. data/lib/puppet/provider/group/ldap.rb +3 -3
  72. data/lib/puppet/provider/group/pw.rb +1 -1
  73. data/lib/puppet/provider/package/apple.rb +1 -1
  74. data/lib/puppet/provider/package/apt.rb +5 -1
  75. data/lib/puppet/provider/package/aptitude.rb +1 -1
  76. data/lib/puppet/provider/package/aptrpm.rb +1 -1
  77. data/lib/puppet/provider/package/blastwave.rb +1 -1
  78. data/lib/puppet/provider/package/dpkg.rb +2 -2
  79. data/lib/puppet/provider/package/fink.rb +1 -1
  80. data/lib/puppet/provider/package/gem.rb +1 -1
  81. data/lib/puppet/provider/package/openbsd.rb +1 -1
  82. data/lib/puppet/provider/package/rpm.rb +1 -1
  83. data/lib/puppet/provider/package/rug.rb +1 -1
  84. data/lib/puppet/provider/package/sunfreeware.rb +2 -2
  85. data/lib/puppet/provider/package/up2date.rb +1 -1
  86. data/lib/puppet/provider/package/urpmi.rb +1 -1
  87. data/lib/puppet/provider/package/yum.rb +1 -1
  88. data/lib/puppet/provider/package/zypper.rb +1 -1
  89. data/lib/puppet/provider/service/base.rb +1 -1
  90. data/lib/puppet/provider/service/bsd.rb +2 -2
  91. data/lib/puppet/provider/service/debian.rb +2 -2
  92. data/lib/puppet/provider/service/gentoo.rb +2 -2
  93. data/lib/puppet/provider/service/init.rb +2 -2
  94. data/lib/puppet/provider/service/redhat.rb +2 -2
  95. data/lib/puppet/provider/user/ldap.rb +3 -3
  96. data/lib/puppet/provider/user/pw.rb +1 -1
  97. data/lib/puppet/provider/user/user_role_add.rb +1 -1
  98. data/lib/puppet/provider/user/useradd.rb +1 -1
  99. data/lib/puppet/rails/host.rb +1 -0
  100. data/lib/puppet/reference/configuration.rb +37 -34
  101. data/lib/puppet/reference/indirection.rb +3 -4
  102. data/lib/puppet/reference/metaparameter.rb +0 -8
  103. data/lib/puppet/reference/network.rb +6 -4
  104. data/lib/puppet/reference/providers.rb +4 -4
  105. data/lib/puppet/reference/report.rb +5 -6
  106. data/lib/puppet/reference/type.rb +14 -14
  107. data/lib/puppet/reports/http.rb +1 -1
  108. data/lib/puppet/reports/rrdgraph.rb +8 -9
  109. data/lib/puppet/reports/store.rb +2 -2
  110. data/lib/puppet/reports/tagmail.rb +12 -13
  111. data/lib/puppet/resource.rb +15 -115
  112. data/lib/puppet/resource/catalog.rb +1 -1
  113. data/lib/puppet/resource/type.rb +26 -3
  114. data/lib/puppet/resource/type_collection.rb +3 -6
  115. data/lib/puppet/simple_graph.rb +4 -5
  116. data/lib/puppet/transaction/resource_harness.rb +1 -1
  117. data/lib/puppet/type.rb +100 -92
  118. data/lib/puppet/type/augeas.rb +44 -45
  119. data/lib/puppet/type/computer.rb +2 -2
  120. data/lib/puppet/type/cron.rb +29 -29
  121. data/lib/puppet/type/exec.rb +66 -67
  122. data/lib/puppet/type/file.rb +25 -25
  123. data/lib/puppet/type/file/content.rb +7 -1
  124. data/lib/puppet/type/file/ensure.rb +13 -13
  125. data/lib/puppet/type/file/mode.rb +6 -6
  126. data/lib/puppet/type/file/selcontext.rb +5 -5
  127. data/lib/puppet/type/file/source.rb +36 -26
  128. data/lib/puppet/type/filebucket.rb +5 -6
  129. data/lib/puppet/type/group.rb +1 -2
  130. data/lib/puppet/type/host.rb +3 -6
  131. data/lib/puppet/type/k5login.rb +3 -3
  132. data/lib/puppet/type/macauthorization.rb +1 -2
  133. data/lib/puppet/type/mailalias.rb +0 -1
  134. data/lib/puppet/type/maillist.rb +0 -1
  135. data/lib/puppet/type/mcx.rb +9 -9
  136. data/lib/puppet/type/mount.rb +9 -10
  137. data/lib/puppet/type/notify.rb +0 -1
  138. data/lib/puppet/type/package.rb +34 -36
  139. data/lib/puppet/type/resources.rb +1 -5
  140. data/lib/puppet/type/schedule.rb +9 -12
  141. data/lib/puppet/type/selboolean.rb +2 -7
  142. data/lib/puppet/type/selmodule.rb +3 -4
  143. data/lib/puppet/type/service.rb +9 -9
  144. data/lib/puppet/type/ssh_authorized_key.rb +2 -3
  145. data/lib/puppet/type/sshkey.rb +4 -7
  146. data/lib/puppet/type/stage.rb +5 -4
  147. data/lib/puppet/type/tidy.rb +3 -3
  148. data/lib/puppet/type/user.rb +1 -2
  149. data/lib/puppet/type/whit.rb +7 -0
  150. data/lib/puppet/type/yumrepo.rb +16 -3
  151. data/lib/puppet/type/zfs.rb +1 -2
  152. data/lib/puppet/type/zone.rb +28 -28
  153. data/lib/puppet/type/zpool.rb +10 -5
  154. data/lib/puppet/util/autoload.rb +17 -5
  155. data/lib/puppet/util/cacher.rb +15 -10
  156. data/lib/puppet/util/command_line/puppetdoc +5 -5
  157. data/lib/puppet/util/command_line/puppetrun +0 -2
  158. data/lib/puppet/util/command_line/ralsh +13 -13
  159. data/lib/puppet/util/docs.rb +5 -12
  160. data/lib/puppet/util/monkey_patches.rb +5 -2
  161. data/lib/puppet/util/nagios_maker.rb +4 -5
  162. data/lib/puppet/util/provider_features.rb +2 -2
  163. data/lib/puppet/util/rdoc.rb +1 -1
  164. data/lib/puppet/util/rdoc/parser.rb +5 -3
  165. data/lib/puppet/util/reference.rb +3 -52
  166. data/man/man5/puppet.conf.5 +2072 -1526
  167. data/man/man8/filebucket.8 +104 -106
  168. data/man/man8/pi.8 +14 -47
  169. data/man/man8/puppet.8 +8 -9
  170. data/man/man8/puppetca.8 +168 -129
  171. data/man/man8/puppetd.8 +282 -226
  172. data/man/man8/puppetdoc.8 +103 -103
  173. data/man/man8/puppetmasterd.8 +51 -71
  174. data/man/man8/puppetqd.8 +18 -53
  175. data/man/man8/puppetrun.8 +163 -143
  176. data/man/man8/ralsh.8 +77 -114
  177. data/spec/integration/indirector/bucket_file/rest_spec.rb +1 -0
  178. data/spec/integration/indirector/certificate/rest_spec.rb +1 -0
  179. data/spec/integration/indirector/certificate_request/rest_spec.rb +1 -0
  180. data/spec/integration/indirector/certificate_revocation_list/rest_spec.rb +1 -0
  181. data/spec/integration/indirector/report/rest_spec.rb +1 -0
  182. data/spec/integration/indirector/rest_spec.rb +1 -0
  183. data/spec/integration/network/server/webrick_spec.rb +1 -0
  184. data/spec/integration/parser/compiler_spec.rb +43 -0
  185. data/spec/integration/provider/mailalias/aliases_spec.rb +5 -5
  186. data/spec/integration/ssl/certificate_authority_spec.rb +1 -0
  187. data/spec/integration/ssl/certificate_request_spec.rb +1 -0
  188. data/spec/integration/ssl/certificate_revocation_list_spec.rb +1 -0
  189. data/spec/integration/ssl/host_spec.rb +1 -0
  190. data/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb +0 -1
  191. data/spec/monkey_patches/publicize_methods.rb +11 -0
  192. data/spec/shared_behaviours/file_serving.rb +12 -1
  193. data/spec/spec_helper.rb +6 -25
  194. data/spec/unit/application/apply_spec.rb +22 -4
  195. data/spec/unit/application/cert_spec.rb +1 -1
  196. data/spec/unit/application/doc_spec.rb +0 -19
  197. data/spec/unit/application/master_spec.rb +1 -1
  198. data/spec/unit/application_spec.rb +2 -12
  199. data/spec/unit/indirector/node/ldap_spec.rb +19 -21
  200. data/spec/unit/indirector/yaml_spec.rb +18 -6
  201. data/spec/unit/network/http/rack/rest_spec.rb +3 -3
  202. data/spec/unit/network/http/webrick/rest_spec.rb +1 -0
  203. data/spec/unit/node/environment_spec.rb +32 -3
  204. data/spec/unit/node/facts_spec.rb +13 -2
  205. data/spec/unit/parameter/value_collection_spec.rb +2 -2
  206. data/spec/unit/parser/ast/leaf_spec.rb +4 -0
  207. data/spec/unit/parser/ast/resource_reference_spec.rb +0 -5
  208. data/spec/unit/parser/ast/resource_spec.rb +7 -0
  209. data/spec/unit/parser/compiler_spec.rb +12 -1
  210. data/spec/unit/parser/files_spec.rb +3 -3
  211. data/spec/unit/parser/functions/extlookup_spec.rb +95 -0
  212. data/spec/unit/parser/functions/include_spec.rb +33 -0
  213. data/spec/unit/parser/functions/require_spec.rb +1 -1
  214. data/spec/unit/parser/functions/tag_spec.rb +1 -0
  215. data/spec/unit/parser/lexer_spec.rb +10 -1
  216. data/spec/unit/parser/resource_spec.rb +3 -9
  217. data/spec/unit/parser/type_loader_spec.rb +1 -1
  218. data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +4 -2
  219. data/spec/unit/rails/resource_spec.rb +1 -1
  220. data/spec/unit/reports/tagmail_spec.rb +2 -2
  221. data/spec/unit/resource/catalog_spec.rb +1 -1
  222. data/spec/unit/resource/type_collection_spec.rb +35 -0
  223. data/spec/unit/resource/type_spec.rb +19 -1
  224. data/spec/unit/resource_spec.rb +0 -36
  225. data/spec/unit/simple_graph_spec.rb +12 -2
  226. data/spec/unit/transaction/resource_harness_spec.rb +1 -1
  227. data/spec/unit/type/file/content_spec.rb +2 -1
  228. data/spec/unit/type/schedule_spec.rb +1 -1
  229. data/spec/unit/type/service_spec.rb +8 -0
  230. data/spec/unit/type/user_spec.rb +5 -0
  231. data/spec/unit/util/backups_spec.rb +0 -1
  232. data/spec/unit/util/rdoc/parser_spec.rb +3 -3
  233. data/spec/unit/util/rdoc_spec.rb +13 -0
  234. data/test/certmgr/support.rb +2 -1
  235. data/test/language/parser.rb +6 -6
  236. data/test/lib/puppettest.rb +3 -23
  237. data/test/lib/puppettest/fakes.rb +1 -1
  238. data/test/lib/puppettest/support/assertions.rb +0 -2
  239. data/test/lib/puppettest/support/utils.rb +25 -20
  240. data/test/ral/manager/attributes.rb +4 -1
  241. metadata +15 -9
  242. data/conf/suse/puppet.suse.patch +0 -16
  243. data/ext/extlookup.rb +0 -181
  244. data/ext/puppetlast +0 -16
  245. data/tasks/rake/tracdocs.rake +0 -8
  246. data/test/lib/mocha_standalone.rb +0 -2
@@ -1,16 +0,0 @@
1
- --- sbin/puppetmasterd.orig 2009-11-23 10:38:16.632264990 -0500
2
- +++ sbin/puppetmasterd 2009-11-23 10:38:28.884265155 -0500
3
- @@ -1,4 +1,4 @@
4
- -#!/usr/bin/env ruby
5
- +#!/usr/bin/ruby
6
-
7
- #
8
- # = Synopsis
9
- --- sbin/puppetd.orig 2009-11-23 10:38:23.240265893 -0500
10
- +++ sbin/puppetd 2009-11-23 10:38:35.044265271 -0500
11
- @@ -1,4 +1,4 @@
12
- -#!/usr/bin/env ruby
13
- +#!/usr/bin/ruby
14
- # == Synopsis
15
- #
16
- # Retrieve the client configuration from the central puppet server and apply
@@ -1,181 +0,0 @@
1
- # Puppet External Data Sources
2
- #
3
- # This is a parser function to read data from external files, this version
4
- # uses CSV files but the concept can easily be adjust for databases, yaml
5
- # or any other queryable data source.
6
- #
7
- # The object of this is to make it obvious when it's being used, rather than
8
- # magically loading data in when an module is loaded I prefer to look at the code
9
- # and see statements like:
10
- #
11
- # $snmp_contact = extlookup("snmp_contact")
12
- #
13
- # The above snippet will load the snmp_contact value from CSV files, this in its
14
- # own is useful but a common construct in puppet manifests is something like this:
15
- #
16
- # case $domain {
17
- # "myclient.com": { $snmp_contact = "John Doe <john@myclient.com>" }
18
- # default: { $snmp_contact = "My Support <support@my.com>" }
19
- # }
20
- #
21
- # Over time there will be a lot of this kind of thing spread all over your manifests
22
- # and adding an additional client involves grepping through manifests to find all the
23
- # places where you have constructs like this.
24
- #
25
- # This is a data problem and shouldn't be handled in code, a using this function you
26
- # can do just that.
27
- #
28
- # First you configure it in site.pp:
29
- # $extlookup_datadir = "/etc/puppet/manifests/extdata"
30
- # $extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "common"]
31
- #
32
- # The array tells the code how to resolve values, first it will try to find it in
33
- # web1.myclient.com.csv then in domain_myclient.com.csv and finally in common.csv
34
- #
35
- # Now create the following data files in /etc/puppet/manifests/extdata
36
- #
37
- # domain_myclient.com.csv:
38
- # snmp_contact,John Doe <john@myclient.com>
39
- # root_contact,support@%{domain}
40
- # client_trusted_ips,192.168.1.130,192.168.10.0/24
41
- #
42
- # common.csv:
43
- # snmp_contact,My Support <support@my.com>
44
- # root_contact,support@my.com
45
- #
46
- # Now you can replace the case statement with the simple single line to achieve
47
- # the exact same outcome:
48
- #
49
- # $snmp_contact = extlookup("snmp_contact")
50
- #
51
- # The obove code shows some other features, you can use any fact or variable that
52
- # is in scope by simply using %{varname} in your data files, you can return arrays
53
- # by just having multiple values in the csv after the initial variable name.
54
- #
55
- # In the event that a variable is nowhere to be found a critical error will be raised
56
- # that will prevent your manifest from compiling, this is to avoid accidentally putting
57
- # in empty values etc. You can however specify a default value:
58
- #
59
- # $ntp_servers = extlookup("ntp_servers", "1.${country}.pool.ntp.org")
60
- #
61
- # In this case it will default to "1.${country}.pool.ntp.org" if nothing is defined in
62
- # any data file.
63
- #
64
- # You can also specify an additional data file to search first before any others at use
65
- # time, for example:
66
- #
67
- # $version = extlookup("rsyslog_version", "present", "packages")
68
- #
69
- # package{"rsyslog": ensure => $version }
70
- #
71
- # This will look for a version configured in packages.csv and then in the rest as configured
72
- # by $extlookup_precedence if it's not found anywhere it will default to "present", this kind
73
- # of use case makes puppet a lot nicer for managing large amounts of packages since you do not
74
- # need to edit a load of manifests to do simple things like adjust a desired version number.
75
- #
76
- # For more information on installing and writing your own custom functions see:
77
- # http://docs.puppetlabs.com/guides/custom_functions.html
78
- #
79
- # For further help contact Volcane on #puppet
80
- require 'csv'
81
-
82
- module Puppet::Parser::Functions
83
- newfunction(:extlookup, :type => :rvalue) do |args|
84
- key = args[0]
85
- default = "_ExtUNSET_"
86
- datafile = "_ExtUNSET_"
87
-
88
- default = args[1] if args[1]
89
- datafile = args[2] if args[2]
90
-
91
- extlookup_datadir = lookupvar('extlookup_datadir')
92
- extlookup_precedence = Array.new
93
-
94
- # precedence values can have variables embedded in them
95
- # in the form %{fqdn}, you could for example do
96
- #
97
- # $extlookup_precedence = ["hosts/%{fqdn}", "common"]
98
- #
99
- # this will result in /path/to/extdata/hosts/your.box.com.csv
100
- # being searched.
101
- #
102
- # we parse the precedence here because the best place to specify
103
- # it would be in site.pp but site.pp is only evaluated at startup
104
- # so $fqdn etc would have no meaning there, this way it gets evaluated
105
- # each run and has access to the right variables for that run
106
- lookupvar('extlookup_precedence').each do |prec|
107
- while prec =~ /%\{(.+?)\}/
108
- prec.gsub!(/%\{#{$1}\}/, lookupvar($1))
109
- end
110
-
111
- extlookup_precedence << prec
112
- end
113
-
114
-
115
- datafiles = Array.new
116
-
117
- # if we got a custom data file, put it first in the array of search files
118
- if datafile != ""
119
- datafiles << extlookup_datadir + "/#{datafile}.csv" if File.exists?(extlookup_datadir + "/#{datafile}.csv")
120
- end
121
-
122
- extlookup_precedence.each do |d|
123
- datafiles << extlookup_datadir + "/#{d}.csv"
124
- end
125
-
126
- desired = "_ExtUNSET_"
127
-
128
- datafiles.each do |file|
129
- parser.watch_file(file) if File.exists?(file)
130
-
131
- if desired == "_ExtUNSET_"
132
- if File.exists?(file)
133
- result = CSV.read(file).find_all do |r|
134
- r[0] == key
135
- end
136
-
137
-
138
- # return just the single result if theres just one,
139
- # else take all the fields in the csv and build an array
140
- if result.length > 0
141
- if result[0].length == 2
142
- val = result[0][1].to_s
143
-
144
- # parse %{}'s in the CSV into local variables using lookupvar()
145
- while val =~ /%\{(.+?)\}/
146
- val.gsub!(/%\{#{$1}\}/, lookupvar($1))
147
- end
148
-
149
- desired = val
150
- elsif result[0].length > 1
151
- length = result[0].length
152
- cells = result[0][1,length]
153
-
154
- # Individual cells in a CSV result are a weird data type and throws
155
- # puppets yaml parsing, so just map it all to plain old strings
156
- desired = cells.map do |c|
157
- # parse %{}'s in the CSV into local variables using lookupvar()
158
- while c =~ /%\{(.+?)\}/
159
- c.gsub!(/%\{#{$1}\}/, lookupvar($1))
160
- end
161
-
162
- c.to_s
163
- end
164
- end
165
- end
166
- end
167
- end
168
- end
169
-
170
- # don't accidently return nil's and such rather throw a parse error
171
- if desired == "_ExtUNSET_" && default == "_ExtUNSET_"
172
- raise Puppet::ParseError, "No match found for '#{key}' in any data file during extlookup()"
173
- else
174
- desired = default if desired == "_ExtUNSET_"
175
- end
176
-
177
- desired
178
- end
179
- end
180
-
181
- # vi:tabstop=4:expandtab:ai
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # Puppetlast, a script to output the last check-in time of nodes. Also outputs the cached configuration state, if expired or not.
3
- #
4
- # AJ "Fujin" Christensen <aj@junglist.gen.nz>
5
- #
6
- require 'puppet'
7
- require 'time'
8
-
9
- Puppet[:config] = "/etc/puppet/puppet.conf"
10
- Puppet.parse_config
11
- Puppet[:name] = "puppetmasterd"
12
- Puppet::Node::Facts.terminus_class = :yaml
13
-
14
- Puppet::Node::Facts.search("*").sort { |a,b| a.name <=> b.name }.each do |node|
15
- puts "#{node.name} checked in #{((Time.now - Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago. Version #{node.values['puppetversion']}#{node.expired? ? ' Cache expired.' : ''}"
16
- end
@@ -1,8 +0,0 @@
1
- task :tracdocs do
2
- require 'puppet'
3
- require 'puppet/util/reference'
4
- Puppet::Util::Reference.references.each do |ref|
5
- sh "puppetdoc -m trac -r #{ref.to_s}"
6
- end
7
- end
8
-
@@ -1,2 +0,0 @@
1
- require 'mocha/standalone'
2
- require 'mocha/object'