puppet 2.7.1 → 2.7.3

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 (171) hide show
  1. data/CHANGELOG +225 -1
  2. data/CONTRIBUTING.md +299 -0
  3. data/README.md +0 -1
  4. data/conf/redhat/puppet.spec +132 -25
  5. data/conf/solaris/pkginfo +1 -1
  6. data/conf/suse/puppet.spec +5 -2
  7. data/ext/envpuppet +56 -3
  8. data/ext/vim/README +2 -1
  9. data/ext/vim/ftplugin/puppet.vim +94 -0
  10. data/ext/vim/indent/puppet.vim +76 -0
  11. data/lib/puppet.rb +2 -3
  12. data/lib/puppet/application/agent.rb +7 -7
  13. data/lib/puppet/application/apply.rb +20 -8
  14. data/lib/puppet/application/ca.rb +5 -0
  15. data/lib/puppet/application/cert.rb +2 -1
  16. data/lib/puppet/application/certificate.rb +0 -5
  17. data/lib/puppet/application/device.rb +4 -4
  18. data/lib/puppet/application/doc.rb +23 -12
  19. data/lib/puppet/application/face_base.rb +2 -1
  20. data/lib/puppet/application/inspect.rb +5 -2
  21. data/lib/puppet/configurer.rb +60 -56
  22. data/lib/puppet/configurer/fact_handler.rb +6 -1
  23. data/lib/puppet/defaults.rb +20 -1
  24. data/lib/puppet/face/ca.rb +233 -0
  25. data/lib/puppet/face/certificate.rb +15 -11
  26. data/lib/puppet/face/certificate_request.rb +9 -11
  27. data/lib/puppet/face/certificate_revocation_list.rb +5 -7
  28. data/lib/puppet/face/node/clean.rb +154 -0
  29. data/lib/puppet/face/status.rb +1 -0
  30. data/lib/puppet/file_serving/configuration/parser.rb +6 -13
  31. data/lib/puppet/indirector/exec.rb +3 -3
  32. data/lib/puppet/indirector/face.rb +17 -7
  33. data/lib/puppet/indirector/report/processor.rb +29 -16
  34. data/lib/puppet/indirector/rest.rb +42 -7
  35. data/lib/puppet/indirector/yaml.rb +5 -0
  36. data/lib/puppet/interface.rb +7 -2
  37. data/lib/puppet/interface/action.rb +57 -23
  38. data/lib/puppet/interface/action_manager.rb +10 -5
  39. data/lib/puppet/interface/face_collection.rb +43 -52
  40. data/lib/puppet/interface/option.rb +19 -0
  41. data/lib/puppet/interface/option_builder.rb +13 -0
  42. data/lib/puppet/interface/option_manager.rb +2 -1
  43. data/lib/puppet/metatype/manager.rb +7 -20
  44. data/lib/puppet/module.rb +4 -1
  45. data/lib/puppet/network/authconfig.rb +3 -1
  46. data/lib/puppet/network/authstore.rb +14 -5
  47. data/lib/puppet/network/handler/fileserver.rb +3 -0
  48. data/lib/puppet/network/http/webrick.rb +1 -1
  49. data/lib/puppet/network/rest_authconfig.rb +6 -1
  50. data/lib/puppet/network/rest_authorization.rb +1 -1
  51. data/lib/puppet/parser/compiler.rb +8 -11
  52. data/lib/puppet/parser/functions.rb +1 -6
  53. data/lib/puppet/parser/functions/create_resources.rb +6 -5
  54. data/lib/puppet/parser/functions/regsubst.rb +26 -0
  55. data/lib/puppet/parser/functions/shellquote.rb +26 -0
  56. data/lib/puppet/parser/functions/sprintf.rb +26 -0
  57. data/lib/puppet/parser/grammar.ra +34 -60
  58. data/lib/puppet/parser/lexer.rb +5 -5
  59. data/lib/puppet/parser/parser.rb +913 -1196
  60. data/lib/puppet/parser/resource.rb +18 -1
  61. data/lib/puppet/parser/scope.rb +2 -2
  62. data/lib/puppet/provider/augeas/augeas.rb +42 -17
  63. data/lib/puppet/provider/mount/parsed.rb +19 -1
  64. data/lib/puppet/provider/naginator.rb +9 -1
  65. data/lib/puppet/provider/nameservice/directoryservice.rb +11 -8
  66. data/lib/puppet/provider/network_device.rb +1 -1
  67. data/lib/puppet/provider/package/aptitude.rb +1 -0
  68. data/lib/puppet/provider/package/pacman.rb +94 -0
  69. data/lib/puppet/provider/ssh_authorized_key/parsed.rb +0 -6
  70. data/lib/puppet/rails/host.rb +7 -0
  71. data/lib/puppet/reports/store.rb +15 -0
  72. data/lib/puppet/resource/catalog.rb +15 -6
  73. data/lib/puppet/ssl/certificate.rb +6 -0
  74. data/lib/puppet/ssl/inventory.rb +2 -0
  75. data/lib/puppet/transaction.rb +9 -17
  76. data/lib/puppet/transaction/report.rb +3 -3
  77. data/lib/puppet/type.rb +13 -24
  78. data/lib/puppet/type/file.rb +8 -2
  79. data/lib/puppet/type/file/source.rb +2 -2
  80. data/lib/puppet/type/service.rb +20 -24
  81. data/lib/puppet/type/ssh_authorized_key.rb +12 -0
  82. data/lib/puppet/type/user.rb +8 -0
  83. data/lib/puppet/util.rb +0 -1
  84. data/lib/puppet/util/network_device.rb +3 -3
  85. data/lib/puppet/util/settings.rb +1 -1
  86. data/lib/puppet/util/settings/file_setting.rb +1 -0
  87. data/lib/semver.rb +65 -0
  88. data/spec/integration/defaults_spec.rb +23 -1
  89. data/spec/integration/network/rest_authconfig_spec.rb +145 -0
  90. data/spec/integration/node/facts_spec.rb +1 -1
  91. data/spec/integration/parser/functions_spec.rb +1 -1
  92. data/spec/integration/parser/parser_spec.rb +31 -0
  93. data/spec/integration/provider/ssh_authorized_key_spec.rb +207 -0
  94. data/spec/integration/type_spec.rb +11 -0
  95. data/spec/lib/puppet/face/1.0.0/huzzah.rb +8 -0
  96. data/spec/lib/puppet/face/huzzah.rb +1 -0
  97. data/spec/lib/puppet/face/huzzah/obsolete.rb +6 -0
  98. data/spec/shared_behaviours/things_that_declare_options.rb +115 -3
  99. data/spec/unit/application/agent_spec.rb +2 -2
  100. data/spec/unit/application/apply_spec.rb +74 -56
  101. data/spec/unit/application/cert_spec.rb +10 -0
  102. data/spec/unit/application/device_spec.rb +2 -3
  103. data/spec/unit/application/face_base_spec.rb +1 -0
  104. data/spec/unit/application/facts_spec.rb +1 -0
  105. data/spec/unit/application/inspect_spec.rb +5 -0
  106. data/spec/unit/configurer/fact_handler_spec.rb +45 -37
  107. data/spec/unit/configurer_spec.rb +405 -327
  108. data/spec/unit/face/ca_spec.rb +355 -0
  109. data/spec/unit/face/certificate_spec.rb +16 -4
  110. data/spec/unit/face/node_spec.rb +261 -1
  111. data/spec/unit/file_serving/configuration/parser_spec.rb +8 -0
  112. data/spec/unit/indirector/certificate/rest_spec.rb +1 -0
  113. data/spec/unit/indirector/certificate_status/file_spec.rb +4 -0
  114. data/spec/unit/indirector/exec_spec.rb +4 -4
  115. data/spec/unit/indirector/face_spec.rb +3 -1
  116. data/spec/unit/indirector/facts/couch_spec.rb +2 -2
  117. data/spec/unit/indirector/facts/network_device_spec.rb +2 -6
  118. data/spec/unit/indirector/node/exec_spec.rb +1 -1
  119. data/spec/unit/indirector/report/processor_spec.rb +31 -8
  120. data/spec/unit/indirector/rest_spec.rb +53 -5
  121. data/spec/unit/indirector/yaml_spec.rb +18 -0
  122. data/spec/unit/interface/action_spec.rb +112 -8
  123. data/spec/unit/interface/face_collection_spec.rb +46 -36
  124. data/spec/unit/interface/option_spec.rb +44 -0
  125. data/spec/unit/interface_spec.rb +11 -6
  126. data/spec/unit/module_spec.rb +38 -9
  127. data/spec/unit/network/authconfig_spec.rb +23 -0
  128. data/spec/unit/network/authstore_spec.rb +36 -4
  129. data/spec/unit/network/handler/fileserver_spec.rb +32 -0
  130. data/spec/unit/network/rest_authconfig_spec.rb +1 -1
  131. data/spec/unit/node_spec.rb +1 -0
  132. data/spec/unit/parser/compiler_spec.rb +8 -46
  133. data/spec/unit/parser/lexer_spec.rb +27 -17
  134. data/spec/unit/parser/resource_spec.rb +61 -3
  135. data/spec/unit/parser/scope_spec.rb +5 -1
  136. data/spec/unit/provider/augeas/augeas_spec.rb +106 -1
  137. data/spec/unit/provider/cisco_spec.rb +3 -4
  138. data/spec/unit/provider/interface/cisco_spec.rb +1 -2
  139. data/spec/unit/provider/mount/parsed_spec.rb +41 -0
  140. data/spec/unit/provider/nameservice/directoryservice_spec.rb +60 -0
  141. data/spec/unit/provider/network_device_spec.rb +1 -2
  142. data/spec/unit/provider/package/pacman_spec.rb +237 -0
  143. data/spec/unit/provider/package/pkgutil_spec.rb +2 -3
  144. data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +21 -32
  145. data/spec/unit/provider/vlan/cisco_spec.rb +1 -2
  146. data/spec/unit/rails/host_spec.rb +8 -0
  147. data/spec/unit/resource/catalog_spec.rb +55 -8
  148. data/spec/unit/semver_spec.rb +187 -0
  149. data/spec/unit/ssl/certificate_spec.rb +25 -0
  150. data/spec/unit/transaction/report_spec.rb +3 -3
  151. data/spec/unit/transaction_spec.rb +8 -2
  152. data/spec/unit/type/file_spec.rb +57 -0
  153. data/spec/unit/type/interface_spec.rb +1 -2
  154. data/spec/unit/type/schedule_spec.rb +73 -42
  155. data/spec/unit/type/ssh_authorized_key_spec.rb +180 -70
  156. data/spec/unit/type/user_spec.rb +8 -0
  157. data/spec/unit/type/vlan_spec.rb +1 -2
  158. data/spec/unit/type_spec.rb +66 -0
  159. data/spec/unit/util/network_device/cisco/device_spec.rb +1 -2
  160. data/spec/unit/util/network_device/cisco/facts_spec.rb +2 -3
  161. data/spec/unit/util/network_device/cisco/interface_spec.rb +1 -2
  162. data/spec/unit/util/network_device/config_spec.rb +3 -4
  163. data/spec/unit/util/network_device/ipcalc_spec.rb +1 -2
  164. data/spec/unit/util/network_device/transport/base_spec.rb +1 -2
  165. data/spec/unit/util/network_device/transport/ssh_spec.rb +1 -2
  166. data/spec/unit/util/network_device/transport/telnet_spec.rb +1 -2
  167. data/spec/unit/util/network_device_spec.rb +2 -2
  168. data/spec/unit/util/settings/file_setting_spec.rb +4 -0
  169. data/spec/unit/util/settings_spec.rb +11 -0
  170. data/test/lib/puppettest/railstesting.rb +0 -34
  171. metadata +19 -4
