summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* | Environments now use their own modulepath method.Luke Kanies2009-02-181-2/+2
| | | | | | | | | | | | They were previously still using just the variable itself. Signed-off-by: Luke Kanies <luke@madstop.com>
* | The 'Environment' class can now calculate its modulepath.Luke Kanies2009-02-181-0/+16
| | | | | | | | | | | | | | | | | | | | | | This includes adding PUPPETLIB from the shell environment. I'm moving responsibility for this from the Module class, because nearly every method in Puppet::Module accepted 'environment' as its argument, which is a good sign that it's on the wrong class. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Added support for finding modules from an environmentLuke Kanies2009-02-181-0/+17
| | | | | | | | | | | | | | | | This uses the environment to search for the modules, rather than relying on the Puppet::Module class to know how to handle environments. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding support for finding all modules in a given path.Luke Kanies2009-02-181-0/+22
| | | | | | | | | | | | | | | | This 'each_module' method will be used by environments to find all or a given module, and will likely eventually be used internally, too. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Supporting multiple paths for searching for files.Luke Kanies2009-02-181-3/+7
| | | | | | | | | | | | | | This is, once again, used for plugins, which needs to search across multiple modules' plugin directories. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding support for merging multiple filesets.Luke Kanies2009-02-181-0/+17
| | | | | | | | | | | | | | This is required for plugins, which recurse across multiple directories. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding new methods to Puppet::Module.Luke Kanies2009-02-181-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | There are now boolean methods to test whether a given kind of file is present in a given module. E.g, you can do: Puppet::Module.new("mod", "/my/path").plugins? There are also accessor-style methods that return the full path for a given kind of file. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Refactoring Puppet::Module a bit.Luke Kanies2009-02-181-22/+18
| | | | | | | | | | | | | | No behaviour change here, just some internal changes to make way for methods I want to add. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Only using the checksum cache when we're using a host_config catalogLuke Kanies2009-02-181-0/+2
| | | | | | | | | | | | | | | | Only host-configs actually load and store the state file, so any attempt to use that state will just result in lots of "initializing" and "creating" messages. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing fileserving to support strings or symbolsLuke Kanies2009-02-182-1/+2
| | | | | | | | | | | | | | When used internally we would use symbols, but the REST transfers need to support strings. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding clarity to query string handling in REST callsLuke Kanies2009-02-184-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | We previously only handled simple strings as values, but we know handle true and false as booleans, we URI-escape all strings, and we can yaml-encode and then escape arrays of strings. This could get abused a bit, in that we're just yaml-dumping anything that's an array, but it should be pretty safe. Mmmm, should. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Some small fixes to provide better debugging and load a libraryLuke Kanies2009-02-182-0/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Providing better information when an exception is encountered during network ↵Luke Kanies2009-02-181-1/+1
| | | | | | | | | | | | communication Signed-off-by: Luke Kanies <luke@madstop.com>
* | Move --version handling to Puppet::ApplicationBrice Figureau2009-02-167-34/+16
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetd to the Application Controller paradigmBrice Figureau2009-02-161-0/+260
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetdoc to the Application Controller paradigmBrice Figureau2009-02-161-0/+198
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move ralsh to the Application Controller paradigmBrice Figureau2009-02-161-0/+166
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetrun to Application Controller paradigmBrice Figureau2009-02-161-0/+221
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move pi to the Application Controller paradigmBrice Figureau2009-02-161-0/+216
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetmasterd to Puppet::ApplicationBrice Figureau2009-02-161-0/+138
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppet to the Application Controller paradigmBrice Figureau2009-02-161-0/+145
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move filebucket to the Application Controller paradigmBrice Figureau2009-02-161-0/+92
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Move puppetca to the Application Controller paradigmBrice Figureau2009-02-161-0/+74
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Introducing the Application ControllerBrice Figureau2009-02-162-0/+320
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing some tests that somehow broke in the merge to masterLuke Kanies2009-02-141-2/+2
| | | | | | | | | | | | | | | | | | | | I expect these failed in master but not 0.24.x because I'm better about stubbing calls to Facter in master. I stubbed these enough that they should continue to work. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2009-02-147-56/+152
|\| | | | | | | | | Conflicts: test/ral/manager/type.rb
| * Fix #1972 - ActiveRecord fixes resulted in broken testsBrice Figureau2009-02-151-3/+4
| | | | | | | | | | | | | | Fix #1930 was not complete, with some typos and misuse of unused code paths in the regular puppetmaster use case. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing password validation to support symbols.Luke Kanies2009-02-141-1/+1
| | | | | | | | | | | | | | My fix for #1920 broke when you set :absent or :present. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Only backing up within parsedfile when managing filesLuke Kanies2009-02-142-5/+7
| | | | | | | | | | | | | | | | | | | | | | I was getting failing tests because I was using non-files for testing and they didn't back up the same, not surprisingly. This moves the 'backup' method to the :flat filetype and then only backs up if the filetype supports it. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing a syntax error in the up2date providerLuke Kanies2009-02-141-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Cleaned up variable names to be more sane, clarified error messages and ↵James Turnbull2009-02-141-6/+6
| | | | | | | | fixed incorrect use of 'value' variable rather than 'member'.
| * Provide dscl -url output support for OS X 10.4 clients using the ↵Nigel Kersten2009-02-141-36/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directoryservice provider. We refactored the directoryservice provider in puppet 0.24.7 to use the -plist option so that output could be parsed more easily to resolve a bug with values with spaces in the name. We missed that 10.4 does not support this flag, so this patch adds -url output support back in for OS X 10.4 clients only as well as a new -url output parser that copes with spaces. 10.5 clients continue to use the -plist method. Also includes some miscellaneous cleanup of methods and removal of extraneous comments. Signed-off-by: Nigel Kersten <nigelk@google.com> Don't use sw_vers to determine OS X versions, use the Facter value instead. This relies upon another patch to ralsh to ensure that facts are loaded.
| * Fix launchd service provider so it is backwards compatible with OS X 10.4 as ↵Nigel Kersten2009-02-141-4/+13
| | | | | | | | | | | | well Clean up fix to launchd service provider to be more concise
* | Failure to find node facts is now a failure.Luke Kanies2009-02-141-4/+8
| | | | | | | | | | | | | | | | It was previously just a warning, but the node is essentially non-functional without the facts, so it makes more sense for it to be a warning. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1527 - Failing Facter does not hurt PuppetLuke Kanies2009-02-142-2/+13
| | | | | | | | | | | | | | | | At this point, the server's behaviour is a bit undefined if it tries to compile the catalog with no facts locally. The next commits will fix that. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing some unused codeLuke Kanies2009-02-141-11/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Using Puppet::Type.new instead of createLuke Kanies2009-02-141-1/+1
| | | | | | | | | | | | | | create() got deprecated and I apparently missed changing this. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Actualling syncing facts and pluginsLuke Kanies2009-02-143-2/+6
| | | | | | | | | | | | | | | | Also fixing the argument order while downloading either of them. I had my Downloader.new calls using the wrong argument order. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fix #1933 - Inconsistent resource evaluation order in subsequent evaluation runsBrice Figureau2009-02-141-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | While evaluating the AST, catalog vertices are not always ordered the same way on different run, leading to some tags (which should have been applied in evaluation order) to not be associated with some underlying resources. This changeset change all accesses to resources inside the compiler to always use an ordered (in evaluation order) list of added resources. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Merge branch '0.24.x'Luke Kanies2009-02-1314-180/+310
|\| | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/indirector/facts/facter.rb lib/puppet/provider/augeas/augeas.rb lib/puppet/util/filetype.rb spec/unit/indirector/facts/facter.rb spec/unit/provider/augeas/augeas.rb test/util/filetype.rb
| * Updated Augeas type codeJames Turnbull2009-02-141-3/+5
| |
| * Fixed #1831 - Added sprintf functionJames Turnbull2009-02-141-0/+17
| |
| * Fixed #1830 - Added regsubst functionJames Turnbull2009-02-141-0/+93
| |
| * Bug 1948: Add logic and testing for the command parsing logicBryan Kearney2009-02-141-5/+6
| |
| * Updated up2date and service confines to add support for Oracle EL and VMJames Turnbull2009-02-132-3/+5
| |
| * Fixing #1964 - Facts get loaded from pluginsLuke Kanies2009-02-121-2/+6
| | | | | | | | | | | | | | | | Applying slightly modified patch. Also added tests. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding a post-processor for Nagios names.Luke Kanies2009-02-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This is a brutal hack until Puppet correctly supports multiple primary keys. It basically just comments out _naginator_name before writing to disk, and uncomments it when reading. This allows Puppet to use it while Nagios ignores it. Yes, a stupid hack, but it appears to work. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Revert "Refixing #1420 - _naginator_name is only used for services"Luke Kanies2009-02-131-10/+15
| | | | | | | | | | | | | | | | This reverts commit efb5cc50c42bc27aec9409e723e3a717ed58c0a8. Conflicts: CHANGELOG
| * Fixing #1541 - ParsedFile only backs up files once per transactionLuke Kanies2009-02-132-1/+14
| | | | | | | | | | | | | | | | This moves responsibility for backups from the filetype to the consumer of the filetype, but only ParsedFile actually uses filetypes. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing the apparently obsolete netinfo filetype.Luke Kanies2009-02-131-88/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>