summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'template-not-defined-test-failure-2.7.x' into 2.7.xJacob Helwig2011-06-282-7/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * template-not-defined-test-failure-2.7.x: Clean up indentation, whitespace, and commented out code Remove order dependency from functions integration spec
| * | | | Clean up indentation, whitespace, and commented out codeJacob Helwig2011-06-281-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mis-indented code, extra newlines, and commented out code were noticed while investigating the order dependent test failure fixed in 4365c8ba. Reviewed-by: Max Martin <max@puppetlabs.com>
| * | | | Remove order dependency from functions integration specJacob Helwig2011-06-281-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test in spec/integration/parser/functions_spec.rb would fail when the spec tests were run in the order (among other orderings): spec/unit/parser/functions/tag_spec.rb spec/unit/parser/templatewrapper_spec.rb spec/integration/parser/functions_spec.rb There are tests that would cause the "template" function to be loaded into the root environment. Puppet::Parser::Functions.function("template") would then detect its presence and P::P::F.rmfunction("template") would fail since #function(...) looks in more than just the current environment to see if a function is defined, while #rmfunction(...) only looks in the current environment to see if a function can be removed. In the test ordering specified earlier, tag_spec.rb would load the "template" function, and templatewrapper_spec.rb would create a current environment that would mask the root environment for #rmfunction(...), but not for #function(...) Since #rmfunction(...) only looks in the current environment, we should be using #functions.include?("template") since that matches the check that #rmfunction(...) itself uses. Paired-with: Nick Lewis <nick@puppetlabs.com>
* | | | (#8048) Gem install puppet no longer fails if rdoc enabled.Josh Cooper2011-06-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pre-released versions of faces may have used the "desc" option, which was later changed to "description", and an alias provided for "desc". The previous fix for 8048 removed this backwards compatibility (since it was never released to customers). This commit fixes the test case that assumed the "desc" option was still available. Reviewed-By: Daniel Pittman <daniel@puppetlabs.com>
* | | | Merging up 2.7.1Michael Stahnke2011-06-224-50/+47
|\ \ \ \
| * | | | Updating for 2.7.1 release.Michael Stahnke2011-06-222-1/+5
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>
| * | | | (#8048) Gem install puppet no longer fails if rdoc enabled.Michael Stahnke2011-06-221-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rdoc wouldn't parse lib/puppet/interface/options.rb The offending code has been removed. This was causing issues for users wishing to upgrade puppet, via gem or puppet. Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>
| * | | | Updating CHANGELOG for 2.7.0Michael Stahnke2011-06-161-40/+34
| | | | |
| * | | | (#7506) Specify supported Ruby versions in README.mdnfagerlund2011-06-141-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The README was not specific enough about the current state of our Ruby support. This commit lays out our current status as discussed in issue #7506 and in greater detail on the internal mailing list around April 8, 2011 under the subject "Statler Ruby Versions Support." Paired-With: Matt Robinson <matt@puppetlabs.com>
* | | | | Merge branch 'ticket/2.7.x/7224' into 2.7.xNick Lewis2011-06-147-14/+128
|\ \ \ \ \
| * | | | | (#7224) Reword 'hostname was not match' error messageNick Lewis2011-06-145-14/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This error message is grammatically incorrect and unhelpful, so we replace it with a message that explains more correctly what went wrong and what was expected. This message happens when making an authenticated connection to a server where the certificate doesn't match its hostname. This happens in the REST terminuses, so we wrap their HTTP methods with a helper that will catch the appropriate SSLError and re-raise it with the better message stating the hostname used, and the list of hostnames that we were expecting it to be a part of. Unfortunately, because the certificate in question isn't available at error time, we have to use the Net::HTTP#verify_callback to capture it. Paired-With: Jacob Helwig <jacob@puppetlabs.com> Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
| * | | | | (#7224) Add a helper to Puppet::SSL::Certificate to retrieve alternate namesNick Lewis2011-06-142-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Alternate names, if present, are specified in the subjectAltName extension of the certificate. The values are in the form: "DNS:alternate_name1, DNS:alternate_name2" This helper will retrieve the value of the subjectAltName extension and extract the alternate names, returning and empty list if the extension is absent. This will make it easier to access the entire list of possible names for a certificate, rather than just the common name; this is helpful for generating more detailed SSL error messages. Paired-With: Jacob Helwig <jacob@puppetlabs.com>
* | | | | | Merge branch 'ticket/2.7.x/5641' into 2.7.xnfagerlund2011-06-131-12/+23
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | (#5641) Help text: document that puppet doc takes modulepath, manifestdir, ↵nfagerlund2011-06-131-12/+23
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and environment options Puppet doc didn't have the usual subcommand caveat about configuration settings being valid command line options, nor did it explicitly call out the three settings that it actually cares about. I opted to do the latter, since the number of relevant settings was so small. Note that --environment is currently broken; this is filed as bug #7907.
| | | * | Merge branch 'template-not-defined-test-failure'Jacob Helwig2011-06-172-7/+2
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * template-not-defined-test-failure: Clean up indentation, whitespace, and commented out code Remove order dependency from functions integration spec
| | | | * | Clean up indentation, whitespace, and commented out codeJacob Helwig2011-06-171-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The mis-indented code, extra newlines, and commented out code were noticed while investigating the order dependent test failure fixed in 4365c8ba. Reviewed-by: Max Martin <max@puppetlabs.com>
| | | | * | Remove order dependency from functions integration specJacob Helwig2011-06-171-1/+1
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test in spec/integration/parser/functions_spec.rb would fail when the spec tests were run in the order (among other orderings): spec/unit/parser/functions/tag_spec.rb spec/unit/parser/templatewrapper_spec.rb spec/integration/parser/functions_spec.rb There are tests that would cause the "template" function to be loaded into the root environment. Puppet::Parser::Functions.function("template") would then detect its presence and P::P::F.rmfunction("template") would fail since #function(...) looks in more than just the current environment to see if a function is defined, while #rmfunction(...) only looks in the current environment to see if a function can be removed. In the test ordering specified earlier, tag_spec.rb would load the "template" function, and templatewrapper_spec.rb would create a current environment that would mask the root environment for #rmfunction(...), but not for #function(...) Since #rmfunction(...) only looks in the current environment, we should be using #functions.include?("template") since that matches the check that #rmfunction(...) itself uses. Paired-with: Nick Lewis <nick@puppetlabs.com>
| | | * | Merge branch '2.7.x'Nick Lewis2011-06-094-120/+49
| | | |\ \ | |_|_|/ / |/| | | | | | | | | | | | | | Conflicts: acceptance/tests/ticket_7117_broke_env_criteria_authconf.rb
* | | | | Make temporary auth.conf in acceptance test readable by PuppetNick Lewis2011-06-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The create_remote_file method uploads files with mode 600 since that is the default mode for Tempfile. The puppet user thus isn't able to read the temporary auth.conf, so it just uses the default rules instead, causing this test to fail. Also, this test was dependent on running after another test which set up a cert on the agents. Since that can't be guaranteed, the master now runs with autosign to ensure the agents can connect. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
* | | | | Merge branch 'ticket/2.7.x/fix-broken-acceptance-tests' into 2.7.xNick Lewis2011-06-094-134/+50
|\ \ \ \ \
| * | | | | (#7117) Use a different auth.conf instead of overwriting the defaultNick Lewis2011-06-091-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was previously replacing the default auth.conf with its own, and restoring it afterward. This was error-prone, failing if there wasn't an initial auth.conf present. It would also causing cascading failures when this test failed, by leaving a non-standard auth.conf for other tests to use. Since this copy-and-restore behavior can be replaced by simply specifying a different auth file to use, we do that instead. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com> Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
| * | | | | (#3360) Delete SSL directory in acceptance test before runningNick Lewis2011-06-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A leftover SSL directory from another test, including a cert for the agent, will cause this test to fail. So before running, we remove the SSL directory to ensure this doesn't happen. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com> Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
| * | | | | Update acceptance tests to use with_master_running_onNick Lewis2011-06-093-75/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few of these tests weren't yet using this helper, and were instead implementing similar behavior on their own. Now they all use the standard method. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com> Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
| * | | | | Remove pending copy of an active acceptance testNick Lewis2011-06-091-50/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was introduced as pending in 2.6.x, and active in 2.7.x. When 2.6.x was merged to 2.7.x, the pending version was merged along as well, causing no visible conflicts. It's obviously not pending, so remove it. Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com>
| | | * | Merge branch '2.7.x'Nick Lewis2011-06-08101-1077/+4261
| | | |\ \ | |_|_|/ / |/| | | |
* | | | | Merge branch '2.7rc' into 2.7.xNick Lewis2011-06-0875-593/+3556
|\| | | |
| * | | | Updated CHANGELOG for 2.7.0rc4Michael Stahnke2011-06-081-0/+49
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>
| * | | | Merge branch 'maint/2.7rc/static_manpages' into 2.7rcnfagerlund2011-06-0841-288/+2922
| |\ \ \ \
| | * | | | Maint: Update static man pages for 2.7.0nfagerlund2011-06-0840-277/+2879
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit updates the static man pages for the final 2.7.0 release. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
| | * | | | Maint: Update static man page generator for Faces.nfagerlund2011-06-081-11/+43
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The man page updater wasn't making man pages for the new Faces app. This commit gives it that capability, and handles the name collision on puppet resource. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
| * | | | Merge branch 'ticket/2.7rc/7833-further_help_adjustments' into 2.7rcnfagerlund2011-06-0811-32/+75
| |\ \ \ \
| | * | | | (#7833) Several help text/template editsnfagerlund2011-06-0811-32/+75
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes the following changes: * Changes wrapping on some "returns" blocks to accomodate the way we prepend "RETURNS: " to the first line in short help. * Overrides description for save on faces where save is invalid. (Since save has an inherited description, the description was contradicting the summary.) * Adds notes on dummy arguments to short_description where applicable, so as to show up in short help. * Adds the termini list to the action short help template. * Removes the authors block from short help for faces. (Save it for the man page.) * Several trivial wording changes. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
| * | | | maint: more work on regexp matching in Test::Unit assertions.Daniel Pittman2011-06-071-5/+3
| | | | |
| * | | | maint: acceptance tests need to search for bin/falseDaniel Pittman2011-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Because Mac and Linux systems hide bin/false in different places, we should have the catalog we are testing with search for it in the candidate places.
| * | | | Merge branch 'bug/2.7rc/7828-face-synopsis-generators-ram-options-together' ↵Daniel Pittman2011-06-074-42/+67
| |\ \ \ \ | | | | | | | | | | | | | | | | | | into 2.7rc
| | * | | | (#7828) Fix whitespace in synopsis generator.Daniel Pittman2011-06-074-42/+67
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We accidentally omitted whitespace between multiple options while building the synopsis. This fixes that, by introducing a breakable space in the right location. Additionally, we extract the code that was 99 percent identical from the face and action synopsis generators, push it down into the documentation module, and then invoke it from both places. This eliminates the duplicate code, allowing me to fix that bug once and have it apply to both parts of the code; this is pretty much assured to be true any time we change the synopsis generation. Reviewed-By: Nick Fagerlund <nick.fagerlund@puppetlabs.com>
| * | | | maint: handle incoherent Test::Unit assertions.Daniel Pittman2011-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So, it turns out that the 1.8.7 Test::Unit assertions are a bit quirky. If we use 'assert_match' it will turn a String into a regular expression by passing it through Regexp.quote automatically. If you use 'assert_no_match', though, it will not do that. It will just complain that it isn't a Regexp and blow up. So, we manually quote outside the assertion in both cases, and things should just work.
| * | | | Merge branch 'feature/2.7rc/6873-add-static-compiler' into 2.7rcDaniel Pittman2011-06-071-0/+137
| |\ \ \ \
| | * | | | (#6873) Add Static Compiler terminus to 2.7.0Luke Kaines2011-06-071-0/+137
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the static compiler terminus to the release. This wraps the default compiler terminus, and post-processes the catalog to rewrite every file reference using the 'puppet://' URI/protocol into filebucket references that use the MD5 checksum of the file contents. This provides a genuinely static catalog, in terms of content: there are no external dependencies that can change to make the behaviour of applying this catalog change. It also eliminates the describe calls from file checking, as all the metadata is stored locally in the catalog. This can be a substantial performance increase for nodes, especially those that manage large trees of recursive files. To use this set the `catalog_terminus` to `static_compiler`; the resultant catalog will then reference only static content. This does not, however, put the required files into the filebucket on the client. There are some limitations of this code: * Files are all read into memory rather than streamed. This will definitely cause problems with large files, but the filebucket doesn't currently handle streaming. * We think the recursion behavior is equivalent, but can't really guarantee it without a good bit of testing. * You have to populate the client filebucket manually. We don't have any support for doing this automatically, not even through variant access to the catalog downloader. * Behavior on the server is currently undefined if your puppet masters are behind a load balancer and they're configured to do fileserving through that load balancer. It should work, but it probably won't be that fast. You can see https://github.com/lak/puppet-static-compiler for the original prototype this was inherited from, which includes some example code for scanning the downloaded catalog and fetching resources into the filebucket. Reviewed-By: Daniel Pittman <daniel@puppetlabs.com>
| * | | | Merge branch 'bug/2.7rc/7728-resource-failure-leads-to-extra-warnings' into ↵Daniel Pittman2011-06-074-4/+40
| |\ \ \ \ | | | | | | | | | | | | | | | | | | 2.7rc
| | * | | | (#7728) Acceptance test for whit notifications.Daniel Pittman2011-06-071-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an acceptance test to verify that we emit the expected logs, but none of the unexpected logs, when we process a manifest showing the whit notification problem. Reviewed-By: Dominic Maraglia <dominic@puppetlabs.com> Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
| | * | | | (#7728) Suppress notifications from container whits.Daniel Pittman2011-06-071-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We introduced changes to our graph to reduce the number of edges when we had container dependencies. As part of this the 'whit' object was created, and used as an intermediate vertex to simplify processing. During that change we introduced additional reporting, based on those whit objects, about containment relationships during resource application failure. Specifically, we would now report that the containing class(es) and stages of any failed resource were failed, point-blank. This was unclear, because the entire class had not failed, but only part of it, but also unhelpful, because it turned a single failure into at least one additional report that contained no additional information. Now, instead, we suppress reporting for the whit resources. We still process them identically; just the report is eliminated. It isn't absolutely clear that this is the correct long term direction for handling these objects, but it is the minimal change for the RC release. Reviewed-By: Jacob Helwig <jacob@puppetlabs.com>
| | * | | | maint: remove an unhelpful pending test.Daniel Pittman2011-06-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been pending approximately forever, and adds little value; removing the warning reduces noise without value.
| | * | | | maint: fix misnamed acceptance test for #7139Daniel Pittman2011-06-071-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Just s/\.rm/\.rb/ on the filename.
| * | | | | Merge branch 'ticket/2.7rc/7764-Faces_help_revisions' into 2.7rcnfagerlund2011-06-0724-237/+278
| |\ \ \ \ \ | | |/ / / / | |/| | | |
| | * | | | (#7764, 7775, 7778) Revisions to Faces help textnfagerlund2011-06-0723-209/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per UX review of help text, this commit makes several changes over the breadth of the Faces help: * Preface API-only action summaries/descriptions with "API only." (issue #7775) * Provide both CLI and API info in "returns," with the CLI info first. (issue #7778) * Summaries should be sentences. (Add punctuation.) * First sentences of descriptions should reiterate summaries. (Summaries and descriptions should be displayed far enough apart that this isn't a problem.) * Standardize on "subcommand" instead of "face" when talking about the entity you invoke at the command line. (Use "face" when describing API use.) * Fix outdated or clunky text in several faces.
| | * | | | (#7773, 7776, 7764) Several help template tweaksnfagerlund2011-06-074-30/+19
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per UX review of help output, this commit makes several changes to templates and shared help text: * Change "unknown" to "undocumented" * Remove copyright from short help * Point readers to the man pages (issue 7773) * Remove examples from short help (issue 7776) * Remove summary from short help and make it a fallback for description * Edit common option summaries to fit on a single 80-col line
* | | | | Merge branch '2.6.x' into 2.7.xNick Lewis2011-06-0826-484/+705
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: acceptance/tests/ticket_5477_master_not_dectect_sitepp.rb lib/puppet/application/apply.rb lib/puppet/configurer.rb lib/puppet/configurer/fact_handler.rb spec/unit/application/apply_spec.rb spec/unit/configurer/fact_handler_spec.rb spec/unit/configurer_spec.rb
| * | | | Merge branch 'ticket/2.6.x/2128_docstrings' into 2.6.xJeff McCune2011-06-081-7/+17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/2.6.x/2128_docstrings: (#2128) Add WARNING for node_name_{fact,value} descriptions (#2128) Whitespace only reflow commit (#2128) In-line docs for node_name_{fact,value}
| | * | | | (#2128) Add WARNING for node_name_{fact,value} descriptionsJeff McCune2011-06-081-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minor change to add a WARNING string as per feedback from UX. Reviewed-by: Randall Hansen <randall@puppetlabs.com>