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/CHANGELOG CHANGED
@@ -1,3 +1,183 @@
1
+ 2.7.3
2
+ ===
3
+ 7113448 (#4762) Ensure that clients on the moon can successfully connect.
4
+ c8835ad Add document outlining preferred contribution methods
5
+ b85f57c Add document outlining preferred contribution methods
6
+ ea0f2bf Revert "Merge branch 'vcsrepo'"
7
+ a5716e4 Revert "Merge branch 'vcsrepo'"
8
+ 94f0b93 (#8704) Give better errors for invalid fileserver.conf
9
+ 38801dd (Maint.) Disable cleaning of storeconfigs.
10
+ 023d959 (#8690) Accept 'global' options in Puppet Faces
11
+ bff817c (Maint.) Fix spec failures related to leaking state.
12
+ ccd622a (#1886) Clean up `node clean` for merge.
13
+ c315da0 Fix #1886 - Add node cleanup capability
14
+ 7e6fc0d Deprecate RestAuthConfig#allowed? in favor of #check_authorization
15
+ 6401dfe Fix #6026 - security file should support inline comments
16
+ 0c385f1 Fix #5010 - Allow leading whitespace in auth.conf
17
+ 8da0486 Fix #5777 - rule interpolation broke auth.conf CIDR rules
18
+ 1d4acb5 maint: Suggest where to start troubleshooting SSL error message
19
+ fb2ffd6 (#8596) Detect resource alias conflicts when titles do not match
20
+ 778127d maint: Fix cert app to print help and exit if no subcommand
21
+ 0366b18 (#7293) Set default format for SSL-related faces.
22
+ cc2c3ed (Maint.) Unquoting HEREDOCs.
23
+ 89c021c (#8418) Fix inspect app to have the correct run_mode
24
+ 3165364 maint: Adding logging to include environment when source fails
25
+ f484851 maint: Add debug logging when the master receives a report
26
+ 10e05ad (#7266) Move Certificate option validation into face.
27
+ d522b0b maint: Fix Face testing bug 1.9.2 revealed.
28
+ ae36003 (#7290) Update indirected Faces to avoid unknown options.
29
+ 88e9cd2 maint: don't print inside action implementations.
30
+ 82e5fa9 (#8561, #7290) Implement the option contract fully.
31
+ 77441be (#8561) Unify validation and modification of action arguments.
32
+ 69b4e70 (#7290) Fail on unknown options.
33
+ 6bec2df (#8561) Use canonical names for options to actions.
34
+ 532c4f3 (#7184) Load the core of obsolete versions of Faces.
35
+ 2cd3bc4 (#7184) Find actions bound to other versions of Faces.
36
+ 1e0655e (#7184) Centralize "find action for face" into Puppet::Face
37
+ 0396611 maint: better error reporting when test fails
38
+ e639868 Confine password disclosure acceptance test to hosts with required libraries
39
+ 395c174 (#7123) Make `find` the default action...
40
+ fd6a653 (#7123) Support runtime setting of 'default' on actions.
41
+ b75b1c1 (#6787) Add `default_to` for options.
42
+ 8820a78 Replace calls to Array#count with #length
43
+ bdd6a17 Fix order-dependent test failure in certificate_status/file spec
44
+ c830ab0 (#6789) Port SSL::CertificateAuthority::Interface to a Face
45
+ cc311ad maint: SSL::Inventory.serial should report missing names.
46
+ 72abe6c (#7204) Consolidate Semantic Versioning code.
47
+ d02000b (#8401) Document that --detailed-exitcodes is a bitmask
48
+ a109c90 (maint) Cleanup and strengthen acceptance tests
49
+ c4848d2 maint: Fix documentation link for fileserver configuration
50
+ b268fb3 (#7144) Update Settings#writesub to convert mode to Fixnum
51
+ b82f29c (#7699) Help command should only list options once
52
+ 4a2f22c (maint) Fix platform dection for RHEL
53
+ 45b3908 (#4142) Fix module check not to fail when empty metadata.json
54
+ 1feccc3 Revert "Merge branch 'ticket/2.7.x/7699_fix_help_listing_options_twice' into 2.7.x"
55
+ ae3ef42 (#7699) - Help should only show options once
56
+ 5826f73 (#8032) Add containment to create_resources
57
+ 98cd89b (#8147) Update test for default reporturl
58
+ f6882d6 (#8147) Change default reporturl to match newer Dashboard versions
59
+ 111a4b5 (#6857) Password disclosure when changing a user's password
60
+ Fix cross branch confusion on 2.7.2rc2
61
+ 8ec0804 (#8301) Red Hat spec file for 2.7.2rc1 won't work
62
+ 2263be6 (#5108) Update service type docs for new hasstatus default
63
+ 902c414 Update configurer_spec.rb to work with Ruby 1.8.5
64
+ 7ad1b04 Clean up indentation, whitespace, and commented out code
65
+ 014d952 Remove order dependency from functions integration spec
66
+ 243aaa9 (#7956) Porting cron tests
67
+ 3e3fc69 (#7956) Port resource acceptance tests
68
+ 534ccfe (#8048) Gem install puppet no longer fails if rdoc enabled.
69
+ bbde5b5 Readying for release of 2.6.9
70
+ 5160822 Clean up indentation, whitespace, and commented out code
71
+ 92a8f4a Remove order dependency from functions integration spec
72
+ 31554c0 (#6854) Update Red Hat spec file
73
+ cba645c Bumping release in lib/puppet.rb and updating CHANGELOG.
74
+ 43027de Bumping RPM spec file to 2.6.9rc1.
75
+ 99330fa (#7224) Reword 'hostname was not match' error message
76
+ 1d867b0 (#7224) Add a helper to Puppet::SSL::Certificate to retrieve alternate names
77
+ db1a392 (#7506) Organize READMEs; specify supported Ruby versions in README.md
78
+ de06469 (#5641) Help text: document that puppet doc takes modulepath, manifestdir, and environment options
79
+ 381fa40 (#6418) Make test 64118 more portable
80
+ 98ba407 (#7127) Stop puppet if a prerun command fails
81
+ 6996e0b Do not needlessly create multiple reports when creating a transaction
82
+ caca469 (#4416) Ensure types are providified after reloading
83
+ 413b136 (#4416) Always remove old provider before recreating it
84
+ d866ce1 Cleanup indentation, comment, and unused code
85
+ d1c965a Make temporary auth.conf in acceptance test readable by Puppet
86
+ 4af9784 (#7117) Use a different auth.conf instead of overwriting the default
87
+ ecde134 (#3360) Delete SSL directory in acceptance test before running
88
+ b502423 Update acceptance tests to use with_master_running_on
89
+ 053e613 Remove pending copy of an active acceptance test
90
+ 98f58ce (#2128) Add WARNING for node_name_{fact,value} descriptions
91
+ 1cd848c (#2128) Whitespace only reflow commit
92
+ d9b5c1a (#2128) In-line docs for node_name_{fact,value}
93
+ 3f0dbb5 (#650) Allow symlinks for configuration directories
94
+ c260cf1 Fix acceptance tests not managing their masters
95
+ 1c70f0c (#2128) Add support for setting node name based on a fact
96
+ c629958 (#2128) Get facts before retrieving catalog
97
+ cd4fe14 (#2128) Add the ability to specify a node name
98
+ 8ebec1e (#7193) Fix path issues with acceptance tests that call old shell tests
99
+ 16b2311 (#6885) puppet agent fingerprint requires --verbose to return a value.
100
+ 77a5987 maint: Confine augeas specs to require the augeas feature
101
+ 8eb0e16 (#2728) Add diff output for changes made by Augeas provider
102
+ a00fd25 maint: Refactor specs in preparation for making node name more flexible
103
+ 2f8bc26 maint: Fix order dependent test failure
104
+ c02126d (#5966) Add support for hostname regular expressions in auth.conf
105
+ 75e2764 (#5318) Always notice changes to manifests when compiling.
106
+ bc71266 maint: Fix order dependent spec failure for face indirection
107
+ 6547835 (#7690) Don't blow up when listing terminuses available for faces
108
+ 0bcbca5 maint: Dedup the loadpath so we don't have to walk it multiple times
109
+ 4a5e99d (#7681) Add an acceptance test for resource refs with array variables
110
+ 996dc07 Maint: Fix ellipses for short descriptions
111
+ 53af6f3 (#7563) DRY: Remove indirector boilerplate from individual faces
112
+ 74aff59 (#7564) Finish templates
113
+ 3026333 (#7561) Complete help text for all faces and actions
114
+ 13e473e Maint: Add ellipsis to generated short_descriptions.
115
+ 89d447b (#6962) Add "arguments" method to help API
116
+ 646919e (4123) Fix test for 4123/4 on old egrep in cent4
117
+ b101804 add puppet master polling step for ticket 7117
118
+ 9145569 maint: Remove reliance on system clock from schedule spec tests
119
+ 107b38a maint: Fix pacman provider to work with Ruby 1.9
120
+ 8eea3f5 Added the vcsrepo type and providers to the core
121
+ 8f0cecf Added the vcsrepo type and providers to the core
122
+ 4645c99 add puppet master polling step for ticket 7117
123
+ 17e7223 (#7507) Add exclude filter for ruby 1.9 spec failures
124
+ 181098b (#7502) Fixed parser spec for ruby 1.8.5
125
+ 9c3bedd (#7507) Add more 1.9 filters
126
+ f037662 (#6395) Add extpuppet help, eval, and interfaces
127
+ 4d4d587 Adding a sleep state post starting master
128
+ c81f5c6 Adding a sleep state post starting master
129
+ d1cc24f maint: fix spec_helper inclusions again.
130
+ 3ac7aed (#7523) Refactor the grammar to reduce duplication
131
+ d22b130 (#7114) Fix specs for ssh authorized key parsed provider
132
+ 551cb3e (#7114) Target returns correct value
133
+ 15c6fc7 (#7114) Add integration tests for authorized_key
134
+ a5ac82a (#7114) Improve unit tests for ssh_authorized_key
135
+ 1c7f0c3 (#7114) Improve value validation for authorized_key
136
+ 0b8ebac (#7300) Fix instances method of mount provider
137
+ 1dc662a (#1853) Pacman package provider
138
+ 6bb2a85 (#1853) Pacman package provider
139
+ c8775f9 (#7259) Remove ActiveRecord requirement from indirector face spec
140
+ 1ad8158 (#7259) Do not try to load all Terminus classes when configuring the Indirector
141
+ 8b76be3 (#3836) External nodes should only capture stdout
142
+ d63fc34 Revert "(#7220) Add the ability to "inherit" options."
143
+ c21539f maint: sync 'authconfig' to 'rest_authconfig' setting
144
+ 81d566f Fixed #7481 - Added MIT license to Thomas Bellman's function code
145
+ 1695dac (#7264) Docs: Clarify that subscribe/notify imply require/before
146
+ 8f907f2 adding test for ticket 7139
147
+ 90eb937 (#7139) Accept '/' as a valid path in filesets
148
+ 1f3b8e7 (#7300) Add specs for the mount provider
149
+ 1b2a7d9 case seems needless here as there is only two opts, also the rest of the file seems to use if so this should make things more consistant
150
+ 729336e (#6845) Mount writes incorrect vfstab entries
151
+ 16cf1ac (#6442) Be able to start agents --listen without namespaceauth.conf
152
+ e059539 Update CHANGELOG for 2.6.8
153
+ ac0581f (#7101) Fix template error messages in Ruby 1.8.5
154
+ 9d2500e (#7101) Fix template error messages in Ruby 1.8.5
155
+ 0352402 (#3420) Nagios "name" attribute does not output correctly
156
+ f656818 (#4487) When setting environment on a host, ensure it is a string.
157
+ 89e9a21 add test for ticket 7101
158
+ 74498af add test for ticket 7101
159
+ 2cce326 add test for ticket 7101
160
+ c1edcb2 add test for ticket 7101
161
+ 9329a1f (#7220) Add the ability to "inherit" options.
162
+ c306db2 (#6487) Add some testing for OS X version support in DirectoryService provider
163
+ 0008b63 (#6487) Directoryservice provider will fail in future OS releases
164
+ f21162b (#6368) Make the File type autorequire its nearest ancestor directory
165
+ c3a76a9 (#7021) Fix order dependent spec failures
166
+ 7bd6a2f maint: Remove unused code
167
+ 34f9f41 Maint: Fix a #4655 introduced log inconsistency
168
+ 6981ee5 Maint: Fix a #4655 introduced log inconsistency
169
+ cb43cfc Moving tests from Puppet-acceptance repo
170
+ ac428b9 Move tests from Puppet-acceptance repo
171
+ db26326 Move tests from puppet-acceptance repo
172
+ 6b18f8f Move acceptance tests from puppet-acceptance repo
173
+ 9a5bf6e Fixed #7166 - Replaced deprecated stomp "send" method with "publish"
174
+ a18ac78 maint: Fix PSON order dependency in test
175
+ 656eff8 (#4655) Allow stage to be set using a default class parameter
176
+ b3ab0d9 (#4655) Allow stage to be set using a default class parameter
177
+ 7d3c303 Fixed #7166 - Replaced deprecated stomp "send" method with "publish"
178
+ 7f658e6 vim: Initial ftplugin and indent support
179
+ ccbe9f3 Fixed #6681 - Remove --force-yes option from aptitude is used
180
+
1
181
  2.7.1
2
182
  ===
3
183
  a49d5b8 (#8048) Gem install puppet no longer fails if rdoc enabled.
@@ -734,8 +914,52 @@ d532e6d Fixing #3185 Rakefile is loading puppet.rb twice
734
914
  5aa596c Fix #3150 - require function doesn't like ::class syntax
735
915
  3457b87 Added time module to tagmail report
736
916
 
737
- 2.6.8rc1
917
+ 2.6.9
738
918
  ====
919
+ db1a392 (#7506) Organize READMEs; specify supported Ruby versions in README.md
920
+ 381fa40 (#6418) Make test 64118 more portable
921
+ 98ba407 (#7127) Stop puppet if a prerun command fails
922
+ 6996e0b Do not needlessly create multiple reports when creating a transaction
923
+ caca469 (#4416) Ensure types are providified after reloading
924
+ 413b136 (#4416) Always remove old provider before recreating it
925
+ d866ce1 Cleanup indentation, comment, and unused code
926
+ 98f58ce (#2128) Add WARNING for node_name_{fact,value} descriptions
927
+ 1cd848c (#2128) Whitespace only reflow commit
928
+ d9b5c1a (#2128) In-line docs for node_name_{fact,value}
929
+ 3f0dbb5 (#650) Allow symlinks for configuration directories
930
+ c260cf1 Fix acceptance tests not managing their masters
931
+ 1c70f0c (#2128) Add support for setting node name based on a fact
932
+ c629958 (#2128) Get facts before retrieving catalog
933
+ cd4fe14 (#2128) Add the ability to specify a node name
934
+ 8ebec1e (#7193) Fix path issues with acceptance tests that call old shell tests
935
+ 16b2311 (#6885) puppet agent fingerprint requires --verbose to return a value.
936
+ a00fd25 maint: Refactor specs in preparation for making node name more flexible
937
+ 75e2764 (#5318) Always notice changes to manifests when compiling.
938
+ 4a5e99d (#7681) Add an acceptance test for resource refs with array variables
939
+ 646919e (4123) Fix test for 4123/4 on old egrep in cent4
940
+ 8b76be3 (#3836) External nodes should only capture stdout
941
+ 8f907f2 adding test for ticket 7139
942
+ 90eb937 (#7139) Accept '/' as a valid path in filesets
943
+ 1b2a7d9 case seems needless here as there is only two opts, also the rest of the file seems to use if so this should make thin
944
+ 729336e (#6845) Mount writes incorrect vfstab entries
945
+ 16cf1ac (#6442) Be able to start agents --listen without namespaceauth.conf
946
+ 0352402 (#3420) Nagios "name" attribute does not output correctly
947
+ f656818 (#4487) When setting environment on a host, ensure it is a string.
948
+ 2cce326 add test for ticket 7101
949
+ c306db2 (#6487) Add some testing for OS X version support in DirectoryService provider
950
+ 0008b63 (#6487) Directoryservice provider will fail in future OS releases
951
+ 34f9f41 Maint: Fix a #4655 introduced log inconsistency
952
+ 6b18f8f Move acceptance tests from puppet-acceptance repo
953
+ 9a5bf6e Fixed #7166 - Replaced deprecated stomp "send" method with "publish"
954
+ 656eff8 (#4655) Allow stage to be set using a default class parameter
955
+ 7f658e6 vim: Initial ftplugin and indent support
956
+ ccbe9f3 Fixed #6681 - Remove --force-yes option from aptitude is used
957
+
958
+ 2.6.8
959
+ =====
960
+ c1edcb2 add test for ticket 7101
961
+ db26326 Move tests from puppet-acceptance repo
962
+ bee1ef7 Updated CHANGELOG for 2.6.8rc1
739
963
  8b7444d (#2331) Remove darwinports pkg provider, replace with rewritten macports provider
740
964
  65c4e14 Fixed #7082 - Added system support for groups
741
965
  b7f4ff7 (#7018) Give more context on the service type's assumptions. Wording tweaks.
@@ -0,0 +1,299 @@
1
+ Checklist (and a short version for the impatient)
2
+ =================================================
3
+
4
+ * Commits:
5
+
6
+ - Make commits of logical units.
7
+
8
+ - Check for unnecessary whitespace with "git diff --check" before
9
+ committing.
10
+
11
+ - Commit using Unix line endings (check the settings around "crlf" in
12
+ git-config(1)).
13
+
14
+ - Do not check in commented out code or unneeded files.
15
+
16
+ - The first line of the commit message should be a short
17
+ description (50 characters is the soft limit, excluding ticket
18
+ number(s)), and should skip the full stop.
19
+
20
+ - If there is an associated Redmine ticket then the first line
21
+ should include the ticket number in the form "(#XXXX) Rest of
22
+ message".
23
+
24
+ - The body should provide a meaningful commit message, which:
25
+
26
+ - uses the imperative, present tense: "change", not "changed" or
27
+ "changes".
28
+
29
+ - includes motivation for the change, and contrasts its
30
+ implementation with the previous behavior.
31
+
32
+ - Make sure that you have tests for the bug you are fixing, or
33
+ feature you are adding.
34
+
35
+ - Make sure the test suite passes after your commit (rake spec unit).
36
+
37
+ * Submission:
38
+
39
+ * Pre-requisites:
40
+
41
+ - Make sure you have a [Redmine account](http://projects.puppetlabs.com)
42
+
43
+ - Sign the [Contributor License Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)
44
+
45
+ * Preferred method:
46
+
47
+ - Fork the repository on GitHub.
48
+
49
+ - Push your changes to a topic branch in your fork of the
50
+ repository.
51
+
52
+ - Submit a pull request to the repository in the puppetlabs
53
+ organization.
54
+
55
+ * Alternate methods:
56
+
57
+ - Mail patches to puppet-dev mailing list using `rake mail_patches`,
58
+ or `git-format-patch(1)` & `git-send-email(1)`.
59
+
60
+ - Attach patches to Redmine ticket.
61
+
62
+ The long version
63
+ ================
64
+
65
+ 0. Decide what to base your work on.
66
+
67
+ In general, you should always base your work on the oldest
68
+ branch that your change is relevant to.
69
+
70
+ - A bug fix should be based on the current stable series. If the
71
+ bug is not present in the current stable release, then base it on
72
+ `master`.
73
+
74
+ - A new feature should be based on `master`.
75
+
76
+ - Security fixes should be based on the current maintenance series
77
+ (that is, the previous stable series). If the security issue
78
+ was not present in the maintenance series, then it should be
79
+ based on the current stable series if it was introduced there,
80
+ or on `master` if it is not yet present in a stable release.
81
+
82
+ The current stable series is 2.7.x, and the current maintenance
83
+ series is 2.6.x.
84
+
85
+ 1. Make separate commits for logically separate changes.
86
+
87
+ Please break your commits down into logically consistent units
88
+ which include new or changed tests relevent to the rest of the
89
+ change. The goal of doing this is to make the diff easier to
90
+ read for whoever is reviewing your code. In general, the easier
91
+ your diff is to read, the more likely someone will be happy to
92
+ review it and get it into the code base.
93
+
94
+ If you're going to refactor a piece of code, please do so as a
95
+ separate commit from your feature or bug fix changes.
96
+
97
+ We also really appreciate changes that include tests to make
98
+ sure the bug isn't re-introduced, and that the feature isn't
99
+ accidentally broken.
100
+
101
+ Describe the technical detail of the change(s). If your
102
+ description starts to get too long, that's a good sign that you
103
+ probably need to split up your commit into more finely grained
104
+ pieces.
105
+
106
+ Commits which plainly describe the the things which help
107
+ reviewers check the patch and future developers understand the
108
+ code are much more likely to be merged in with a minimum of
109
+ bike-shedding or requested changes. Ideally, the commit message
110
+ would include information, and be in a form suitable for
111
+ inclusion in the release notes for the version of Puppet that
112
+ includes them.
113
+
114
+ Please also check that you are not introducing any trailing
115
+ whitespaces or other "whitespace errors". You can do this by
116
+ running "git diff --check" on your changes before you commit.
117
+
118
+ 2. Sign the Contributor License Agreement
119
+
120
+ Before we can accept your changes, we do need a signed Puppet
121
+ Labs Contributor License Agreement (CLA).
122
+
123
+ You can access the CLA via the
124
+ [Contributor License Agreement link](https://projects.puppetlabs.com/contributor_licenses/sign)
125
+ in the top menu bar of our Redmine instance. Once you've signed
126
+ the CLA, a badge will show up next to your name on the
127
+ [Puppet Project Overview Page](http://projects.puppetlabs.com/projects/puppet?jump=welcome),
128
+ and your name will be listed under "Contributor License Signers"
129
+ section.
130
+
131
+ If you have any questions about the CLA, please feel free to
132
+ contact Puppet Labs via email at cla-submissions@puppetlabs.com.
133
+
134
+ 3. Sending your patches
135
+
136
+ We accept multiple ways of submitting your changes for
137
+ inclusion. They are listed below in order of preference.
138
+
139
+ Please keep in mind that any method that involves sending email
140
+ to the mailing list directly requires you to be subscribed to
141
+ the mailing list, and that your first post to the list will be
142
+ held in a moderation queue.
143
+
144
+ * GitHub Pull Requests
145
+
146
+ To submit your changes via a GitHub pull request, we _highly_
147
+ recommend that you have them on a topic branch, instead of
148
+ directly on "master" or one of the release, or RC branches.
149
+ It makes things much easier to keep track of, especially if
150
+ you decide to work on another thing before your first change
151
+ is merged in.
152
+
153
+ GitHub has some pretty good
154
+ [general documentation](http://help.github.com/) on using
155
+ their site. They also have documentation on
156
+ [creating pull requests](http://help.github.com/send-pull-requests/).
157
+
158
+ In general, after pushing your topic branch up to your
159
+ repository on GitHub, you'll switch to the branch in the
160
+ GitHub UI and click "Pull Request" towards the top of the page
161
+ in order to open a pull request.
162
+
163
+ You'll want to make sure that you have the appropriate
164
+ destination branch in the repository under the puppetlabs
165
+ organization. This should be the same branch that you based
166
+ your changes off of.
167
+
168
+ * Other pull requests
169
+
170
+ If you already have a publicly accessible version of the
171
+ repository hosted elsewhere, and don't wish to or cannot use
172
+ GitHub, you can submit your change by requesting that we pull
173
+ the changes from your repository by sending an email to the
174
+ puppet-dev Google Groups mailing list.
175
+
176
+ `git-request-pull(1)` provides a handy way to generate the text
177
+ for the email requesting that we pull your changes (and does
178
+ some helpful sanity checks in the process).
179
+
180
+ * Mailing patches to the mailing list
181
+
182
+ If neither of the previous methods works for you, then you can
183
+ also mail the patches inline to the puppet-dev Google Group
184
+ using either `rake mail_patches`, or by using
185
+ `git-format-patch(1)`, and `git-send-email(1)` directly.
186
+
187
+ `rake mail_patches` handles setting the appropriate flags to
188
+ `git-format-patch(1)` and `git-send-email(1)` for you, but
189
+ doesn't allow adding any commentary between the '---', and the
190
+ diffstat in the resulting email. It also requires that you
191
+ have created your topic branch in the form
192
+ `<type>/<parent>/<name>`.
193
+
194
+ If you decide to use `git-format-patch(1)` and
195
+ `git-send-email(1)` directly, please be sure to use the
196
+ following flags for `git-format-patch(1)`: -C -M -s -n
197
+ --subject-prefix='PATCH/puppet'
198
+
199
+ * Attaching patches to Redmine
200
+
201
+ As a method of last resort you can also directly attach the
202
+ output of `git-format-patch(1)`, or `git-diff(1)` to a Redmine
203
+ ticket.
204
+
205
+ If you are generating the diff outside of Git, please be sure
206
+ to generate a unified diff.
207
+
208
+ 4. Update the related Redmine ticket.
209
+
210
+ If there's a Redmine ticket associated with the change you
211
+ submitted, then you should update the ticket to include the
212
+ location of your branch, and change the status to "In Topic
213
+ Branch Pending Merge", along with any other commentary you may
214
+ wish to make.
215
+
216
+ How to track the status of your change after it's been submitted
217
+ ================================================================
218
+
219
+ Shortly after opening a pull request on GitHub, there should be an
220
+ automatic message sent to the puppet-dev Google Groups mailing list
221
+ notifying people of this. This notification is used to let the Puppet
222
+ development community know about your requested change to give them a
223
+ chance to review, test, and comment on the change(s).
224
+
225
+ If you submitted your change via manually sending a pull request or
226
+ mailing the patches, then we keep track of these using
227
+ [patchwork](https://patchwork.puppetlabs.com). When code is merged
228
+ into the project it is automatically removed from patchwork, and the
229
+ Redmine ticket is manually updated with the commit SHA1. In addition,
230
+ the ticket status must be updated by the person who merges the topic
231
+ branch to a status of "Merged - Pending Release"
232
+
233
+ We do our best to comment on or merge submitted changes within a week.
234
+ However, if there hasn't been any commentary on the pull request or
235
+ mailed patches, and it hasn't been merged in after a week, then feel
236
+ free to ask for an update by replying on the mailing list to the
237
+ automatic notification or mailed patches. It probably wasn't
238
+ intentional, and probably just slipped through the cracks.
239
+
240
+ Additional Resources
241
+ ====================
242
+
243
+ * [Getting additional help](http://projects.puppetlabs.com/projects/puppet/wiki/Getting_Help)
244
+
245
+ * [Writing tests](http://projects.puppetlabs.com/projects/puppet/wiki/Development_Writing_Tests)
246
+
247
+ * [Bug tracker (Redmine)](http://projects.puppetlabs.com)
248
+
249
+ * [Patchwork](https://patchwork.puppetlabs.com)
250
+
251
+ * [Contributor License Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)
252
+
253
+ * [General GitHub documentation](http://help.github.com/)
254
+
255
+ * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
256
+
257
+ If you have commit access to the repository
258
+ ===========================================
259
+
260
+ Even if you have commit access to the repository, you'll still need to
261
+ go through the process above, and have someone else review and merge
262
+ in your changes. The rule is that all changes must be reviewed by a
263
+ developer on the project (that didn't write the code) to ensure that
264
+ all changes go through a code review process.
265
+
266
+ Having someone other than the author of the topic branch recorded as
267
+ performing the merge is the record that they performed the code
268
+ review.
269
+
270
+ * Merging topic branches
271
+
272
+ When merging code from a topic branch into the integration branch
273
+ (Ex: master, 2.7.x, 1.6.x, etc.), there should always be a merge
274
+ commit. You can accomplish this by always providing the `--no-ff`
275
+ flag to `git merge`.
276
+
277
+ git merge --no-ff --log tickets/master/1234-fix-something-broken
278
+
279
+ The reason for always forcing this merge commit is that it
280
+ provides a consistent way to look up what changes & commits were
281
+ in a topic branch, whether that topic branch had one, or 500
282
+ commits. For example, if the merge commit had an abbreviated
283
+ SHA-1 of `coffeebad`, then you could use the following `git log`
284
+ invocation to show you which commits it brought in:
285
+
286
+ git log coffeebad^1..coffeebad^2
287
+
288
+ The following would show you which changes were made on the topic
289
+ branch:
290
+
291
+ git diff coffeebad^1...coffeebad^2
292
+
293
+ Because we _always_ merge the topic branch into the integration
294
+ branch the first parent (`^1`) of a merge commit will be the most
295
+ recent commit on the integration branch from just before we merged
296
+ in the topic, and the second parent (`^2`) will always be the most
297
+ recent commit that was made in the topic branch. This also serves
298
+ as the record of who performed the code review, as mentioned
299
+ above.