summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Moving all of the configuration parameters out of puppet.rb into ↵luke2006-10-161-156/+2
| | | | | | 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
* Fixing #305 -- logs now reopen when Puppet restarts, and there is also now ↵luke2006-10-091-0/+6
| | | | | | 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
* Merging the changes from the override-refactor branch. This is a ↵luke2006-10-041-0/+1
| | | | | | 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-3/+3
| | | | 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-0/+3
| | | | | | parameter. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1724 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
* + Puppet::SUIDManager - This replaces all calls to the built-in ruby ↵erikh2006-09-221-1/+2
| | | | | | | | | | | '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
* Add config option 'node_name' to control what puppetmaster considers the ↵lutter2006-09-181-1/+7
| | | | | | proper name of a client (name in the SSL cert or name uploaded with facter) Default to name from the cert git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1620 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.19.1luke2006-09-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1618 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a :trace config option that prints stack traces of DevErrors, and ↵luke2006-09-131-0/+1
| | | | | | using that in DevError instead of :debug git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1583 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.19.0luke2006-09-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1574 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding note about configprint, indicating what versions include itluke2006-09-031-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1531 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "configprint" option for printing out the local config stateluke2006-08-281-0/+28
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1496 980ebf18-57e1-0310-9a29-db15c13687c0
* Making some of the metaprogramming a bit more explicit and a bit easier to ↵luke2006-08-201-35/+3
| | | | | | | | manage. In the process, I have created multiple Util modules, only one of which is used for this current commit. The main work in this commit is that I created a single, common method for dynamically creating classes and moved all of the Class.new users to using this class. It handles a lot of the complexity for me, and most of the users have just a couple of lines of code, now, instead of tens. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1473 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.18.4luke2006-07-221-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1426 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.18.3luke2006-07-111-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1395 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.18.2luke2006-07-041-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1365 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly redoing metrics. There are now no class variables for ↵luke2006-06-301-5/+0
| | | | | | metrics, nor no class methods for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1350 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.18.1luke2006-06-281-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1334 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving the timer monitoring to after the services are created (because they ↵luke2006-06-281-11/+19
| | | | | | actually create the timers), and adding a sleep statement to give the threads enough time to create the timers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1326 980ebf18-57e1-0310-9a29-db15c13687c0
* Largely refactored how log destinations are handled, although it is not ↵luke2006-06-271-1/+6
| | | | | | exposed externally. Most of this work is related to handling a large number of small problems related to threading. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1315 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding HUP and USR1 hooksluke2006-06-261-4/+61
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1308 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.18.0luke2006-06-141-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1285 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.17.2luke2006-05-191-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1219 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a lot of structure to puppet.rb to make it easier to manage multiple ↵luke2006-05-181-4/+112
| | | | | | | | objects in a single process, including making it easy to add threads. Added some testing for all of that. Also added a "runner" server, meant to be started within puppetd, so that clients can have runs triggered from a central host git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1212 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.17.1luke2006-05-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1209 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.17.0luke2006-05-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1201 980ebf18-57e1-0310-9a29-db15c13687c0
* Made a *huge* performance difference in storing hosts -- down from about 25 ↵luke2006-05-131-2/+20
| | | | | | seconds per host to about 5 seconds on my machine. I will almost definitely still use forking or something to make this not affect the clients git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1191 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.16.5luke2006-05-031-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1169 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.16.4luke2006-05-021-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1162 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.16.3luke2006-05-011-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1158 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to track down the bugs reported this morning, so I added some more ↵luke2006-04-271-1/+1
| | | | | | test cases. I did find a bug in the filebuckets, fixed it, and added a test case. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1143 980ebf18-57e1-0310-9a29-db15c13687c0
* This should have been in 0.16.1. Moving the "setclass" statements around so ↵luke2006-04-261-1/+1
| | | | | | that classes are set before a given class's code is evaluated, so it can be tested within the code, within node defs, components, or classes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1139 980ebf18-57e1-0310-9a29-db15c13687c0
* removing patch from red hat spec fileluke2006-04-211-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1131 980ebf18-57e1-0310-9a29-db15c13687c0
* committing version changesluke2006-04-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1094 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small bug in type.rb that ignored false values (instead of nil ↵luke2006-04-051-4/+0
| | | | | | values), another small bug in value setting that resulted in the file and line appearing twice in errors, and added validation to all of the checks in :exec (along with testing for all of it). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1084 980ebf18-57e1-0310-9a29-db15c13687c0
* removing patch from spec fileluke2006-04-051-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1083 980ebf18-57e1-0310-9a29-db15c13687c0
* adding -e ability to puppet executableluke2006-04-041-1/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1065 980ebf18-57e1-0310-9a29-db15c13687c0
* changing ssldir perms to 771, so non-root users can write to subdirs if they ↵luke2006-04-031-1/+1
| | | | | | have permissions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1057 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing support for group membership management. Currently only works on ↵luke2006-03-221-1/+1
| | | | | | Linuxes and other OSes that use "useradd" that support -G. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1041 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.15.0luke2006-03-131-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1022 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.14.1luke2006-03-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@992 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.14.0luke2006-03-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@986 980ebf18-57e1-0310-9a29-db15c13687c0
* removing group ownership of the state file; I realized that the server does ↵luke2006-03-041-1/+0
| | | | | | not ever actually write to it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@982 980ebf18-57e1-0310-9a29-db15c13687c0
* Updated to version 0.13.6luke2006-03-021-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@969 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #68. After tons and tons and tons of work, everything successfully ↵luke2006-03-021-2/+1
| | | | | | configures itself, and the --genmanifest argument should actually work. User and group creation will not necessarily work everywhere (in particular, Puppet uses dependencies to create the group first, but Fedora complains on user creation if the group already exists), but file and directory creation should. The only downside is that there is a decent amount of extra information printed on daemon startup, as the daemon checks its config; this could maybe be seen as a bonus, though, I guess. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@966 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, Puppet is now almost entirely capable of configuring itself. I have ↵luke2006-03-021-14/+19
| | | | | | not yet added the extra tests to puppetmasterd to make sure it can start as a normal user, and the executables still fail some simple tests because they are producing output when they start (I will get rid of the output), but overall things look pretty good. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@965 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding metadata to defaultsluke2006-03-011-34/+68
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@963 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the setdefaults input format somewhat. It is always a hash of some ↵luke2006-03-011-77/+33
| | | | | | kind now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@962 980ebf18-57e1-0310-9a29-db15c13687c0