summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Updated CHANGELOG.Michael V. O'Brien2007-10-031-0/+7
|
* Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-10-032-15/+49
|\
| * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-037-71/+135
| |\
| * | Adding more behaviours to the Puppet::Module spec,Luke Kanies2007-10-032-15/+49
| | | | | | | | | | | | | | | | | | | | | and fixing some bugs in the process. Specifically, modules were no longer correctly handling fully qualified files, and they do so once again.
* | | Fixed #832. Added the '--no-daemonize' option to puppetd and puppetmasterd.Michael V. O'Brien2007-10-035-55/+46
| | | | | | | | | | | | | | | The default behavior of 'verbose' and 'debug' no longer cause puppetd and puppetmasterd to not daemonize.
* | | Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-10-034-57/+116
|\ \ \ | | |/ | |/|
| * | Merge branch 'master' of git://reductivelabs.com/puppetDavid Lutterkort2007-10-023-14/+19
| |\ \
| * | | Use external helper script to talk to yum; should avoid any more trouble ↵David Lutterkort2007-10-024-57/+116
| | |/ | |/| | | | | | | | | | | | | with "yum list". Fixes trac #836 Signed-off-by: David Lutterkort <dlutter@redhat.com>
* | | Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-10-023-14/+19
|\ \ \ | | |/ | |/|
| * | Fixed a failing test where we presumed that non-string Fact values would ↵Rick Bradley2007-10-021-1/+1
| | | | | | | | | | | | have type preserved across a P::N::Client.master.facts call, which is not true.
| * | Fixed a test which was secretly sneaking off and pulling certs from ~ if ↵Rick Bradley2007-10-022-13/+18
| |/ | | | | | | they were there: Added set_mygroup method, removed duplicate setme method. Included PuppetTest in the XMLRPC servlect test.
* | Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-09-2515-277/+332
|\|
| * Adding more indirection termini, mostly focused on cachingLuke Kanies2007-09-256-0/+151
| | | | | | | | information in yaml.
| * Adding cache support to indirection. If you haveLuke Kanies2007-09-252-24/+153
| | | | | | | | | | a '<indirection>_cache' setting, then the indirection will use the value there as the name of the cache.
| * Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppet into ↵Luke Kanies2007-09-2512-715/+794
| |\ | | | | | | | | | indirection
| * | I changed the Terminus class to switch camelcaseLuke Kanies2007-09-243-14/+28
| | | | | | | | | | | | | | | to underscore-separated words, e.g., FactStore becomes fact_store.
| * | Removing obsolete fact stores and node sources. The functionality has been ↵Luke Kanies2007-09-244-239/+0
| | | | | | | | | | | | moved into the indirector.
* | | Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-09-251-4/+3
|\ \ \ | | |/ | |/|
| * | Merge branch 'master' of git://michaelobrien.info/puppetLuke Kanies2007-09-252-1/+88
| |\ \
| * | | Fixing ralsh to use a configuration instead of a componentLuke Kanies2007-09-251-4/+3
| | | |
* | | | Updated the configuration doc to more clearly explain where puppet.conf is ↵Michael V. O'Brien2007-09-251-4/+8
| | | | | | | | | | | | | | | | expected to be by default.
* | | | Merge branch 'master' of git://reductivelabs.com/puppetMichael V. O'Brien2007-09-25158-3937/+5845
|\| | | | |/ / |/| |
| * | Demoting the "file does not exist" log to debug from noticeLuke Kanies2007-09-251-1/+1
| | |
| * | Merge branch 'indirection' of git://reductivelabs.com/puppet-lukeLuke Kanies2007-09-25157-3934/+5842
| |\|
| | * Taking a first stab at moving configuration compilingLuke Kanies2007-09-238-10/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into the indirection system. There are still quite a few unanswered questions, the two most notable being embodied in unimplemented tests in the Configuration Code terminus. This also requires changing the behaviour in a few places. In particular, 'puppet' and the 'module_puppet' cfengine module need to store a Node object in memory with the appropriate classes, since that's now the only way to communicate with the compiler. That integration work has not yet been done, partially because the old configuration handler (which the soon-to-be-deprecated master handler now uses) still exists.
| | * Adding a "memory" node terminus, which willLuke Kanies2007-09-235-0/+147
| | | | | | | | | | | | | | | | | | be used by 'puppet' and the Cfengine 'module_puppet', since they need to set up the node specially with classes and other weird things.
| | * Fixing the spec for the checksum terminus to matchLuke Kanies2007-09-231-3/+2
| | | | | | | | | | | | the changed design in the previous commit.
| | * Adding my first integration test, verifying thatLuke Kanies2007-09-238-85/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | checksum interaction behaves as I expect when interacting with the file terminus. I've also changed how files and checksums behave a bit. Files now create model instances with the content as the only argument during initialization, and checksums now calculate their checksums rather than having them passed in.
| | * Adding the first version of checksum support, which willLuke Kanies2007-09-226-10/+358
| | | | | | | | | | | | acquire the behaviour of FileBuckets.
| | * Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-2253-298/+297
| | | | | | | | | | | | | | | | | | | | | 'Puppet::Util::Settings'. This is to clear up confusion caused by the fact that we now have a 'Configuration' class to model host configurations, or any set of resources as a "configuration".
| | * Adding the base file terminus. This will, at the least,Luke Kanies2007-09-222-0/+170
| | | | | | | | | | | | | | | be used as the back end for filebuckets and the certificate authority.
| | * Merge branch 'configurations' into indirectionLuke Kanies2007-09-2263-1614/+1393
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/defaults.rb lib/puppet/indirector/facts/yaml.rb spec/unit/indirector/indirection.rb spec/unit/indirector/indirector.rb
| | | * All tests now pass in this configuration branch, which meansLuke Kanies2007-09-2214-186/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it's time to merge it back into the indirection branch. Considering that this work was what drove me to create the indirection branch in the first place, i should now be able to merge both back in the master branch.
| | | * The structure for handling resource generation is nowLuke Kanies2007-09-227-14/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in place, which means I'm over the hump in developing this branch. I have to fix some design flaws I made in the configurations, particularly that the 'runner' handler needs to be able to specify tags and whether to ignore schedules, but otherwise, I think it's straightforward test- and bug-fixing from here out.
| | | * An intermediate commit so I can start working on a differentLuke Kanies2007-09-2012-32/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branch. The file recursion code actually works for the first time in a painful while, but there are still some quirks and design issues to resolve, particularly around creating implicit resources that then fail (i.e., the behaviour of the create_implicit_resource method in Configuration).
| | | * This is basically another intermediate commit. I feel likeLuke Kanies2007-09-1743-917/+536
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've gone too far down the rabbit hole to turn back now, but the code is clearly getting more centralized around the Configuration class, which is the goal. Things are currently a bit muddy between recursion, dynamic resource generation, transactions, and the configuration, and I don't expect to be able to clear it up much until we rewrite all of the tests for the Transaction class, since that is when we'll actually be setting its behaviour. At this point, Files (which are currently the only resources that generate other resources) are responsible for adding their edges to the relationship graph. This puts them knowing more than I would like about how the relationship graph works, but it'll have to do for now. There are still failing tests, but files seem to work again. Now to go through the rest of the tests and make them work.
| | | * Configurations now set a "configuration" instance variable in resources that ↵Luke Kanies2007-09-153-5/+15
| | | | | | | | | | | | | | | | are inside a configuration, so the resources can interact with the configuration to get things like relationships.
| | | * The whole system now uses Configuration objects instead ofLuke Kanies2007-09-1521-577/+736
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ever converting the Transportable objects into a tree of components and then converting that into a graph. This is a significant step, and drastically simplifies the model of how to use a configuration. The old code might have looked something like this: file = Puppet::Type.create :path => "/whatever", ... comp = Puppet::Type.create :name => :whatever comp.push file transaction = comp.evaluate transaction.evaluate The new code looks like this: file = Puppet::Type.create :path => "/whatever", ... config = Puppet::Node::Configuration.new config.add_resource file config.apply I did not really intend to do this much refactoring, but I found I could not use a Configuration object to do work without refactoring a lot of the system. The primary problem was that the Client::Master and the Config classes determined how the transactions behaved; when I moved to using a Configuration, this distinction was lost, which meant that configurations were often needing to create other configurations, which resulted in a whole lot of infinite recursion (e.g., Config objects that create directories for Puppet use Configuration objects -- yes, I'm s/Config/Settings/g soon -- and these Configuration objects would need to create directories). Not everything is fixed, but it's very close. I am clearly over the hump, though, so I wanted to get a commit in.
| | * | Adding the last tests for the ldap node terminus. I managedLuke Kanies2007-09-224-15/+211
| | | | | | | | | | | | | | | | to forget the tests around the main find() method.
| | * | All indirections are working, and they have allLuke Kanies2007-09-2223-637/+711
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been migrated over to the new organization. Where we would have previously had an 'ldap' node terminus at puppet/indirector/node/ldap.rb, we would not have it at puppet/indirector/ldap/node.rb, and it would be a subclass of puppet/indirector/ldap.rb. These are called terminus classes, and there are now three categories of them: The base class itself, abstract classes that provide most of the functionality (e.g., the ldap and yaml classes), and the classes themselves that implement the functionality for a given model like Node or Facts. The base terminus class handles auto-loading any of these classes from disk.
| | * | It looks like the new indirection setup is complete.Luke Kanies2007-09-2112-217/+235
| | | | | | | | | | | | | | | | I only need to port the node indirection termini over.
| | * | Adding automatic association between terminus subclasses andLuke Kanies2007-09-214-45/+88
| | | | | | | | | | | | | | | | | | | | | | | | the indirection they're working with. It looks like I'll be moving terminus registration to the indirection rather than the top-level Indirector.
| | * | Adding the first top-level terminus (yaml). It worksLuke Kanies2007-09-217-14/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and is tested, so now it is time to migrate the Facts YAML Terminus to use the <terminus>/<indirection> file structure instead of <indirection>/<terminus>. In this case, that means that I am moving the functionality in lib/puppet/indirector/facts/yaml.rb to lib/puppet/indirector/yaml/facts.rb, and the class in that new file will subclass Puppet::Indirector::Yaml.
| | * | Moving the Puppet::Indirector::Terminus class into itsLuke Kanies2007-09-213-21/+59
| | | | | | | | | | | | | | | | own file and adding a spec for it.
| | * | Adding a couple more tests to the indirector, talking aboutLuke Kanies2007-09-212-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | terminus registration. I am about to change how loading is handled, so that individual termini are declared as normal Ruby classes.
| | * | The indirector specs now all pass. I think I needLuke Kanies2007-09-214-133/+63
| | | | | | | | | | | | | | | | to add a few more specs, though.
| | * | The unit tests for the newly-resurrected indirection classLuke Kanies2007-09-203-145/+157
| | | | | | | | | | | | | | | | now work; all we need do is fix the indirector module tests.
| | * | Fixing all existing spec tests so that they nowLuke Kanies2007-09-2015-62/+73
| | | | | | | | | | | | | | | | | | | | | | | | pass given the redesign that Rick implemented. This was mostly a question of fixing the method names and the mocks.
| | * | Merge branch 'indirection' of http://git.rickbradley.com/puppet into indirectionLuke Kanies2007-09-202-132/+211
| | |\ \
| | | * | Whitespace and comment commit.Rick Bradley2007-09-201-1/+3
| | | | |