summaryrefslogtreecommitdiffstats
path: root/lib/puppet/statechange.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merging the state-rename branch. This includes the diff from version 2156 ↵luke2007-02-071-128/+0
| | | | | | to 2168. All states should now be properties, with backward compatibility for the types that restricted themselves to the methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2169 980ebf18-57e1-0310-9a29-db15c13687c0
* Not downcasing facts any longer, closing #210 (although not using the patch ↵luke2006-12-231-48/+47
| | | | | | from mpalmer, since I had not noticed the patch was there). Also, making all nodes, classes, and definitions case insensitive, closing #344. Finally, I added case insensitivity to the language in general, which should preserve backwards compatibility and probably makes the most sense in the long run anyway. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1964 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing all of the changes I made towards refactoring in the last couple of ↵luke2006-09-051-87/+51
| | | | | | days. They have all been moved into the sync-retrieve-refactor branch. This branch will soon become 0.19.0, and will not include that refactoring. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1555 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing functional mount support. All that's left in this chunk of work ↵luke2006-09-051-3/+5
| | | | | | is cron. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1552 980ebf18-57e1-0310-9a29-db15c13687c0
* Ports now work with a providerluke2006-09-041-4/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1550 980ebf18-57e1-0310-9a29-db15c13687c0
* This is the initial commit of the changes to sync and retrieve. Theluke2006-09-031-51/+83
| | | | | | | | | | | | | structure itself is now in place, and a few of the types (the most complicated ones -- file, user, group, plus exec since it was my easy first test) have been converted. I'm now going to finish going through all of the types and finish chnaging them so that they don't produce any warnings. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1546 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding report collection to both statechange and transaction.luke2006-06-291-1/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1336 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing statechange noop message so it's a bit clearerluke2006-06-141-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1275 980ebf18-57e1-0310-9a29-db15c13687c0
* adding noop marker as requestedluke2006-06-131-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1257 980ebf18-57e1-0310-9a29-db15c13687c0
* removing one of the stack traces from error outputluke2006-06-061-51/+29
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1235 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #68. After tons and tons and tons of work, everything successfully ↵luke2006-03-021-3/+0
| | | | | | 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
* Mostly, this is a refactoring commit. There is one significant new feature,luke2006-02-271-10/+5
| | | | | | | | | | | | | | | | | though: overrides now only work within a class heirarchy, which is to say that a subclass can override an element in a base class, but a child scope cannot otherwise override an element in a base scope. I've also done a good bit of refactoring, though; notably, AST#evaluate now takes named arguments, and I changed the 'name' parameter to 'type' in all of the Component classes (this was all internal, but was confusing as it was). I also removed the need for the autonaming stuff -- it's now acceptable for components not to have names, and everything behaves correctly. I haven't yet removed the autoname code, though; I'll do that on the next commit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@952 980ebf18-57e1-0310-9a29-db15c13687c0
* updating changelog and docs for :aliasluke2006-02-131-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@899 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some problems with cron tab management, and creating ↵luke2006-02-131-3/+3
| | | | | | Puppet::Util.{u,g}id methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@898 980ebf18-57e1-0310-9a29-db15c13687c0
* Added "ensure" state to some classes, and added infrastructure for it to ↵luke2006-01-161-0/+5
| | | | | | work elsewhere. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@831 980ebf18-57e1-0310-9a29-db15c13687c0
* Further progress towards the next release. Lots of small bugs fixed, the ↵luke2005-11-011-7/+5
| | | | | | paths look much better now, and Transportable is much cleaner. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@740 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding logging methods to all Puppet::Element instances, and converting all ↵luke2005-10-261-11/+9
| | | | | | instance log statements to use those methods. Additionally modified logging to take advantage of this by including the path of the logging object in the output. Logs will still need some cleanup to avoid duplicate information. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@731 980ebf18-57e1-0310-9a29-db15c13687c0
* Made tweaks here and there to get it running better on my local network. I ↵luke2005-10-211-2/+2
| | | | | | am inches away from that happening. All tests pass. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@720 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing output in noopluke2005-09-261-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@705 980ebf18-57e1-0310-9a29-db15c13687c0
* Rearranging the packaging support a bit -- it is now more clear and ↵luke2005-09-241-2/+0
| | | | | | significantly easier to understand, maintain, and enhance. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@704 980ebf18-57e1-0310-9a29-db15c13687c0
* Many, many changes toward a completely functional system. The only current ↵luke2005-09-231-7/+11
| | | | | | problems with my home config are that apache's stupid init script does not do status and that packages are not working as non-root users (which makes sense). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@703 980ebf18-57e1-0310-9a29-db15c13687c0
* Users and groups now work on OS X. I had to make some key changes to how ↵luke2005-09-171-7/+10
| | | | | | transactions and state changes work -- the most important is that it is no longer an error to try to sync a state that is already in sync. I could not find another way to handle all user states being out of sync but the first state actually syncs everything. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@686 980ebf18-57e1-0310-9a29-db15c13687c0
* Users and groups now nearly work on normal machines and on os x, and I think ↵luke2005-09-171-2/+4
| | | | | | I have a decent platform for expansion to some of the other important elements like hosts (probably most important after users and groups). Some tests are still failing on os x, because netinfo sucks, but I will hopefully be able to figure out a solution soon. Stupid OS X and NetInfo. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@684 980ebf18-57e1-0310-9a29-db15c13687c0
* Creating a "change_to_s" method on State, so individual states can override ↵luke2005-09-161-16/+11
| | | | | | and and determine how they get printed git-svn-id: https://reductivelabs.com/svn/puppet/trunk@681 980ebf18-57e1-0310-9a29-db15c13687c0
* small fixing to merge(), and changing output of statechangeluke2005-09-161-2/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@676 980ebf18-57e1-0310-9a29-db15c13687c0
* modifications to eliminate code duplication in state creation, mostly to ↵luke2005-09-151-24/+30
| | | | | | support cron git-svn-id: https://reductivelabs.com/svn/puppet/trunk@663 980ebf18-57e1-0310-9a29-db15c13687c0
* finishing up user and group support for nowluke2005-09-071-1/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@633 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing error callsluke2005-09-021-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@617 980ebf18-57e1-0310-9a29-db15c13687c0
* bumping up the default log level for changes from info to noticeLuke Kanies2005-08-291-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@598 980ebf18-57e1-0310-9a29-db15c13687c0
* Execution order is now based on dependency relationships, and those ↵Luke Kanies2005-08-181-1/+2
| | | | | | relationships correctly propagate up and descend into components. There is also an event test suite now, along with a (currently simple) component test suite. git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@565 980ebf18-57e1-0310-9a29-db15c13687c0
* all tests now pass on os xLuke Kanies2005-08-061-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@502 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing verbose output to be better and easier to manageLuke Kanies2005-08-041-5/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@499 980ebf18-57e1-0310-9a29-db15c13687c0
* passing state, so more info can be extractedLuke Kanies2005-08-041-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@498 980ebf18-57e1-0310-9a29-db15c13687c0
* okay, sources seem to be much more understandable here -- only the recursion ↵Luke Kanies2005-07-221-4/+20
| | | | | | function is recursive git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@436 980ebf18-57e1-0310-9a29-db15c13687c0
* recursive file copying now works even with some limited number of errorsLuke Kanies2005-07-201-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@426 980ebf18-57e1-0310-9a29-db15c13687c0
* in the middle of a bunch of refactoring; committing so that others can try ↵Luke Kanies2005-07-121-2/+1
| | | | | | to replicate the segfault i am seeing git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@370 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing debugging to severely reduce output but allow it when debugging a ↵Luke Kanies2005-06-291-3/+3
| | | | | | specific service git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@319 980ebf18-57e1-0310-9a29-db15c13687c0
* logging now exactly supports the list of levels that syslog supports, and ↵Luke Kanies2005-06-281-1/+1
| | | | | | multiple destinations (syslog, files, and console) are now supported git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@311 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming blink to puppetLuke Kanies2005-06-271-8/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@305 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming blink to puppetLuke Kanies2005-06-271-0/+111
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@302 980ebf18-57e1-0310-9a29-db15c13687c0