summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
* Adding a --summarize option, to get a transaction summaryluke2007-05-044-17/+62
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2459 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #615 (subclasses with similar names) by getting rid of the class ↵luke2007-05-035-67/+61
| | | | | | "type" and "fqname", and instead using "classname" everywhere. You should no longer see unqualified class/definition names anywhere. Also, rewriting how snippet tests work, to avoid creating all of the files, since the point was the parsing tests, not functional tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2458 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a fact handler, along with an abstract interface for fact stores and ↵luke2007-05-034-0/+179
| | | | | | a simple yaml fact store, towards the Node Classification work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2457 980ebf18-57e1-0310-9a29-db15c13687c0
* Set LANG/LC_ALL/LC_MESSAGES/LANGUAGE to 'C' whenever we execute things, so ↵mpalmer2007-05-031-0/+1
| | | | | | that the output that comes back is more easily parsed, without needing to understand all sorts of foreign languages git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2456 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the remount stuff back to not repeating the mount options.luke2007-05-011-14/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2445 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "supports_parameter?" method to test whether a given provider ↵luke2007-05-012-15/+31
| | | | | | supports the features required by a given parameter. This is used during attribute instance creation, but its creation was necessicated by test code. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2444 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #430 (I hope) -- execs now autorequire the specified userluke2007-04-301-2/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2442 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching the simpler features to a single file, so it is easier to add new ↵luke2007-04-304-24/+20
| | | | | | features git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2441 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing cron to correctly match blank lines, fixing #602luke2007-04-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2440 980ebf18-57e1-0310-9a29-db15c13687c0
* Working a little bit on rails failures, with no real progressluke2007-04-302-6/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2439 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a bug in the tests introduced a while back when I switched to using ↵luke2007-04-301-1/+1
| | | | | | "generate_report" git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2438 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #594 -- Files on the local machine but not remote machine now purge. ↵luke2007-04-301-6/+22
| | | | | | Note that this introduces a difference in behaviour between recursing locally and recursing remotely. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2436 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding purge => true to downloading of facts and plugins, and removing some ↵luke2007-04-302-1/+1
| | | | | | extraneous logging from the provider base class git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2435 980ebf18-57e1-0310-9a29-db15c13687c0
* Allowing "-" in fileserver module names, #617luke2007-04-301-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2434 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the resource handler to return the whole object, rather than just ↵luke2007-04-301-2/+2
| | | | | | type and title git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2433 980ebf18-57e1-0310-9a29-db15c13687c0
* Not stripping domain info from the ldap node, as requestedluke2007-04-301-4/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2432 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching the mount command to always add the mount options, so that the ↵luke2007-04-301-8/+20
| | | | | | parsed provider can be used even in cases where /etc/fstab is ignored, like it is on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2431 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the tests for the aptrpm provider.luke2007-04-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2430 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "rug" package provider from #609luke2007-04-301-0/+53
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2429 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, one last try -- the Util#binary command was not returning a path in ↵luke2007-04-271-1/+1
| | | | | | all true cases, and the provider tests were poorly written and missed it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2427 980ebf18-57e1-0310-9a29-db15c13687c0
* Apparently I messed up providers a bit; binaries were not having their full ↵luke2007-04-271-0/+2
| | | | | | paths returned, which made most providers suddenly unsuitable. This fixes that, and adds tests to verify behaviour. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2426 980ebf18-57e1-0310-9a29-db15c13687c0
* Closing #585 -- providers can now have optional commands, which only differ ↵luke2007-04-271-35/+56
| | | | | | from normal commands in that they do not affect a provider's suitability git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2425 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #603 -- I had to add a special case for escaped carriage returns. I ↵luke2007-04-261-0/+2
| | | | | | am not entirely sure this is the right solution, but so be it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2418 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding extra info to the "Parameter already set" error, as requested in #573luke2007-04-261-2/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2416 980ebf18-57e1-0310-9a29-db15c13687c0
* Possibly adding the ability to manage passwords on os x. I expect it does ↵luke2007-04-251-2/+9
| | | | | | not work, since there is probably no way to set up an encrypted password, but at least it now creates a user that can not log in by default. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2415 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability to manage passwords with the useradd providerluke2007-04-254-26/+36
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2414 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability for parameters to declare that they require a given ↵luke2007-04-253-1/+40
| | | | | | feature, and resources will not instantiate that parameter if required features are missing. This is mostly useful for properties. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2413 980ebf18-57e1-0310-9a29-db15c13687c0
* Refactoring puppetdoc so it is a bit cleaner and is actually ↵luke2007-04-242-5/+9
| | | | | | object-oriented. PDF output still fails miserably (there has to be some kind of markup problem, but I have no idea what), but other output now successfully varies on the pages. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2411 980ebf18-57e1-0310-9a29-db15c13687c0
* Last modifications to rst conversion before bedtimeluke2007-04-241-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2410 980ebf18-57e1-0310-9a29-db15c13687c0
* All conversions to RST are done, but I did not quite succeed at making ↵luke2007-04-242-2/+2
| | | | | | puppetdoc able to generate a single PDF with all of the references in them. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2409 980ebf18-57e1-0310-9a29-db15c13687c0
* Mostly done with the conversion to restructured text, but there are still ↵luke2007-04-2417-121/+105
| | | | | | some tweaks to perform on the typedocs output. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2408 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a :block_eval option to FileRecords in FileParsing, so ParsedFile ↵luke2007-04-231-3/+9
| | | | | | providers can have records just define a bunch of methods at once, rather than using lots of hooks. This is cleaner when custom parse and generate methods are used. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2407 980ebf18-57e1-0310-9a29-db15c13687c0
* Translating all of the docs except the type docs to RSTluke2007-04-235-10/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2406 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the naming restrictions on cron namesluke2007-04-231-6/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2405 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #588 - the parser correctly ignores directories in globbing nowluke2007-04-201-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2404 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #587 -- just defaulting to root when there is no USER set in the ↵luke2007-04-201-1/+1
| | | | | | environment. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2403 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the stubs for nodevar; I did not mean to commit themluke2007-04-201-4/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2401 980ebf18-57e1-0310-9a29-db15c13687c0
* adding note about the class variables in the change logluke2007-04-201-0/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2400 980ebf18-57e1-0310-9a29-db15c13687c0
* Enhancing the docs a bit for the apple package provider.luke2007-04-201-1/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2399 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support for aptrpm from #227 as added by Ian Burrell, the rest of the ↵luke2007-04-191-0/+79
| | | | | | commit git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2398 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing fileserver doc linksluke2007-04-191-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2394 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the functionality requested in ↵luke2007-04-195-59/+87
| | | | | | | | | | http://mail.madstop.com/pipermail/puppet-users/2007-April/002398.html . You can now retrieve qualified variables by specifying the full class path. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2393 980ebf18-57e1-0310-9a29-db15c13687c0
* Only caching the configuration when it has been successfully turned into ↵luke2007-04-181-4/+4
| | | | | | Puppet objects git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2392 980ebf18-57e1-0310-9a29-db15c13687c0
* Forgot to change Puppet::Util::SUIDManager#run_and_capture arguments to executemccune2007-04-041-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2387 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix for #565: Final merge of changes from source:branches/execute-refactor ↵mccune2007-04-032-26/+63
| | | | | | | | | | | | | | | into source:trunk Generated with svn merge -r 2378:HEAD https://reductivelabs.com/svn/puppet/branches/execute-refactor trunk CHANGES: - Puppet::Util#execute now takes hash key/value pairs as arguments after the command array. - Processes executed from the base service provider are now silenced. That is, their standard input, output, and error pipes are all directed to /dev/null. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2385 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the date that certs are valid to start one day before the cert is ↵luke2007-03-301-1/+3
| | | | | | created, so clocks that are off by a little bit can still be used. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2376 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing Client.read_cert so that it automatically adds the certificate ↵luke2007-03-301-0/+12
| | | | | | information to the driver when the certificate is correctly read. This makes sure the Net::Http instance has the cert all set up. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2375 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating the docs for the sourceselect parameterluke2007-03-301-1/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2373 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming some methods so that we can generate a report on a transaction and ↵luke2007-03-302-39/+41
| | | | | | then retrieve it later git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2372 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #567. I overrode the propertychanges method to only return changes ↵luke2007-03-301-0/+19
| | | | | | if the file exists or if the file has a property that could create the file. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2371 980ebf18-57e1-0310-9a29-db15c13687c0