summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #855, but I didn't add any tests.Michael V. O'Brien2007-10-041-2/+0
|
* Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-0350-50/+0
|\ | | | | | | | | | | | | Conflicts: lib/puppet/defaults.rb lib/puppet/dsl.rb
| * Removing the Id tags from all of the filesLuke Kanies2007-10-0350-50/+0
| |
* | I finally tracked down the problem that was causing providersLuke Kanies2007-10-031-1/+1
|/ | | | | | | | | | | | to sometimes suddenly disappear and thus tests to fail -- Kernel.require was not loading the normal ruby path (e.g., 'puppet/type/cron'), so if someone else loaded that then it would replace the in-memory type with a new one, but that new one couldn't load its own providers, because the Kernel would ignore the providers, thinking they were already loaded. This doesn't fix all of the autoloading problems, but at least we won't suddenly break a ton of tests.
* Use external helper script to talk to yum; should avoid any more trouble ↵David Lutterkort2007-10-023-57/+113
| | | | | | with "yum list". Fixes trac #836 Signed-off-by: David Lutterkort <dlutter@redhat.com>
* Merge branch 'indirection' of git://reductivelabs.com/puppet-lukeLuke Kanies2007-09-251-2/+0
|\
| * The whole system now uses Configuration objects instead ofLuke Kanies2007-09-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fixing a small problem with the mailman typeLuke Kanies2007-09-251-2/+2
|/
* Fixed hdiutil syntax for ticket 812Jeffrey J McCune2007-09-101-1/+1
|
* Removing extraneous debugging from crontabluke2007-08-101-6/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2768 980ebf18-57e1-0310-9a29-db15c13687c0
* trac #763: Make redhat provider default for CentOS (patch by jtimberman)lutter2007-08-091-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2764 980ebf18-57e1-0310-9a29-db15c13687c0
* Constants in provider/interface/redhat.rb are getting redifined as they are ↵christian2007-08-091-13/+13
| | | | | | dynamically assigned, changing them to instance variables git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2762 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix the ral:providers:host:parsed tests so they run successfully(no author)2007-08-091-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2757 980ebf18-57e1-0310-9a29-db15c13687c0
* The last set of bug-fixes before the next release. This commit just fixes a ↵luke2007-08-074-6/+4
| | | | | | couple of problems that resulted when I changed the Provider#initialize method to not duplicate its argument, which was necessary for ParsedFile. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2753 980ebf18-57e1-0310-9a29-db15c13687c0
* Copying the "commands" and "confine" statements to the actual dscl ↵luke2007-08-062-6/+8
| | | | | | providers, since they need to be there to determine where the providers are suitable. Otherwise base classes could unnecessarily affect how subclasses work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2751 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #749 -- environment settings no longer accumulate. Significantly ↵luke2007-08-062-36/+52
| | | | | | adding to the cron tests at the same time, such that hopefully we will no longer have these recurring bugs. I now do every combinatorial of multi-line cron jobs, including doing them all in one file. There are, unfortunately, still edge cases, but maybe we will have some peace in cron space for a while, anyway. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2750 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the code from #745 until it can pass some basic testsluke2007-08-051-40/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2749 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding syslog support by devdas (#745).luke2007-08-051-0/+40
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2748 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #751 -- the interface providers now have basic tests, at least to ↵luke2007-08-052-104/+131
| | | | | | verify that prefetching and listing works. I think these resource types need to be largely rewritten, though, and they currently have no relationship to ifconfig, which seems strange. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2747 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #730 -- mounts now call flush() before trying to mountluke2007-08-051-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2745 980ebf18-57e1-0310-9a29-db15c13687c0
* Removed stray debugger method.mccune2007-08-031-4/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2740 980ebf18-57e1-0310-9a29-db15c13687c0
* DirectoryService provider for users and groups. Alternative to netinfo, as ↵mccune2007-08-033-0/+481
| | | | | | | | apple has indicated NetInfo may go away at some point in the future. It might happen in October. FIXME: implement groups and groups= instances methods for Puppet::Type::User::ProviderDirectoryservice git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2739 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming the linux interface provider to redhatluke2007-08-031-46/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2737 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by stick to the linux interface providerluke2007-08-031-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2736 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding interface implementations, as written by Paul Roseluke2007-07-312-0/+383
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2732 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some code in an attempt to fix #728, but it is all commented out ↵luke2007-07-201-1/+22
| | | | | | since I could not get it fixed in time for beaker git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2722 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the mail aliases generated by the mailman list provider; it was ↵luke2007-07-201-2/+3
| | | | | | generating capitalized list names git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2719 980ebf18-57e1-0310-9a29-db15c13687c0
* The first round of bug-fixes in preparation for beakerluke2007-07-191-1/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2714 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix #696. (patch by Jason Kohles)lutter2007-07-191-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2710 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by DavidS to fix #711.luke2007-07-182-2/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2708 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #702, hopefully. As suggested, I switched to "mount" instead of "df" ↵luke2007-07-182-11/+5
| | | | | | to determine whether an fs is mounted. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2707 980ebf18-57e1-0310-9a29-db15c13687c0
* Guard the rpm command suitability confine better so we hopefully stop seeing ↵(no author)2007-07-164-16/+38
| | | | | | all of the 'Command not available' errors git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2701 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the rest of #705, except for the env stuff, which I was not able to ↵luke2007-07-141-0/+1
| | | | | | reproduce. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2697 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding rpm as a specific command to :rugluke2007-07-131-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2692 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch from #714 -- aptrpm now loads on RHELluke2007-07-121-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2689 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the mailman provider so it correctly matches case. Apparently ↵luke2007-07-121-3/+3
| | | | | | mailman helpfully autocapitalizes list names. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2688 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the first half of #705 -- matching no longer fails. I think this ↵luke2007-07-122-38/+45
| | | | | | also fixes #648. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2680 980ebf18-57e1-0310-9a29-db15c13687c0
* Having FileType instances automatically back their contents up to a ↵luke2007-07-111-1/+0
| | | | | | filebucket, so it is much harder to lose content. This does not yet back up crontab contents, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2679 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing transactions so that they do not flush resources that are in noopluke2007-07-111-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2678 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a maillist type, with support for mailman. It is not as flexible as ↵luke2007-07-111-0/+112
| | | | | | I would like, partially because of how mailman is implemented (the "mailman" command is never in the search path), but at least it is working for mailman on debian. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2677 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support for a "mailalias" type, with /etc/aliases support initially. ↵luke2007-07-101-0/+31
| | | | | | I have not yet figured out how to best rebuild the aliases file when necessary. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2676 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding line/file info to parsing errors in ParsedFileluke2007-07-101-1/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2675 980ebf18-57e1-0310-9a29-db15c13687c0
* Ignore the pkg directory if it exists, and fix up a couple of tests that ↵(no author)2007-07-092-0/+18
| | | | | | were erroring out, which also will help the confinement of package types a bit more. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2663 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by DavidS from #697 to allow host names to be double quotedluke2007-07-081-3/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2656 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the dpkg querying so that it works for packages that are in ↵luke2007-07-061-2/+6
| | | | | | "config-files" state rather than just missing entirely. Also fixing logging so that the package version is visible, instead of a dumped object git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2654 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixed #680 puppet should handle internet enabled image files correctly.mccune2007-07-051-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2650 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the long-obsolete Element base class. The Parameter and Type ↵luke2007-07-041-1/+0
| | | | | | classes no longer have the same base class. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2647 980ebf18-57e1-0310-9a29-db15c13687c0
* More test fixes. I seem to be getting very close.luke2007-06-191-2/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2624 980ebf18-57e1-0310-9a29-db15c13687c0
* Added documentation for pkgdmg provider in the provider desc accessor as per ↵mccune2007-06-181-7/+79
| | | | | | request in #641 It stil might not be crystal clear, but should be better than the one liner it replaces. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2622 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding tracing to prefetch failures, and Fixing the environment support in ↵luke2007-06-181-9/+5
| | | | | | the cron type (#669). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2621 980ebf18-57e1-0310-9a29-db15c13687c0