summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding some documentation to the programmer's documentation introducing the ↵ajax2006-10-141-1/+1
| | | | | | concept of providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1776 980ebf18-57e1-0310-9a29-db15c13687c0
* I was stupidly creating an error but not raising it.luke2006-10-111-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1767 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving methods around so they are alphabeticalluke2006-10-111-34/+34
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1764 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing the metatype branch -- this is just splitting the type.rb code ↵luke2006-10-1013-2268/+2350
| | | | | | into multiple files for readability git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1762 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the problem reported by Adnet Ghislain where facts do not load on ↵luke2006-10-091-12/+7
| | | | | | later runs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1757 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing code from [1754] -- I stupidly did not even do a parse check, and I ↵luke2006-10-092-29/+9
| | | | | | had to refactor the patch because parameters do not have code associated with their values. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1755 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #234 from David Schmitt. This is also untested, and the ↵luke2006-10-092-1/+43
| | | | | | patch is slightly modified. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1754 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding modified patch from #256 -- apt now uses "responsefile" for the ↵luke2006-10-092-1/+18
| | | | | | preseed file. This is untested, though, since I do not know how to test it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1753 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #298 - refreshonly now correctly deals with specified false valuesluke2006-10-091-1/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1751 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #305 -- logs now reopen when Puppet restarts, and there is also now ↵luke2006-10-092-0/+11
| | | | | | an autoflush mechanism available so logs will flush to disk immediately. I also now trap USR2 and reopen logs when it is sent, so if you just want to reopen logs you do not have to restart the whole process. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1750 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #309 -- files now correctly replace any number of slashes with a ↵luke2006-10-091-0/+4
| | | | | | single slash. Also, trailing slashes are removed, since that is how Puppet expects to find files internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1749 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #310 -- users no longer autorequire their homedirs, and files now ↵luke2006-10-092-9/+16
| | | | | | autorequire their owner and group. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1747 980ebf18-57e1-0310-9a29-db15c13687c0
* Refactoring reporting. Reports are now modules instead of simple methods.luke2006-10-076-197/+248
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1746 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "genmodule" equivalent to classgen, which we will use for reportingluke2006-10-071-53/+110
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1745 980ebf18-57e1-0310-9a29-db15c13687c0
* Many, many, many performance improvements in the compiler (I hope). I did ↵luke2006-10-0617-213/+229
| | | | | | not change functionality anywhere, but I did some profiling and significantly reduced the runtime of many methods, and especially focused on some key methods that run many times. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1739 980ebf18-57e1-0310-9a29-db15c13687c0
* Documented signals the puppet daemons acceptajax2006-10-051-1/+1
| | | | | | | Documented host type to make it clear ipv6 is supported git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1737 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the rrdgraph report so that it creates a separate rrd directory for ↵luke2006-10-053-36/+64
| | | | | | each host git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1735 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing weird case where the default node is in one node source and the real ↵luke2006-10-051-8/+14
| | | | | | node is in a different one git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1734 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing ldap nodes -- they were always returning true because i was returning ↵luke2006-10-051-1/+5
| | | | | | an empty array for missing nodes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1733 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing some left-over debuggingluke2006-10-041-4/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1727 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the changes from the override-refactor branch. This is a ↵luke2006-10-0447-3783/+3979
| | | | | | significant rewrite of the parser, but it has little affect on the rest of the code tree. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1726 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming logfacility to syslogfacility as recommended by lutter.luke2006-10-042-4/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1725 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding configurability to the syslog facility, using the "logfacility" ↵luke2006-10-042-1/+9
| | | | | | parameter. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1724 980ebf18-57e1-0310-9a29-db15c13687c0
* Messages will now be at current loglevel, regardless of whether the object ↵ajax2006-10-021-4/+2
| | | | | | path is displayed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1712 980ebf18-57e1-0310-9a29-db15c13687c0
* Added parameter 'withpath' to toggle printing of the object path.ajax2006-10-021-6/+15
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1711 980ebf18-57e1-0310-9a29-db15c13687c0
* - New type Notify for sending client-side log messagesajax2006-09-292-0/+38
| | | | | | | | | | | type.rb type/notify.rb - Added server-side functions named after each of the syslog log levels (debug, info, notice, warning, err, crit, alert, and emerg) parser/functions.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1708 980ebf18-57e1-0310-9a29-db15c13687c0
* - New type Notify for sending client-side log messagesajax2006-09-291-0/+7
| | | | | | | | | | | type.rb type/notify.rb - Added server-side functions named after each of the syslog log levels (debug, info, notice, warning, err, crit, alert, and emerg) parser/functions.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1707 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing warnonce to Puppet::Util::Warnings.warnonce.ajax2006-09-291-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1706 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing suidmanager so it uses warnonce instead of using a variable that only ↵luke2006-09-292-8/+10
| | | | | | existed in Util git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1705 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing reported problem of crons rewriting every time when the environment ↵luke2006-09-281-3/+9
| | | | | | is set git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1701 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing what I hope are the last batch of problems caused by the addition of ↵luke2006-09-272-1/+5
| | | | | | the suidmanager module. Also fixing a couple of other small issues that somehow cropped up. All tests should now pass again. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1699 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding flush functionality as requested by Scott Seagoluke2006-09-271-0/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1697 980ebf18-57e1-0310-9a29-db15c13687c0
* File types were dying silently on OS X when the group specified in the ↵ajax2006-09-272-2/+10
| | | | | | | | | manifest was not a valid group. The code now generates some errors, but current behavior doesn't raise fatal exceptions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1695 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing SUIDManager#asuser so that it only resets egid and euid if they were ↵luke2006-09-262-21/+20
| | | | | | changed git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1693 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating changelog for 0.19.3, and merging the version changes over.luke2006-09-221-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1680 980ebf18-57e1-0310-9a29-db15c13687c0
* + New assertion: assert_uid_gid will check that the UID and GID have been ↵erikh2006-09-221-17/+33
| | | | | | | | | | changed to the proper values. This uses a fork and a FIFO to achieve it's checking. ! nonrootuser and nonrootgroup now only return users/groups that are less than 255, due to the "Darwin debacle" ! many, many, many fixes for suidmanager. This is rather embarassing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1674 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the fix to server/master.rbluke2006-09-221-7/+18
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1673 980ebf18-57e1-0310-9a29-db15c13687c0
* Some small housekeeping things that I saw while doing other bug huntingluke2006-09-222-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1672 980ebf18-57e1-0310-9a29-db15c13687c0
* Harded-coded pathname to OSX's ssh_known_hosts as a work-around until the ↵ajax2006-09-221-1/+7
| | | | | | ssh pathnames are user-configurable. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1668 980ebf18-57e1-0310-9a29-db15c13687c0
* + Puppet::SUIDManager - This replaces all calls to the built-in ruby ↵erikh2006-09-2212-121/+109
| | | | | | | | | | | 'Process' library for uid/gid/euid/egid operations, including (not surprisingly) Puppet::Util#asuser and a method to run commands and capture output. This is due to many inconsistencies (through bugfixes) between ruby versions in the 1.8.x branch. This is included in the core puppet library and can be used by all puppet types and providers. ! Modified Puppet::Util#uid to check (and warn) if passed a nil value. ! Changes to use Puppet::SUIDManager instead of Process and relevant Puppet::Util calls. ! Removed Puppet::Util#asuser. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1666 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.19.2luke2006-09-221-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1663 980ebf18-57e1-0310-9a29-db15c13687c0
* As requested by Christian Warden, triggering an object now results inluke2006-09-221-7/+25
| | | | | | | | an event, which can result in further triggers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1660 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some error handling for when a non-existent report is asked for, and ↵luke2006-09-211-11/+24
| | | | | | adding a bit more testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1659 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding trace information to autoload.rbluke2006-09-211-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1658 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching Autoload#loadall from using "load" to using "require", so it will ↵luke2006-09-212-3/+12
| | | | | | not reload already-loaded files. Also updating the checksum docs a bit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1657 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing error in tagmail when there are no messages to reportluke2006-09-211-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1655 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding class list method to group. Also added a test to verify every type ↵luke2006-09-211-7/+12
| | | | | | responds to "list", but it does not pass right now so it is disabled. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1652 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding an Autoload instance to Type.rb so that I can load all known types ↵luke2006-09-212-10/+26
| | | | | | for documentation purposes. And, of course, loading all types in puppetdoc. Also updating zone.rb to fix markdown's stupidity in trying to interpret the ERB template, and adding some timeouts to puppettest.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1651 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #278, opened by Digant, with patch.luke2006-09-212-12/+36
| | | | | | | | Tagmail now supports negating tags with '!'. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1645 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #274. I just set :ensure to be :link when :target is set.luke2006-09-211-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1644 980ebf18-57e1-0310-9a29-db15c13687c0