data/README.md CHANGED
@@ -41,4 +41,3 @@ Support
41
41
  -------
42
42
 
43
43
  Please log tickets and issues at our [Projects site](http://projects.puppetlabs.com)
44
-
@@ -5,13 +5,13 @@
5
5
  %global confdir conf/redhat
6
6
 
7
7
  Name: puppet
8
- Version: 2.6.0
9
- Release: 1%{?dist}
8
+ Version: 2.7.2
9
+ Release: 0.2.rc1%{?dist}
10
10
  Summary: A network tool for managing many disparate systems
11
- License: Apache 2.0
11
+ License: ASL 2.0
12
12
  URL: http://puppetlabs.com
13
- Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz
14
- Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.sign
13
+ Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}rc1.tar.gz
14
+ Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}rc1.tar.gz.asc
15
15
 
16
16
  Group: System Environment/Base
17
17
 
@@ -27,11 +27,11 @@ Requires: ruby-shadow
27
27
  %endif
28
28
 
29
29
  # Pull in ruby selinux bindings where available
30
- %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
31
- %{!?_without_selinux:Requires: ruby(selinux)}
30
+ %if 0%{?fedora} || 0%{?rhel} >= 6
31
+ %{!?_without_selinux:Requires: ruby(selinux), libselinux-utils}
32
32
  %else
