summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Removing the Agent code that added client-side factsLuke Kanies2009-02-062-46/+0
| | | | | | | | | | | | | | | | | | It's now moved to the Facter indirector terminus. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Adding Puppet client facts to Facter facts.Luke Kanies2009-02-062-1/+27
| | | | | | | | | | | | | | | | | | | | | This work was previously done in the Master client class. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Clarifying how node names are used during catalog compilationLuke Kanies2009-02-062-61/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now use any passed in node (used by bin/puppet), then any authenticated node info (e.g., the cert name), then any passed in information (usually the host name). The third option will never be used in Puppet's architecture, but simplifies using the API for other users. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Reformatting Indirector catalog compiler testsLuke Kanies2009-02-061-119/+121
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Removing ConfigStore code that was never actually used.Luke Kanies2009-02-061-60/+0
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Renmaing Puppet::Network::Client::Master to Puppet::AgentLuke Kanies2009-02-063-117/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | Made minor changes, including removing the parent class. The functionality hasn't changed yet -- that comes in later patches -- but all but a couple of the older tests pass. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Revert "Adding the first bits of an Agent class."Luke Kanies2009-02-062-224/+0
| | | | | | | | | | | | This reverts commit bbd99cc87a775732f2fed3686962647a5c30c5b8.
* | | Revert "This is work that I've decided not to keep"Luke Kanies2009-02-067-669/+106
| | | | | | | | | | | | This reverts commit f57a5e88229578747dde2c90af3a696ad0172e72.
* | | This is work that I've decided not to keepLuke Kanies2009-02-067-106/+669
| | | | | | | | | | | | | | | | | | | | | so I'm just applying it here so it continues to show up in the history in case I ever want to look at it again. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Adding a new Agent::Downloader class for downloading files.Luke Kanies2009-02-062-0/+260
| | | | | | | | | | | | | | | | | | This will handling downloading facts and plugins. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Adding the first bits of an Agent class.Luke Kanies2009-02-062-0/+224
| | | | | | | | | | | | | | | | | | | | | This class replaces the existing, all-knowing Client::Master class, and it will hopefully be more reasonable in scope. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Adding support for skipping cached indirection instances.Luke Kanies2009-02-064-5/+29
| | | | | | | | | | | | | | | | | | | | | This will allow the soon-to-be-created Agent class to skip cached catalogs when desired. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Change the way the tags and params are handled in railsBrice Figureau2009-02-064-41/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rationale behind this patch is that it takes a lots of time to let rails unserialize the ParamValue and ResourceTag object on each compilation, just to throw them away the second after. The idea is to fetch directly (and batched host per host) the parameters and tags from the database and then returns them as hash. This allows the no-modification case to takes at least 2 times less than before. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | Add methods to return hash instead of objects to params and tagsBrice Figureau2009-02-062-12/+49
| | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | Rails serialization module to help serialize/unserialize some Puppet ObjectsBrice Figureau2009-02-061-0/+18
| | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | Fixing #1913 - 'undef' resource values do not get copied to the dbLuke Kanies2009-02-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are unfortunately no tests for this patch; the Rails code is disappointingly low on tests as it is, and it would have been essentially an herculian effort add all of the necessary tests just to make sure this worked. I've verified it works in practice, which should be sufficient for now. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Fixing #1914 - 'undef' relationship metaparameters do not stackLuke Kanies2009-02-062-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | This allows you to specify that a metaparameter is undef inside a definition and keep any parameters from being inherited from the parent. Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Revert "Fixed #1916 - Added environment option to puppetd"James Turnbull2009-02-012-15/+3
| | | | | | | | | | | | This reverts commit 8d0086b3cb877765857b7ff0dee454b14417430a.
* | | Fixed #1916 - Added environment option to puppetdJames Turnbull2009-01-312-3/+15
| | |
* | | Fixed #1910 - Updated logcheck regexJames Turnbull2009-01-312-1/+3
| | |
* | | Typo fixJames Turnbull2009-01-271-5/+5
| | |
* | | Fixed #1879 - Added to tidy documentationJames Turnbull2009-01-232-5/+17
| | |
* | | Fixed #1881 - Added md5lite explanationJames Turnbull2009-01-222-1/+7
| | |
* | | Fixed #1877 - Tidy type reference update for use of 0James Turnbull2009-01-222-1/+5
| | |
* | | Fix autotest on win32James Turnbull2009-01-222-1/+3
| | |
* | | Fix #1560Paul Lathrop2009-01-223-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an rspec test which demonstrates #1560 and a custom 'process' method for the aliases provider to fix it. The default processing uses split() to break the line into records on the separator, which breaks if records can contain the separator. The custom method I've added uses a 'limited' split() to break the line on the first separator only. This commit fixes #1560 Signed-off-by: Paul Lathrop <paul@tertiusfamily.net>
* | | In order for ReST formatting to work properly, newlines andJames Turnbull2009-01-222-1/+3
| | | | | | | | | | | | | | | | | | indentation of doc strings must be retained. Signed-off-by: Thomas Bellman <bellman@nsc.liu.se>
* | | Fix Bug #1629Francois Deppierraz2009-01-132-12/+116
| | | | | | | | | | | | | | | A refactoring of ssh_authorized_key parsed provider was needed and tests were improved. flush method has been split for clarity.
* | | Fix #1835 : Add whitespace/quote parsing toBryan Kearney2009-01-132-94/+192
| | |
* | | Fix #1847 - Force re-examination of all files to generate correct indicesBrice Figureau2009-01-131-0/+1
| | | | | | | | | | | | | | | | | | | | | This bug is in fact a RDoc issue. The work-around is to always force a full parse scan and not only what has changed. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | Merge commit 'masterzen/tickets/1834'Luke Kanies2008-12-3010-11/+19
|\ \ \
| * | | Fix #1834 part2 - Fix tests when no railsBrice Figureau2008-12-203-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * | | Fix #1834 part1 - Fix tempfile failing testsBrice Figureau2008-12-207-7/+14
| | | | | | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | | Fix #1829 - Add puppet function versioncmp to compare versionsBrice Figureau2008-12-272-0/+39
| | | | | | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | | Fix #1828 - Scope.number? wasn't strict enough and could produce wrong resultsBrice Figureau2008-12-272-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some invalid numbers were treated as numbers and conversion to Integer was failing returning 0 (for instance 0.24.7). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | | Fix #1807 - make Puppet::Util::Package.versioncmp a module functionBrice Figureau2008-12-272-0/+23
| | | | | | | | | | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | | | Merge branch '0.24.x'James Turnbull2008-12-2741-255/+591
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: CHANGELOG
| * | | Updated Red Hat spec file 0.24.7James Turnbull2008-12-162-3/+23
| | |/ | |/|
| * | Not using a temporary file when locking files for writing.Luke Kanies2008-12-153-49/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The temporary file was not actually useful, because we could never really get atomic renames, for annoying, complicated reasons. This hopefully finally fixes #1812. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Modifying the corruption-checking test.Luke Kanies2008-12-152-27/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | It is now more likely to fail if there's a problem, since the yaml should be corrupt, causing a yaml failure. Also removing the equivalent test from the Storage module. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Issue 1804 VDev with the same devices should be in syncAndrew Shafer2008-12-155-16/+158
| | | | | | | | | | | | | | | Added VDev and MultiVDev properties to the ZPool type to handle logic Vdevs with the same devices are now in sync even if the order changes
| * | Documentation fixesJames Turnbull2008-12-1324-130/+181
| | |
| * | Fixing #1812 (hopefully) - adding read and write locks to yaml.Luke Kanies2008-12-122-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | It's obviously not really possible to test that this fixes it, but I'm confident that the locks work, and now we're using them, so it *should*. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Preparing to fix #1812 - Moving locking code to a moduleLuke Kanies2008-12-127-71/+237
| | | | | | | | | | | | | | | | | | | | | This moves the locking code out of Puppet::Util into a separate module, to make the code cleaner. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fix #1815 - puppetdoc --all crash on resource overrideBrice Figureau2008-12-101-1/+1
| | |
* | | Fixed #1840 - Bug fixes and improvements for Emacs puppet-mode.elJames Turnbull2008-12-272-31/+35
| |/ |/|
* | Fixing #1729 - puppetmasterd can now read certs at startupLuke Kanies2008-12-188-126/+165
| | | | | | | | | | | | | | | | | | | | The main aspect of this solution is to create a site-wide Puppet::SSL::Host instance to cache ssl key and certificate, so that by the time we've switched UIDs, we've got the key and cert in memory. Then webrick just uses that, rather than creating a new Host instance. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Canonicalizing Setting section names to symbols.Luke Kanies2008-12-182-14/+19
| | | | | | | | | | | | | | | | | | I thought I was already using symbols everywhere so it didn't matter, but there are a few places (e.g., the process name) where they were strings, and that made things not work so much. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing all of the test/ tests I broke in previous dev.Luke Kanies2008-12-1816-346/+59
| | | | | | | | | | | | | | | | | | Most of these are straightforward changes to the tests, but a couple required small refactorings (e.g., References can now be created with Puppet::Type instances, and they know how to extract the type/title from them). Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating the Puppet::Type.create.Luke Kanies2008-12-1878-463/+465
| | | | | | | | | | | | | | This method is no longer necessary; you can use the normal 'new' class method. Signed-off-by: Luke Kanies <luke@madstop.com>