summaryrefslogtreecommitdiffstats
path: root/lib/puppet/transaction.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* This is the initial commit of the changes to sync and retrieve. Theluke2006-09-031-1/+7
| | | | | | | | | | | | | 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
* Upgrading Triggering line from info to noticeluke2006-08-281-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1505 980ebf18-57e1-0310-9a29-db15c13687c0
* A first pass of changing one of the types of names to titles. I still have ↵luke2006-08-161-3/+8
| | | | | | to fix a lot of tests, but the core itself is now working. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1471 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging r1468 from the implementations branch with r1438 from when the ↵luke2006-08-141-1/+4
| | | | | | branch was first created. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1469 980ebf18-57e1-0310-9a29-db15c13687c0
* More report and metrics manipulations. This should be the last of it.luke2006-07-011-7/+40
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1351 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to merge metrics and reports. There is now a separate transaction ↵luke2006-06-301-48/+76
| | | | | | report class, and it works throughout the previously existing system. I will next go through trying to make a metric report that graphs the metrics in rrd. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1347 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding report collection to both statechange and transaction.luke2006-06-291-0/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1336 980ebf18-57e1-0310-9a29-db15c13687c0
* Cleaning up plugin handling a bit -- they can now be colon-separated paths, ↵luke2006-06-281-0/+5
| | | | | | and I added a separate "plugindest" setting for determining where plugins are synchronized to. The major feature I added, though, is that Puppet::Type now knows how to load plugins, and treats :pluginpath as a search path for plugins. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1330 980ebf18-57e1-0310-9a29-db15c13687c0
* Catching errors thrown during object evaluation and marking the objects as ↵luke2006-06-271-1/+16
| | | | | | failed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1321 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding plugins and plugin management. The Master Client will now ↵luke2006-06-201-1/+7
| | | | | | automatically download plugins if pluginsync is enabled, and they will be automatically sourced. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1302 980ebf18-57e1-0310-9a29-db15c13687c0
* A round of bug-fixing in preparation for the next release.luke2006-06-131-3/+20
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1256 980ebf18-57e1-0310-9a29-db15c13687c0
* Added the last of the tests for the runner, along with the necessary work in ↵luke2006-05-181-2/+5
| | | | | | puppetd to be able to start it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1213 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a lot of structure to puppet.rb to make it easier to manage multiple ↵luke2006-05-181-4/+5
| | | | | | | | 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
* Making trigger logs much clearer -- you now get info logs indicating how ↵luke2006-05-051-7/+33
| | | | | | many dependencies changed, and debug logs indicating what those dependencies are git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1178 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing how events work. Events are now responded to inline, while an ↵luke2006-05-051-115/+147
| | | | | | object is being applied. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1177 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #82. You can now specify comma-separated tags to get run in puppet ↵luke2006-03-111-0/+19
| | | | | | or puppetd: puppetd --onetime --tags "enhost, facter" -v. You cannot specify classes explicitly, but tags map well to classes and have the benefit of being more generic. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1005 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #95. I had to redesign how events were triggered; the transaction ↵luke2006-03-091-91/+29
| | | | | | now individually triggers each subscription, so that it has control in how to respond to failures. Eventually, this will lead the way to error handling within puppet, but for now, it just allows us to trigger every appropriate subscription, whether some have failed or not. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@998 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, Puppet is now almost entirely capable of configuring itself. I have ↵luke2006-03-021-1/+1
| | | | | | 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
* Changing transactions to be one-stage instead of two, and changing most of ↵luke2006-02-161-24/+78
| | | | | | the type classes to use "obj[:name]" instead of "obj.name" where appropriate, because "obj.name" might be a symbolic name (e.g., File.unlink(file.name) will not do what you want if file.name == "sshdconfig" but file[:path] == "/etc/ssh/sshd_config") git-svn-id: https://reductivelabs.com/svn/puppet/trunk@922 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing class storage -- it was not working for nodescopesluke2006-01-301-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@858 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the event-loop stuff to the repository and switching to using it. ↵luke2006-01-241-3/+3
| | | | | | Also, breaking many classes out into their own class files. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@848 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing most of the scheduling stuff. There is still a bit of work to do ↵luke2006-01-231-3/+15
| | | | | | in terms of how puppetd interacts with scheduling, but the bulk of the work is done. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@847 980ebf18-57e1-0310-9a29-db15c13687c0
* Made lots of small changes, mostly to help usability but also fixed a couple ↵luke2006-01-181-1/+2
| | | | | | of key bugs git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
* Added "ensure" state to some classes, and added infrastructure for it to ↵luke2006-01-161-3/+8
| | | | | | work elsewhere. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@831 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging changes from the head of the rework1 branch, r 784luke2006-01-081-2/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@787 980ebf18-57e1-0310-9a29-db15c13687c0
* Undoing the merge that happened in 785luke2006-01-071-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@786 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging in refactoring from version 774 into version 784luke2006-01-071-2/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@785 980ebf18-57e1-0310-9a29-db15c13687c0
* Further progress towards the next release. Lots of small bugs fixed, the ↵luke2005-11-011-4/+1
| | | | | | 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
* "latest" is now a valid value for packages, and yum support is also includedluke2005-10-201-4/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@718 980ebf18-57e1-0310-9a29-db15c13687c0
* switching all relationships to be centrally maintained and to use symbolic ↵luke2005-10-011-2/+5
| | | | | | references, rather than literal ones; also going through and making all tests pass again after mucking with services git-svn-id: https://reductivelabs.com/svn/puppet/trunk@710 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-5/+12
| | | | | | 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-1/+6
| | | | | | 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
* fixing error handling so that failed objects are completely destroyed; they ↵luke2005-09-131-5/+5
| | | | | | were receiving events even though they were supposed to be gone git-svn-id: https://reductivelabs.com/svn/puppet/trunk@651 980ebf18-57e1-0310-9a29-db15c13687c0
* intermediate commit so cron is not loadedluke2005-09-121-0/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@648 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing groups again after getting them to work with netinfoluke2005-09-091-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@641 980ebf18-57e1-0310-9a29-db15c13687c0
* reverting changes in the reverse order of what i executed themluke2005-09-081-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@638 980ebf18-57e1-0310-9a29-db15c13687c0
* finishing up user and group support for nowluke2005-09-071-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@633 980ebf18-57e1-0310-9a29-db15c13687c0
* changing rollback() to do event handling alsoluke2005-09-071-1/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@629 980ebf18-57e1-0310-9a29-db15c13687c0
* Execution order is now based on dependency relationships, and those ↵Luke Kanies2005-08-181-32/+19
| | | | | | 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
* okay, last try on sources hopefully -- no failures, and basic functionality ↵Luke Kanies2005-07-221-1/+1
| | | | | | all seems to be working git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@439 980ebf18-57e1-0310-9a29-db15c13687c0
* temp commit before i change the whole way that i am doing source + recursionLuke Kanies2005-07-191-5/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@421 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
* metric testing and graphing now works in the library, although nothing has ↵Luke Kanies2005-06-291-0/+1
| | | | | | been done in the language git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@314 980ebf18-57e1-0310-9a29-db15c13687c0
* logging now exactly supports the list of levels that syslog supports, and ↵Luke Kanies2005-06-281-3/+3
| | | | | | 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-15/+15
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@305 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming blink to puppetLuke Kanies2005-06-271-0/+162
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@302 980ebf18-57e1-0310-9a29-db15c13687c0