33
- %if 0%{?fedora} || 0%{?rhel} >= 5
34
- %{!?_without_selinux:Requires: libselinux-ruby}
33
+ %if 0%{?rhel} && 0%{?rhel} == 5
34
+ %{!?_without_selinux:Requires: libselinux-ruby, libselinux-utils}
35
35
  %endif
36
36
  %endif
37
37
 
@@ -65,8 +65,8 @@ Provides the central puppet server daemon which provides manifests to clients.
65
65
  The server can also function as a certificate authority and file server.
66
66
 
67
67
  %prep
68
- %setup -q
69
- patch -p1 < conf/redhat/rundir-perms.patch
68
+ %setup -q -n %{name}-%{version}rc1
69
+ patch -s -p1 < conf/redhat/rundir-perms.patch
70
70
 
71
71
 
72
72
  %build
@@ -102,7 +102,6 @@ install -Dp -m0644 %{confdir}/server.sysconfig %{buildroot}%{_sysconfdir}/syscon
102
102
  install -Dp -m0755 %{confdir}/server.init %{buildroot}%{_initrddir}/puppetmaster
103
103
  install -Dp -m0644 %{confdir}/fileserver.conf %{buildroot}%{_sysconfdir}/puppet/fileserver.conf
104
104
  install -Dp -m0644 %{confdir}/puppet.conf %{buildroot}%{_sysconfdir}/puppet/puppet.conf
