summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing ports to now use a providerluke2006-10-174-262/+250
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1800 980ebf18-57e1-0310-9a29-db15c13687c0
* Working on migrating the parsedtypes to using providers for the parsing ↵luke2006-10-175-377/+447
| | | | | | aspects. This just converts the hosts; I will convert the others next. This is all work from the sync-retrieve-refactor branch, modified to work with trunk. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1799 980ebf18-57e1-0310-9a29-db15c13687c0
* First batch of fixes from running tests.luke2006-10-171-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1797 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching from calling "up" on the migration directly to using the "migrate" ↵luke2006-10-172-3/+15
| | | | | | method. It is still not checking versions or allowing external forcing of migration, but it is a start. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1795 980ebf18-57e1-0310-9a29-db15c13687c0
* Rewriting nearly all of the tests for the tidy type, and redoing the ↵luke2006-10-171-36/+104
| | | | | | internals of the testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1794 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing gennode; it was not actually adding the class code to the generated node.luke2006-10-161-13/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1792 980ebf18-57e1-0310-9a29-db15c13687c0
* Making all test suites executable, adding some tests for handling changing ↵luke2006-10-163-167/+191
| | | | | | files from one type to another, and fixing #304. The problem with #304 was only occurring when backing up to a filebucket (I can only think the example code was wrong) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1786 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #291 -- the problem was that instead of throwing an error on a ↵luke2006-10-163-13/+13
| | | | | | missing server, puppet was just exiting. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1785 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving all of the configuration parameters out of puppet.rb into ↵luke2006-10-161-0/+168
| | | | | | puppet/configuration.rb, and adding a PATH setting as requested in #307, although it does not include a default. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1784 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability to have hooks for configuration parameters. This will ↵luke2006-10-161-0/+9
| | | | | | simplify things like setting the shell path. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1783 980ebf18-57e1-0310-9a29-db15c13687c0
* correcting warning about spaces before parensluke2006-10-161-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1782 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding patch from Jeff McCune, #317luke2006-10-164-0/+578
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1781 980ebf18-57e1-0310-9a29-db15c13687c0
* adding explicit load of ast/branch to its subclassesluke2006-10-153-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1780 980ebf18-57e1-0310-9a29-db15c13687c0
* 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-091-0/+5
| | | | | | 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-0446-3783/+3978
| | | | | | 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-041-1/+1
| | | | 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-041-1/+6
| | | | | | 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
* + 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