summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #2229 - Red Hat init script errorJames Turnbull2009-06-101-1/+1
|
* Fix #1907 (or sort) - 'require' puppet functionBrice Figureau2009-06-103-0/+97
| | | | | | | | This function acts exactly as the 'include' function, but also adds an ordering relation between the included class and the class where the require function is. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* #2332: Remove trailing slashes from path commands in the pluginBryan Kearney2009-06-092-0/+7
|
* Changing the preferred serialization format to jsonLuke Kanies2009-06-064-13/+5
| | | | | | | | | This won't affect most people, but it's a good default to have for those who can support it. Signed-off-by: Luke Kanies <luke@madstop.com> Minor changes to previous commit
* Switching Queueing to using JSON instead of YAMLLuke Kanies2009-06-066-53/+158
| | | | | | This provides about a 75x speedup, so it's totally worth it. The downside is that queueing requires json, but only on the server side.
* Adding JSON support to CatalogsLuke Kanies2009-06-064-0/+267
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Providing JSON support to the Resource classLuke Kanies2009-06-062-3/+221
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a JSON utility module for providing Ruby compatLuke Kanies2009-06-062-0/+34
| | | | | | | This provides the class-method behaviour that Ruby's JSON support expects but that we don't provide. Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding JSON support to Puppet::RelationshipLuke Kanies2009-06-062-1/+133
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a JSON formatLuke Kanies2009-06-065-1/+207
| | | | Also making some log messages more informative.
* Allowing formats to specify the individual method names to useLuke Kanies2009-06-062-23/+35
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Allowing formats to specify the methods they requireLuke Kanies2009-06-062-17/+81
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Adding a "json" featureLuke Kanies2009-06-063-1/+6
| | | | | We have to guarantee that the Rails code is loaded before the JSON code, because Rails includes its own incompatible JSON support.
* Fix some tests who were missing some actionsBrice Figureau2009-06-061-0/+4
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Make sure virtual and rails query use tags when tag are searchedBrice Figureau2009-06-064-7/+35
| | | | | | | | | | | | Up to now, when trying to match with tags: File<<| tag == 'value' |>> in fact we were querying parameters. Hopefully all the user tags are stored in parameters so it was working. But it wasn't possible to search on auto-tags (like class name). This patch makes sure searching by tag is done on tags both on the rails side and the resource side. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Make sure resources are tagged with the user tag on the serverBrice Figureau2009-06-062-0/+8
| | | | | | | | It appears that resources were not tagged with user tag on the server, which prevents those tags to be persisted as tag in the storeconfigs. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fix #2246 - Array tagged resources can't be collected or exportedBrice Figureau2009-06-062-3/+5
| | | | | | | | | | | | I don't know why we imposed the restriction that we shouldn't match with parameter containing arrays in exported mode. That doesn't seem right, as the produced rails query works fine with arrays. Note: the user tags are not stored in the rails database except under the special resource parameter tag. This also doesn't seem right. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Partial fix for #2329James Turnbull2009-06-061-1/+1
|
* Removed extra whitespace from end of linesIan Taylor2009-06-06422-3029/+3029
|
* Changed indentation to be more consistent with style guide (4 spaces per level)Ian Taylor2009-06-0628-1271/+1271
|
* Changed tabs to spaces without interfering with indentation or alignmentIan Taylor2009-06-06123-5550/+5550
|
* Fix #2308 - Mongrel should use X-Forwarded-ForBrice Figureau2009-06-054-3/+33
| | | | | | | | | | | | Mongrel puppet code uses REMOTE_ADDR to set the ip address which will be use to authenticate the client access. Since mongrel is always used in a proxy mode with Puppet, REMOTE_ADDR is always the address of the proxy (usually 127.0.0.1), which defeats the purpose. With this changeset, the mongrel code now uses the X-Forwarded-For HTTP header value if it is passed over the REMOTE_ADDR. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixes Bug #2324 - Puppetd fails to start without railsStéphan Gorget2009-06-051-1/+1
| | | | Signed-off-by: Stéphan Gorget <gorget@ocre.cea.fr>
* Enhance versioncmp documentationBrice Figureau2009-06-041-1/+22
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* * provider/augeas: minor spec test cleanupDavid Lutterkort2009-06-031-29/+30
| | | | | | - rename some tests to make their purpose clearer - add a test for nested predicates - remove trailing whitespace
* * provider/augeas: allow escaped whitespace and brackets in pathsDavid Lutterkort2009-06-032-1/+8
|
* * provider/augeas: match comparison uses '==' and '!=' againDavid Lutterkort2009-06-033-11/+11
| | | | | | Change the syntax for match in an onlyif back to using '==' for equality comparison instead of 'eq' (this was the behavior before 9a2642) and make operator for inequality '!='.
* * provider/augeas (process_match): no match results in empty arrayDavid Lutterkort2009-06-031-1/+1
|
* * provider/augeas: remove useless checks for nilDavid Lutterkort2009-06-031-36/+32
|
* * provider/augeas: simplify evaluation in process_get/matchDavid Lutterkort2009-06-031-10/+9
|
* * provider/augeas (open_augeas): use Augeas flag names, not intsDavid Lutterkort2009-06-031-2/+2
|
* * provider/augeas: ensure Augeas connection is always closedDavid Lutterkort2009-06-031-35/+41
| | | | | | | | | | | | | | | | | | | | Turn code like open_augeas ... close_augeas into begin open_augeas ... ensure close_augeas end Would have liked to pass the '...' as a block into a 'with_augeas' method, but that makes the spec tests fail in ways I don't understand.
* * provider/augeas: minor code cleanupDavid Lutterkort2009-06-031-44/+44
| | | | | | | - remove '()' for empty method calls - remove 'self.' for calling methods on self - use the fact that nil is false - remove redundant parens around some expressions
* * provider/augeas (parse_commands): use split to split string into linesDavid Lutterkort2009-06-031-3/+1
|
* * provider/augeas: remove trailing whitespace (no functional change)David Lutterkort2009-06-031-4/+4
|
* Brought in lutters parse_commands patch and integrated it into the type.David Lutterkort2009-06-033-172/+218
| | | | | | | | | | | | | | | | | | | | | This includes reworking the get and match commands as well. This change introduces a few small changes. These are: 1) There can be no ' or " characters around path elements. 2) The context is now only prepended to relative paths. So, if a path is specified as /foo/bar the context will not be appended. It will only be appended if it is foo/bar 3) The syntax for array matching in the onlyif is now eq or noteq. It was == before. 4) The get and set commnands used to concatenate all items at the end of a string so "set path to some value" would be interpreted as "set" "path" "to some value". This is no longer supported. The caller must put ' or " around the "to some value" for it to work" Cherry-pick of 9a2642 from 0.24.x Conflicts: lib/puppet/provider/augeas/augeas.rb
* Removed --no-chain-reply-to in rake mail_patches taskJames Turnbull2009-06-031-1/+1
|
* Removing --no-thread from the mail_patches rake targetLuke Kanies2009-06-031-1/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing a bunch of warningsLuke Kanies2009-06-0312-20/+20
| | | | | | This commit should have no functional effect. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing tests broken by a recent fix to CacherLuke Kanies2009-06-031-3/+3
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Always providing a value for 'exported' on Rails resourcesLuke Kanies2009-06-032-2/+56
| | | | | | | | | | | We often didn't set a value, unless it was true, which meant that if it had previously been true but was now false, we didn't fix it. We also were not always saving modified resources, which in some cases resulted in work not getting saved. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #2230 - exported resources work againLuke Kanies2009-06-032-0/+6
| | | | | | | | This somehow got lost in the conversion from Parser resources to Puppet resources. We now copy over the 'exported' value. Signed-off-by: Luke Kanies <luke@madstop.com>
* Disabling the catalog cache, so puppetqd is compatible with storeconfigsLuke Kanies2009-06-031-0/+6
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing the rails feature to be compatible with 2.1+Luke Kanies2009-06-031-19/+16
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Using Message acknowledgement in queueingLuke Kanies2009-06-032-3/+20
| | | | | | | | | This allows a more fine-grained load-balancing of the queue, which makes it easy to spin up multiple puppetqd instances and process the queues faster. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #2315 - ca --generate works againLuke Kanies2009-06-032-20/+6
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fix #2220 - Make sure stat is refreshed while managing FilesBrice Figureau2009-06-021-1/+1
| | | | | | | | | | | Since the introduction of the attribute cacher, Files couldn't refresh their 'stat' attribute while applying the properties. This could led to misunderstanding (like not setting mode) because the stat didn't reflect the physical state of the entity, especially when creating directories, where puppet was taking decision thinking the directory didn't exist although it was just created. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Added puppet branding to format patch commandJames Turnbull2009-06-011-1/+1
|
* vim: Remove another mention of 'site' from syntaxTodd Zullinger2009-05-301-1/+1
| | | | | Noticed-by: Marc Fournier <marc.fournier@camptocamp.com> Signed-off-by: Todd Zullinger <tmz@pobox.com>
* vim: Highlight parameters with 'plusignment' operatorTodd Zullinger2009-05-301-2/+2
| | | | Signed-off-by: Todd Zullinger <tmz@pobox.com>