105
- install -Dp -m0644 conf/auth.conf %{buildroot}%{_sysconfdir}/puppet/auth.conf
106
105
  install -Dp -m0644 %{confdir}/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/puppet
107
106
 
108
107
  # We need something for these ghosted files, otherwise rpmbuild
@@ -111,7 +110,7 @@ touch %{buildroot}%{_sysconfdir}/puppet/puppetmasterd.conf
111
110
  touch %{buildroot}%{_sysconfdir}/puppet/puppetca.conf
112
111
  touch %{buildroot}%{_sysconfdir}/puppet/puppetd.conf
113
112
 
114
- # Install the ext/ directory to %{_datadir}/%{name}
113
+ # Install the ext/ directory to %%{_datadir}/%%{name}
115
114
  install -d %{buildroot}%{_datadir}/%{name}
116
115
  cp -a ext/ %{buildroot}%{_datadir}/%{name}
117
116
  # emacs and vim bits are installed elsewhere
@@ -128,9 +127,16 @@ vimdir=%{buildroot}%{_datadir}/vim/vimfiles
128
127
  install -Dp -m0644 ext/vim/ftdetect/puppet.vim $vimdir/ftdetect/puppet.vim
129
128
  install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
130
129
 
130
+ %if 0%{?fedora} >= 15
131
+ # Setup tmpfiles.d config
132
+ mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
133
+ echo "D /var/run/%{name} 0755 %{name} %{name} -" > \
134
+ %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
135
+ %endif
136
+
131
137
  %files
132
138
  %defattr(-, root, root, 0755)
133
- %doc CHANGELOG COPYING LICENSE README README.queueing examples
139
+ %doc CHANGELOG LICENSE README.md examples
134
140
  %{_bindir}/pi
135
141
  %{_bindir}/puppet
136
142
  %{_bindir}/ralsh
