summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing resource aliasing to not use global resource aliasing.Luke Kanies2008-10-171-3/+0
| | | | | | | | | | | | | | I'm not really sure why the 0.24.x-style code got merged in, since master's changes should be more recent. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-1769-1200/+2315
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Fixing tests I broke when trying to fix the Providers reference.Luke Kanies2008-10-171-1/+10
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Use fully qualified paths when calling binaries, adjust chcon call to use ↵Sean E. Millichamp2008-10-171-8/+2
| | | | | | | | Puppet's execute() function.
| * Setting SELinux contexts with chcon should not dereference symbolic linksSean E. Millichamp2008-10-171-2/+2
| |
| * Fix #1115 - Allow checking tags/classes from ERb templatesBrice Figureau2008-10-141-0/+10
| | | | | | | | | | | | | | | | Add to predefined variables to the ERB template space. "classes" and "tags" which provide arrays of all the defined classes and tags for a node. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing #1647 - puppetdoc's 'providers' report works again.Luke Kanies2008-10-141-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix 1642 (always warning) and improve unit tests to cover when to warn and notPaul Nasrat2008-10-111-1/+1
| |
| * lazy load latest package definitions with yumhelper 2.2duritong2008-10-101-17/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge commit to 0.24x, original commit: I could observe that yumhelper.py can run quite some time and use quite a lot of memory (up to 100MB!) if you're using many repositories. As the yumhelper is only needed if you use latest as a ensure-keyword it makes no sense for people like me letting puppet fetch these details always, if you're never going to use latest. => lazy loading. After discussion on the list, this is the new version for lazy loading yum latest package versions. It is implemented mainly in the way that Luke proposed. However it stores the latest informations in the variable latest_info so the latest method didn't get too hackish and could nearly be left like it was before.
| * Revert "Added last part of #1633 patch - update to util/metrics.rb"James Turnbull2008-10-101-5/+0
| | | | | | | | This reverts commit c5d1a4f6ffe72477ce02358a93d48df850aea15b.
| * Added last part of #1633 patch - update to util/metrics.rbJames Turnbull2008-10-101-0/+5
| |
| * Adding an additional option for the fix in ff36832e, skipping missing cert dirsLuke Kanies2008-10-081-0/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing a gid test for users, since it is a bad test and has mostly been ↵Luke Kanies2008-10-081-2/+1
| | | | | | | | | | | | replaced in rspec Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing a test that was failing because i-have-no-ideaLuke Kanies2008-10-081-1/+5
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing the broken tests resulting from the fix for #1551.Luke Kanies2008-10-081-1/+1
| | | | | | | | | | | | The test was expecting the current time, albeit as an integer. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add unit test coverage for Puppet::Util::SELinux and fix problems found by testsSean E. Millichamp2008-10-091-13/+30
| |
| * Fixed #1639 - uninitialized constant Puppet::Type::User::ProviderUseraddJames Turnbull2008-10-091-1/+1
| |
| * Fix #1636 - part2 - correct some client errors.Brice Figureau2008-10-091-3/+7
| | | | | | | | | | | | | | | | | | #1636 original patch was incomplete, and on some cases, the client could report: "Failed to generate additional resources during transaction: None of the provided sources exist" The server was trying to recurse when asking to list files and thus was returning an empty response instead of a "file" response.
| * Fix several small regressions in plugins mountBrice Figureau2008-10-091-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since a30ecf2aeffd71960bd806fb28cd6d1b8adc2452, reclist has one parameter less, but Puppet::Network::Handler::PluginMount.list wasn't ported to the new API. While mounting plugins, reclist wasn't requiring 'file_serving/fileset', leading to an NameError. The change to the new API meant that we lost the existance test of plugins mount directory. It was failing when the client was mounting module plugins that weren't existing (like facter and no custom facts defined). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fixing #1640 - file groups now no longer get set on every runLuke Kanies2008-10-081-0/+15
| | | | | | | | | | | | (this was a regression caused by other work I did). Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fix scenario when SELinux support tools exist, but SELinux is disabledSean E. Millichamp2008-10-081-0/+6
| |
| * New and improved tests for file type SELinux contextsSean E. Millichamp2008-10-081-1/+1
| |
| * Fix regression when templatedir doesn't exist.Brice Figureau2008-10-081-8/+14
| | | | | | | | | | | | | | | | When searching for a module template and if the default templatedir is inexistant, puppet was raising an error without trying the modules templates directories. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #1202 - Collection attribute matching doesn't parse arraysBrice Figureau2008-10-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | This patch allows to do this: User <| groups == leads |> @user { "foo": ensure => "present", groups => ["bar","baz","leads"] } Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Adding an array indexer method to Puppet::Util::Metric as requested in #1633.Luke Kanies2008-10-081-0/+9
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding partial spec tests for Puppet::Util::Metric.Luke Kanies2008-10-081-9/+14
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #1473 - Rescue Timeout::Error in xmlrpc clientsAndrew Shafer2008-10-071-4/+4
| | | | | | | | | | Added a rescue block for Timeout::Error (which isn't a subclass of StandardError) Removed a Dev Error conditional to facilitate testing
| * Fxied #1354 - yum provider problems with RHEL 3James Turnbull2008-10-072-12/+100
| |
| * Fix #1109 - allow empty if or else branchesBrice Figureau2008-10-074-563/+637
| | | | | | | | | | | | | | | | | | | | | | | | This changesets allow empty if or else branches: if true { } else { } It works by emitting on the parser stack an AST node that doesn't do anything (a no-op). This allows the less intrusive code as no part of the if evaluation code has been touched.
| * Fixed documentation, typo and added CHANGELOG entryFrancois Deppierraz2008-10-071-3/+3
| |
| * Fix #1530: Correctly parse ssh type 1 keysFrancois Deppierraz2008-10-071-0/+6
| | | | | | | | | | This doesn't implies that puppet can managed SSH type 1 keys, it only ignores them.
| * Fix #381 - Allow multiple resource overrides or referencesBrice Figureau2008-10-054-390/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow this syntax: Resource[title1,title2] { param => value } as a compact form of Resource[title1] { param => value } Resource[title2] { param => value } This patch also introduces for free the possibility to group class references by type: exec { test: require => File["file1","file2","File3"] } which is completely equivalent to: exec { test: require => [ File["file1"],File["file2"],File["File3"] ] }
| * Fixing #1098 - Multiline strings now correctly increment the line countLuke Kanies2008-10-041-0/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Doing some simple refactorings on Puppet::LogLuke Kanies2008-10-041-14/+7
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1089 - Log messages are now tagged with the log level,Luke Kanies2008-10-041-0/+3
| | | | | | | | | | | | making it easier to match messages in the 'tagmail' report. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Adding rspec tests for the Puppet::Util::Log class.Luke Kanies2008-10-041-16/+11
| | | | | | | | | | | | | | Also using Puppet::Util::Tagging to handle the tagging, rather than custom methods. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed #981 - Removed 'Adding aliases' info messageLuke Kanies2008-10-041-2/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #947 - pluginsync no longer fails poorly when no plugins existLuke Kanies2008-10-031-2/+4
| | | | | | | | | | | | Note that it still fails -- it's just a more reasonable failure. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing the Node class to no longer validate environmentsLuke Kanies2008-10-031-7/+1
| | | | | | | | | | | | since #1614 removed that validation. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add SELinux context reset after file writes in Puppet::Util::FileTypeSean E. Millichamp2008-10-031-0/+7
| |
| * Add new support for :selrange SELinux file propertySean E. Millichamp2008-10-031-0/+7
| |
| * Add detected defaults for existing SELinux file propertiesSean E. Millichamp2008-10-031-0/+3
| |
| * Refactor SELinux commands to utility moduleSean E. Millichamp2008-10-032-32/+126
| |
| * Merged fsweetser's selinux patch against HEADBrett Lentz2008-10-036-0/+366
| |
| * Fixed #1613 - The client environment will be substituted when looking up ↵Luke Kanies2008-10-031-3/+5
| | | | | | | | | | | | | | | | | | | | settings. This won't be perfect, because it still requires that the caller pass in an environment, but for every case that an environment is passed in, that environment will be substituted into settings when possible. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixing #1614 - Environments no longer have to be listed out.Luke Kanies2008-10-032-23/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed error message typoJames Turnbull2008-10-031-1/+1
| |
| * Migrating the apt and dpkg tests to rspec.Luke Kanies2008-10-022-70/+45
| | | | | | | | | | | | | | I left the aptitude and aptrpm tests as an exercise for the reader. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add role support to user type and an implementionAndrew Shafer2008-10-013-49/+206
| | | | | | | | | | | | | | | | modify user type: add ensure = role logic add roles property add manages_solaris_rbac feature refactored 'list' property to reuse logic for groups in roles
| * Some small clarifying refactors and change to objectadd to allow subclasses ofAndrew Shafer2008-10-012-49/+25
| | | | | | | | | | | | | | with a uid not need to be a single class us use modify I don't like logic about subclasses in a parent class, but not in a position to address.