summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fixing #283, opened by luke.luke2006-09-211-1/+2
| | | | | | | | | I now always set the owner and group to Process.uid and Process.gid, respectively. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1643 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #285, opened by ericb.luke2006-09-212-9/+7
| | | | | | | | | The problem here was that I was not escaping URIs throughout the chain, which I am now doing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1642 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #293, I think. The problem was that the groups state was not ↵luke2006-09-211-12/+9
| | | | | | correctly passing strings in all cases, which caused some very strange problems internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1640 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #292 (A bug in tagmail that causes any tag other than 'all' to fail)luke2006-09-204-1/+22
| | | | | | | | | | | | | | | and #277 (tagmail report missing To: header). #292 was weird because the messages just didn't have the tags at all. The problem was that states didn't have tags, yet states were the source of nearly all messages. So, I added tags to the states, and included the state name in the tag list. Also, types were not including the type name in the tag list, so I added that. And, of course, a few unit tests to check it all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1638 980ebf18-57e1-0310-9a29-db15c13687c0
* adding an extra make target for debugging, rather than defaulting to always ↵luke2006-09-202-2/+5
| | | | | | creating the debug file git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1637 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing provider commands and Util#execute so they always include the command ↵luke2006-09-192-12/+4
| | | | | | output when possible, as mentioned on the list git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1635 980ebf18-57e1-0310-9a29-db15c13687c0
* going through all of the other providers and making sure any reference to a ↵luke2006-09-196-13/+7
| | | | | | state uses the :should value, not the :is value. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1627 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing case of silly states on os x, where files are owned by "nobody" and ↵luke2006-09-191-1/+1
| | | | | | File.stat returns a huge number. I thought i had already fixed this, but apparently not. I added a test, and it is definitely fixed now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1626 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the same bug in the netinfo provider -- it was retrieving the "is" ↵luke2006-09-191-11/+9
| | | | | | value instead of the "should" value git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1625 980ebf18-57e1-0310-9a29-db15c13687c0
* applying patch from #275. aptitude -q works fine on my testing release, but ↵luke2006-09-191-1/+2
| | | | | | apparently stable does not support it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1623 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the no-longer-necessary type/nameservice info -- it is all in the ↵luke2006-09-198-692/+12
| | | | | | provider tree now git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1622 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to fix a bug where files other than site.pp do not get noticed for ↵luke2006-09-194-75/+66
| | | | | | reparsing git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1621 980ebf18-57e1-0310-9a29-db15c13687c0
* Add config option 'node_name' to control what puppetmaster considers the ↵lutter2006-09-182-3/+13
| | | | | | 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
* Better documentation around certificate revocation and mgmtlutter2006-09-181-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1619 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 testing for the default? method, and fixing it to support arrays and ↵luke2006-09-151-6/+11
| | | | | | returning false when no defaults are specified git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1614 980ebf18-57e1-0310-9a29-db15c13687c0
* Using the "trace" configuration parameter to determine whether a stack trace ↵luke2006-09-1527-51/+37
| | | | | | should be printed, rather than just using "debug". I added the param a little while ago and was using it internally in Puppet::DevError, but I just now went through the whole configuration and switched to using it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1613 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding patch from #235luke2006-09-152-39/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1612 980ebf18-57e1-0310-9a29-db15c13687c0
* Reverting the work done in [1605] and [1606]. I have added it as a patch in ↵luke2006-09-155-765/+554
| | | | | | #271. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1610 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the feature from #259. I had to rework the Scope#lookupvar a bit, ↵luke2006-09-151-4/+14
| | | | | | but everything now works as expected when variables are either undefined or set to empty strings. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1609 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch in #160.luke2006-09-151-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1608 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #262. I somehow lost the line that only added a given user's jobs to ↵luke2006-09-152-4/+5
| | | | | | each tab. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1607 980ebf18-57e1-0310-9a29-db15c13687c0
* This commit adds two important features (but which probably were notluke2006-09-155-554/+765
| | | | | | | | | | | | | | | | | | | | | | | worth the priority I suddenly placed on them). First, it adds search paths as I originally requested in #114. There is now a 'lib' setting, which can be used to tell Puppet where to find manifests. Any file you tell Puppet to parse will have its directory automatically added to the lib path. Also, Puppet will check the PUPPETLIB environment variable for further directories to search. Second, it converts the 'import' mechanism into a normal function, which means that you can now use variables and what-have-you in it. Of course, this function uses the lib mechanism. This is something that's always bothered me about the language, and having it fixed means you can do simple things like have custom code in the top scope for each operating system and then do "import os/$operatingsystem" to evaluate that code. Without this, you would either need a huge case statement or the code would need to be in a class, which often isn't sufficient. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1605 980ebf18-57e1-0310-9a29-db15c13687c0
* collecting output from blastlist, for later useluke2006-09-151-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1603 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the "Adding aliases" message, so it is clear when an alias with ↵luke2006-09-151-1/+3
| | | | | | spaces in it is used git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1600 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #267. The problem was that the user provider was retrieving the @is ↵luke2006-09-155-13/+10
| | | | | | value instead of the @should value, because it was using [] instead of the should method. I fixed the FakeModel to behave a bit more like real types, so that it keeps track of the is/should values, and also to keep track of which attributes are valid, since I immediately ran into another problem stemming from the use of the fakemodel. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1599 980ebf18-57e1-0310-9a29-db15c13687c0
* Raising element creation errors up outside the "create" method, so that ↵luke2006-09-152-15/+14
| | | | | | tests can more easily tell when an object is invalid. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1597 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing spelling of retrieve, to fix ##268luke2006-09-153-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1596 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #269. I was aliasing every case where the title and name were ↵luke2006-09-151-3/+13
| | | | | | different, where I should only have been aliasing isomorphic types, which does not include exec git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1595 980ebf18-57e1-0310-9a29-db15c13687c0
* Let puppetd listen (when given --listen) without a CRLlutter2006-09-142-1/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1592 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the problem with fileserver expansions, and doing a bit of ↵luke2006-09-141-152/+139
| | | | | | refactoring to make things clearer git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1587 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the interpreter to nodesearch across all listed names, just like is ↵luke2006-09-132-12/+14
| | | | | | done in the manifests. Also fixing a comment in type.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1586 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a :trace config option that prints stack traces of DevErrors, and ↵luke2006-09-132-1/+2
| | | | | | using that in DevError instead of :debug git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1583 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding test code for providers that makes sure the default and confine ↵luke2006-09-131-22/+34
| | | | | | mechanisms work internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1582 980ebf18-57e1-0310-9a29-db15c13687c0
* Add config parameter ca_ttl and deprecate ca_days; ca_ttl makes it possible ↵lutter2006-09-133-8/+49
| | | | | | to generate certs that are valid for < 1 day git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1581 980ebf18-57e1-0310-9a29-db15c13687c0
* Use Pupet.warning instead of nonexistant 'warning'lutter2006-09-131-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1580 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #261. Applied patch, with small modifications.luke2006-09-132-10/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1579 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a module for helping with warnings, starting only with the "warnonce" ↵luke2006-09-132-0/+16
| | | | | | method git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1578 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
* Modifying the provider base class so that it defines a method for every used ↵luke2006-09-0620-227/+128
| | | | | | command (e.g., you call "commands :rpm => 'rpm'", and it defines an "rpm" method. I then pushed this throughout the package providers, which are the heaviest users of commands. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1571 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding aptitude support, including a new util::package module that provides ↵luke2006-09-065-5/+29
| | | | | | a method for package version sorting, and a couple of smaller bug fixes. This fixes #237. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1570 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding hasrestart parameter to servicesluke2006-09-052-19/+15
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1569 980ebf18-57e1-0310-9a29-db15c13687c0