@@ -141,6 +147,9 @@ install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
141
147
  %{ruby_sitelibdir}/*
142
148
  %{_initrddir}/puppet
143
149
  %dir %{_sysconfdir}/puppet
150
+ %if 0%{?fedora} >= 15
151
+ %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
152
+ %endif
144
153
  %config(noreplace) %{_sysconfdir}/sysconfig/puppet
145
154
  %config(noreplace) %{_sysconfdir}/puppet/puppet.conf
146
155
  %config(noreplace) %{_sysconfdir}/puppet/auth.conf
@@ -163,6 +172,34 @@ install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
163
172
  %{_mandir}/man8/puppetd.8.gz
164
173
  %{_mandir}/man8/ralsh.8.gz
165
174
  %{_mandir}/man8/puppetdoc.8.gz
175
+ %{_mandir}/man8/puppet-agent.8.gz
176
+ %{_mandir}/man8/puppet-apply.8.gz
177
+ %{_mandir}/man8/puppet-catalog.8.gz
178
+ %{_mandir}/man8/puppet-describe.8.gz
179
+ %{_mandir}/man8/puppet-cert.8.gz
180
+ %{_mandir}/man8/puppet-certificate.8.gz
181
+ %{_mandir}/man8/puppet-certificate_request.8.gz
182
+ %{_mandir}/man8/puppet-certificate_revocation_list.8.gz
183
+ %{_mandir}/man8/puppet-config.8.gz
184
+ %{_mandir}/man8/puppet-device.8.gz
185
+ %{_mandir}/man8/puppet-doc.8.gz
186
+ %{_mandir}/man8/puppet-facts.8.gz
187
+ %{_mandir}/man8/puppet-file.8.gz
188
+ %{_mandir}/man8/puppet-filebucket.8.gz
189
+ %{_mandir}/man8/puppet-help.8.gz
190
+ %{_mandir}/man8/puppet-inspect.8.gz
191
+ %{_mandir}/man8/puppet-key.8.gz
192
+ %{_mandir}/man8/puppet-kick.8.gz
193
+ %{_mandir}/man8/puppet-man.8.gz
194
+ %{_mandir}/man8/puppet-node.8.gz
195
+ %{_mandir}/man8/puppet-parser.8.gz
196
+ %{_mandir}/man8/puppet-plugin.8.gz
197
+ %{_mandir}/man8/puppet-queue.8.gz
198
+ %{_mandir}/man8/puppet-report.8.gz
199
+ %{_mandir}/man8/puppet-resource.8.gz
200
+ %{_mandir}/man8/puppet-resource_type.8.gz
201
+ %{_mandir}/man8/puppet-secret_agent.8.gz
202
+ %{_mandir}/man8/puppet-status.8.gz
166
203
 
167
204
  %files server
168
205
  %defattr(-, root, root, 0755)
@@ -178,6 +215,7 @@ install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
178
215
  %{_mandir}/man8/puppetmasterd.8.gz
179
216
  %{_mandir}/man8/puppetrun.8.gz
180
217
  %{_mandir}/man8/puppetqd.8.gz
218
+ %{_mandir}/man8/puppet-master.8.gz
181
219
 
182
220
  # Fixed uid/gid were assigned in bz 472073 (Fedora), 471918 (RHEL-5),
183
221
  # and 471919 (RHEL-4)
@@ -185,27 +223,48 @@ install -Dp -m0644 ext/vim/syntax/puppet.vim $vimdir/syntax/puppet.vim
185
223
  getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null
186
224
  getent passwd puppet &>/dev/null || \
187
225
  useradd -r -u 52 -g puppet -d %{_localstatedir}/lib/puppet -s /sbin/nologin \
188
- -c "Puppet" puppet &>/dev/null || :
226
+ -c "Puppet" puppet &>/dev/null
189
227
  # ensure that old setups have the right puppet home dir
190
228
  if [ $1 -gt 1 ] ; then
191
- usermod -d %{_localstatedir}/lib/puppet puppet &>/dev/null || :
229
+ usermod -d %{_localstatedir}/lib/puppet puppet &>/dev/null
192
230
  fi
231
+ exit 0
193
232
 
194
233
  %post
195
234
  /sbin/chkconfig --add puppet || :
235
+ if [ "$1" -ge 1 ]; then
236
+ # The pidfile changed from 0.25.x to 2.6.x, handle upgrades without leaving
237
+ # the old process running.
238
+ oldpid="%{_localstatedir}/run/puppet/puppetd.pid"
239
+ newpid="%{_localstatedir}/run/puppet/agent.pid"
240
+ if [ -s "$oldpid" -a ! -s "$newpid" ]; then
241
+ (kill $(< "$oldpid") && rm -f "$oldpid" && \
242
+ /sbin/service puppet start) >/dev/null 2>&1 || :
243
+ fi
244
+ fi
196
245
 
197
246
  %post server
198
247
  /sbin/chkconfig --add puppetmaster || :
248
+ if [ "$1" -ge 1 ]; then
249
+ # The pidfile changed from 0.25.x to 2.6.x, handle upgrades without leaving
250
+ # the old process running.
251
+ oldpid="%{_localstatedir}/run/puppet/puppetmasterd.pid"
252
+ newpid="%{_localstatedir}/run/puppet/master.pid"
253
+ if [ -s "$oldpid" -a ! -s "$newpid" ]; then
254
+ (kill $(< "$oldpid") && rm -f "$oldpid" && \
255
+ /sbin/service puppetmaster start) >/dev/null 2>&1 || :
256
+ fi
257
+ fi
199
258
 
200
259
  %preun
201
260
  if [ "$1" = 0 ] ; then
202
- /sbin/service puppet stop > /dev/null 2>&1
261
+ /sbin/service puppet stop >/dev/null 2>&1
203
262
  /sbin/chkconfig --del puppet || :
204
263
  fi
205
264
 
206
265
  %preun server
207
266
  if [ "$1" = 0 ] ; then
208
- /sbin/service puppetmaster stop > /dev/null 2>&1
267
+ /sbin/service puppetmaster stop >/dev/null 2>&1
209
268
  /sbin/chkconfig --del puppetmaster || :
210
269
  fi
211
270
 
@@ -216,27 +275,75 @@ fi
216
275
 
217
276
  %postun server
218
277
  if [ "$1" -ge 1 ]; then
219
- /sbin/service puppetmaster condrestart > /dev/null 2>&1 || :
278
+ /sbin/service puppetmaster condrestart >/dev/null 2>&1 || :
220
279
  fi
221
280
 
222
281
  %clean
223
282
  rm -rf %{buildroot}
224
283
 
225
284
  %changelog
226
- * Tue Jul 20 2010 Todd Zullinger <tmz@pobox.com> - 2.6.0-1
227
- - Update to 2.6.0
285
+ * Wed Jul 06 2011 Michael Stahnke <stahnma@puppetlabs.com> - 2.7.2-0.2.rc1
286
+ - Clean up rpmlint errors
287
+ - Put man pages in correct package
288
+
289
+ * Wed Jul 06 2011 Michael Stahnke <stahnma@puppetlabs.com> - 2.7.2-0.1.rc1
290
+ - Update to 2.7.2rc1
291
+
292
+ * Tue Jun 21 2011 Michael Stahnke <stahnma@puppetlabs.com> - 2.6.9-1
293
+ - Release of 2.6.9
294
+
295
+ * Wed Jun 15 2011 Todd Zullinger <tmz@pobox.com> - 2.6.9-0.1.rc1
296
+ - Update rc versioning to ensure 2.6.9 final is newer to rpm
297
+ - sync changes with Fedora/EPEL
298
+
299
+ * Tue Jun 14 2011 Michael Stahnke <stahnma@puppetlabs.com> - 2.6.9rc1-1
300
+ - Update to 2.6.9rc1
301
+
302
+ * Thu Apr 14 2011 Todd Zullinger <tmz@pobox.com> - 2.6.8-1
303
+ - Update to 2.6.8
304
+
305
+ * Thu Mar 24 2011 Todd Zullinger <tmz@pobox.com> - 2.6.7-1
306
+ - Update to 2.6.7
307
+
308
+ * Wed Mar 16 2011 Todd Zullinger <tmz@pobox.com> - 2.6.6-1
309
+ - Update to 2.6.6
310
+ - Ensure %%pre exits cleanly
311
+ - Fix License tag, puppet is now GPLv2 only
228
312
  - Create and own /usr/share/puppet/modules (#615432)
313
+ - Properly restart puppet agent/master daemons on upgrades from 0.25.x
314
+ - Require libselinux-utils when selinux support is enabled
315
+ - Support tmpfiles.d for Fedora >= 15 (#656677)
316
+
317
+ * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25.5-2
318
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
229
319
 
230
- * Mon May 03 2010 Todd Zullinger <tmz@pobox.com> - 0.25.5-1
320
+ * Mon May 17 2010 Todd Zullinger <tmz@pobox.com> - 0.25.5-1
231
321
  - Update to 0.25.5
232
322
  - Adjust selinux conditional for EL-6
233
323
  - Apply rundir-perms patch from tarball rather than including it separately
324
+ - Update URL's to reflect the new puppetlabs.com domain
325
+
326
+ * Fri Jan 29 2010 Todd Zullinger <tmz@pobox.com> - 0.25.4-1
327
+ - Update to 0.25.4
234
328
 
235
- * Fri Jan 01 2010 Todd Zullinger <tmz@pobox.com> - 0.25.2-1
329
+ * Tue Jan 19 2010 Todd Zullinger <tmz@pobox.com> - 0.25.3-2
330
+ - Apply upstream patch to fix cron resources (upstream #2845)
331
+
332
+ * Mon Jan 11 2010 Todd Zullinger <tmz@pobox.com> - 0.25.3-1
333
+ - Update to 0.25.3
334
+
335
+ * Tue Jan 05 2010 Todd Zullinger <tmz@pobox.com> - 0.25.2-1.1
336
+ - Replace %%define with %%global for macros
337
+
338
+ * Tue Jan 05 2010 Todd Zullinger <tmz@pobox.com> - 0.25.2-1
236
339
  - Update to 0.25.2
340
+ - Fixes CVE-2010-0156, tmpfile security issue (#502881)
237
341
  - Install auth.conf, puppetqd manpage, and queuing examples/docs
238
342
 
239
- * Tue Oct 20 2009 Todd Zullinger <tmz@pobox.com> - 0.25.1-1
343
+ * Wed Nov 25 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.25.1-1
344
+ - New upstream version
345
+
346
+ * Tue Oct 27 2009 Todd Zullinger <tmz@pobox.com> - 0.25.1-0.3
240
347
  - Update to 0.25.1
241
348
  - Include the pi program and man page (R.I.Pienaar)
242
349
 
@@ -252,7 +359,7 @@ rm -rf %{buildroot}
252
359
  - Update to 0.25.0
253
360
  - Fix permissions on /var/log/puppet (#495096)
254
361
  - Install emacs mode and vim syntax files (#491437)
255
- - Install ext/ directory in %%{_datadir}/%{name} (/usr/share/puppet)
362
+ - Install ext/ directory in %%{_datadir}/%%{name} (/usr/share/puppet)
256
363
 
257
364
  * Mon May 04 2009 Todd Zullinger <tmz@pobox.com> - 0.25.0-0.1.beta1
258
365
  - Update to 0.25.0beta1
@@ -1,6 +1,6 @@
1
1
  PKG=CSWpuppet
2
2
  NAME=puppet - System Automation Framework
3
- VERSION=2.7.0
3
+ VERSION=2.7.2
4
4
  CATEGORY=application
5
5
  VENDOR=http://projects.puppetlabs.com/projects/puppet
6
6
  EMAIL=luke@puppetlabs.com
@@ -4,8 +4,8 @@
4
4
 
5
5
  Summary: A network tool for managing many disparate systems
6
6
  Name: puppet
7
- Version: 2.6.1
8
- Release: 1%{?dist}
7
+ Version: 2.7.2
8
+ Release: 0.1rc1%{?dist}
9
9
  License: Apache 2.0
10
10
  Group: Productivity/Networking/System
11
11
 
@@ -136,6 +136,9 @@ find %{buildroot}%{ruby_sitelibdir} -type f -perm +ugo+x -exec chmod a-x '{}' \;
136
136
  %{__rm} -rf %{buildroot}
137
137
 
138
138
  %changelog
139
+ * Wed Jul 06 2011 Michael Stahnke <stahnma@puppetlabs.com> - 2.7.2-0.1rc1
140
+ - Updating to 2.7.2rc1
141
+
139
142
  * Tue Sep 14 2010 Ben Kevan <ben.kevan@gmail.com> - 2.6.1
140
143
  - New version to 2.6.1
141
144
  - Add client.init and server.init from source since it's now included in the packages
@@ -34,6 +34,38 @@
34
34
  set -e
35
35
  set -u
36
36
 
37
+ if [[ "${1:-}" == "--help" ]]; then
38
+ cat <<EO_HELP
39
+ This command reconfigures the environment once for development.
40
+ It is designed to wrap around any other command, specifically puppet
41
+
42
+ Jeff McCune <jeff@puppetlabs.com>
43
+ 2011-02-09
44
+
45
+ Puppet should not be installed in site_ruby because all of \$LOAD_PATH
46
+ is searched by puppet when loading libraries and the installed version
47
+ will taint the development version
48
+
49
+ The following enviornment variables configure the behavior of envpuppet
50
+
51
+ ENVPUPPET_BASEDIR=${HOME}/src
52
+ the base directory where puppet, facter, etc... live.
53
+
54
+ ENVPUPPET_BLEEDING=true Enables bleeding edge prototypes like
55
+ puppet-interfaces
56
+
57
+ The PATH and RUBYLIB are the primary environment variables modified by
58
+ the envpuppet script.
59
+
60
+ If no arguments are given, the environment variables are printed to STDOUT
61
+ allowing the output to be sourced. For example:
62
+
63
+ eval \$(envpuppet)
64
+
65
+ EO_HELP
66
+ exit 0
67
+ fi
68
+
37
69
  if test -d puppet -o -d facter; then
38
70
  echo " WARNING!"
39
71
  echo " Strange things happen if puppet or facter are in the"
@@ -50,15 +82,23 @@ fi
50
82
 
51
83
  # Set this to where you check out puppet and facter
52
84
  : ${ENVPUPPET_BASEDIR:="${HOME}/src"}
85
+ # Are we bleeding edge?
86
+ : ${ENVPUPPET_BLEEDING:='false'}
53
87
 
54
- # git://github.com/reductivelabs/puppet.git
88
+ # git://github.com/puppetlabs/puppet.git
55
89
  mypath="${ENVPUPPET_BASEDIR}/puppet/sbin:${ENVPUPPET_BASEDIR}/puppet/bin"
56
90
  myrubylib="${ENVPUPPET_BASEDIR}/puppet/lib"
57
91
 
58
- # git://github.com/reductivelabs/facter.git
92
+ # git://github.com/puppetlabs/facter.git
59
93
  mypath="${mypath}:${ENVPUPPET_BASEDIR}/facter/bin"
60
94
  myrubylib="${myrubylib}:${ENVPUPPET_BASEDIR}/facter/lib"
61
95
 
96
+ if [[ "${ENVPUPPET_BLEEDING:-}" == "true" ]]; then
97
+ # git://github.com/puppetlabs/facter.git
98
+ mypath="${mypath}:${ENVPUPPET_BASEDIR}/puppet-interfaces/bin"
99
+ myrubylib="${myrubylib}:${ENVPUPPET_BASEDIR}/puppet-interfaces/lib"
100
+ fi
101
+
62
102
  # http://github.com/jamtur01/puppet-scaffold.git
63
103
  mypath="${mypath}:${ENVPUPPET_BASEDIR}/puppet-scaffold/bin"
64
104
  myrubylib="${myrubylib}:${ENVPUPPET_BASEDIR}/puppet-scaffold/lib"
@@ -73,8 +113,21 @@ myrubylib="${myrubylib}:${ENVPUPPET_BASEDIR}/puppet-module-tool/lib"
73
113
  mypath="${mypath}:${PATH:-}"
74
114
  myrubylib="${myrubylib}:${RUBYLIB:-}"
75
115
 
116
+ export ENVPUPPET_OLD_PATH="${PATH:-}"
117
+ export ENVPUPPET_OLD_RUBYLIB="${RUBYLIB:-}"
118
+
76
119
  # Trim any trailing colons from the path list.
77
120
  export PATH="${mypath%%:}"
78
121
  export RUBYLIB="${myrubylib%%:}"
79
122
 
80
- exec "$@"
123
+ if [[ $# -eq 0 ]]; then
124
+ echo "export ENVPUPPET_OLD_PATH='${ENVPUPPET_OLD_PATH}'"
125
+ echo "export ENVPUPPET_OLD_RUBYLIB='${ENVPUPPET_OLD_RUBYLIB}'"
126
+ echo "export ENVPUPPET_BASEDIR='${ENVPUPPET_BASEDIR}'"
127
+ echo "export ENVPUPPET_BLEEDING='${ENVPUPPET_BLEEDING}'"
128
+ echo "export PATH='${PATH}'"
129
+ echo "export RUBYLIB='${RUBYLIB}'"
130
+ else
131
+ exec "$@"
132
+ fi
133
+
@@ -1,2 +1,3 @@
1
1
  To install these files, copy them into ~/.vim, or the relevant
2
- system-wide location.
2
+ system-wide location. To use the ftplugin and indenting, you may need
3
+ to enable them with "filetype plugin indent on" in your vimrc.
@@ -0,0 +1,94 @@
1
+ " Vim filetype plugin
2
+ " Language: Puppet
3
+ " Maintainer: Todd Zullinger <tmz@pobox.com>
4
+ " Last Change: 2009 Aug 19
5
+ " vim: set sw=4 sts=4:
6
+
7
+ if exists("b:did_ftplugin")
8
+ finish
9
+ endif
10
+ let b:did_ftplugin = 1
11
+
12
+ if !exists("no_plugin_maps") && !exists("no_puppet_maps")
13
+ if !hasmapto("<Plug>AlignRange")
14
+ map <buffer> <LocalLeader>= <Plug>AlignRange
15
+ endif
16
+ endif
17
+
18
+ noremap <buffer> <unique> <script> <Plug>AlignArrows :call <SID>AlignArrows()<CR>
19
+ noremap <buffer> <unique> <script> <Plug>AlignRange :call <SID>AlignRange()<CR>
20
+
21
+ iabbrev => =><C-R>=<SID>AlignArrows('=>')<CR>
22
+ iabbrev +> +><C-R>=<SID>AlignArrows('+>')<CR>
23
+
24
+ if exists('*s:AlignArrows')
25
+ finish
26
+ endif
27
+
28
+ let s:arrow_re = '[=+]>'
29
+ let s:selector_re = '[=+]>\s*\$.*\s*?\s*{\s*$'
30
+
31
+ function! s:AlignArrows(op)
32
+ let cursor_pos = getpos('.')
33
+ let lnum = line('.')
34
+ let line = getline(lnum)
35
+ if line !~ s:arrow_re
36
+ return
37
+ endif
38
+ let pos = stridx(line, a:op)
39
+ let start = lnum
40
+ let end = lnum
41
+ let pnum = lnum - 1
42
+ while 1
43
+ let pline = getline(pnum)
44
+ if pline !~ s:arrow_re || pline =~ s:selector_re
45
+ break
46
+ endif
47
+ let start = pnum
48
+ let pnum -= 1
49
+ endwhile
50
+ let cnum = end
51
+ while 1
52
+ let cline = getline(cnum)
53
+ if cline !~ s:arrow_re ||
54
+ \ (indent(cnum) != indent(cnum+1) && getline(cnum+1) !~ '\s*}')
55
+ break
56
+ endif
57
+ let end = cnum
58
+ let cnum += 1
59
+ endwhile
60
+ call s:AlignSection(start, end)
61
+ let cursor_pos[2] = stridx(getline('.'), a:op) + strlen(a:op) + 1
62
+ call setpos('.', cursor_pos)
63
+ return ''
64
+ endfunction
65
+
66
+ function! s:AlignRange() range
67
+ call s:AlignSection(a:firstline, a:lastline)
68
+ endfunction
69
+
70
+ " AlignSection and AlignLine are from the vim wiki:
71
+ " http://vim.wikia.com/wiki/Regex-based_text_alignment
72
+ function! s:AlignSection(start, end)
73
+ let extra = 1
74
+ let sep = s:arrow_re
75
+ let maxpos = 0
76
+ let section = getline(a:start, a:end)
77
+ for line in section
78
+ let pos = match(line, ' *'.sep)
79
+ if maxpos < pos
80
+ let maxpos = pos
81
+ endif
82
+ endfor
83
+ call map(section, 's:AlignLine(v:val, sep, maxpos, extra)')
84
+ call setline(a:start, section)
85
+ endfunction
86
+
87
+ function! s:AlignLine(line, sep, maxpos, extra)
88
+ let m = matchlist(a:line, '\(.\{-}\) \{-}\('.a:sep.'.*\)')
89
+ if empty(m)
90
+ return a:line
91
+ endif
92
+ let spaces = repeat(' ', a:maxpos - strlen(m[1]) + a:extra)
93
+ return m[1] . spaces . m[2]
94
+ endfunction