summaryrefslogtreecommitdiffstats
path: root/lib/puppet
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add parser for arbitrary expressionsBrice Figureau2008-10-013-645/+1020
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expressions can be used in if 'test' and in the right side of assignements. The expressions can contain any number of sub-expressions combined by either arithmetic operators, comparison operators, or boolean operators. Random Usage Examples: $result = ((( $two + 2) / $one) + 4 * 5.45) - (6 << 7) + (0x800 + -9) or if ($a < 10) and ($a + 10 != 200) { ... }
| * | Add arithmetic operators to ASTBrice Figureau2008-09-304-0/+89
| | | | | | | | | | | | | | | This changeset adds +,-,/,*,<< and >> computation and AST parse nodes.
| * | Add not operator to ASTBrice Figureau2008-09-302-0/+20
| | |
| * | Add comparison operators (< > == != <= >=) to ASTBrice Figureau2008-09-302-0/+38
| | |
| * | Add boolean operators to ASTBrice Figureau2008-09-302-0/+49
| | |
| * | Add warning and forcibly set to :md5 fixing #1564Paul Nasrat2008-09-301-0/+4
| | |
| * | Fix metadata class for cases when checksum_type setPaul Nasrat2008-09-301-3/+3
| | |
| * | Fixed #1603 - Added support for running Puppet inside a Rack applicationJames Turnbull2008-09-301-0/+148
| | |
| * | Fix ticket 1596 in new fileset code, use tmpdir in fileserver tests.Paul Nasrat2008-09-301-1/+1
| | |
| * | Make fileserver use fileset for recursion and handle dangling links by ↵Paul Nasrat2008-09-302-42/+25
| |/ | | | | | | ignoring them fixing #1544
| * Fixed #1610 - Raise "Filebucketed" messages to Notice priorityJames Turnbull2008-09-261-2/+2
| |
| * Added a number of confines to package providersJames Turnbull2008-09-256-2/+16
| |
| * Fixed #1609 - Added confines for the Gentoo, FreeBSD and SMF (Solaris) ↵James Turnbull2008-09-253-0/+6
| | | | | | | | service providers
| * Fixed #1608 - Added ubuntu to defaultfor for apt providerJames Turnbull2008-09-251-1/+1
| |
| * Fixed #1607 - Added ubuntu to defaultfor for Debian service providerJames Turnbull2008-09-251-1/+1
| |
| * Fixed #1472 -- defined, exported resources in the current compile now get ↵Luke Kanies2008-09-251-1/+2
| | | | | | | | | | | | | | | | | | expanded correctly. This was working for defined resources in the db, but not in the current compile. I just had to mark the resources as non-exported.
| * Fixed #1045 - Multiple metaparams all get added to resources.Luke Kanies2008-09-241-1/+1
| | | | | | | | | | | | | | The problem was that I was using a 'return' in a loop where I should have been using a 'next'. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding comments to Puppet::Util::CacherLuke Kanies2008-10-151-2/+26
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Removing obselete code from the file type.Luke Kanies2008-10-031-69/+0
| | | | | | | | | | | | Also shows that #674 is fixed. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merged fsweetser's selinux patch against HEADBrett Lentz2008-09-256-0/+366
| |
* | Merge branch 'feature/master/1481'Luke Kanies2008-09-2325-540/+440
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merges in the new fileserving code -- we're now using REST to do fileserving, rather than xmlrpc. Conflicts: lib/puppet/parameter.rb lib/puppet/type/file.rb spec/unit/type/file.rb
| * | Removing the old, obsolete recursion methods.Luke Kanies2008-08-291-168/+0
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | As far as I can tell, recursion is working entirely.Luke Kanies2008-08-291-1/+1
| | | | | | | | | | | | | | | | | | W00t! Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Removing insanely stupid default property behaviour.Luke Kanies2008-08-291-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Basically, I had the [] method on resources returning the 'should' value if one was available, but if one wasn't available, it would retrieve the current value from the resource. This resulted in all kinds of completely ridiculous behaviours. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Source recursion is nearly working.Luke Kanies2008-08-292-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | It works, but you have to run it multiple times, and there are still a couple of strangenesses with the parameter values, such as the mode not getting set on the first run. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Files now use the Indirector to recurse locally.Luke Kanies2008-08-281-6/+15
| | | | | | | | | | | | | | | | | | | | | I don't yet have integration tests for remote recursion or link recursion, but we're nearly there. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing filesets to allow nil ignore values.Luke Kanies2008-08-281-0/+2
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Recursion using REST seems to almost work.Luke Kanies2008-08-281-163/+83
| | | | | | | | | | | | | | | | | | | | | | | | I think this is the bulk of the work, I just need to write some integration tests to hunt down a couple of small issues. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Mostly finishing refactoring file recursion to use REST.Luke Kanies2008-08-272-17/+50
| | | | | | | | | | | | | | | | | | | | | | | | We have the majority of the work done (and it's a *lot* less code). We just have six more tests we need to implement the code for. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing FileServing::Base so that it can recurse on a single file.Luke Kanies2008-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | It was throwing exceptions if you tried to use it on a file instead of a directory. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing the terminus helper so it correctly catches options passed from ↵Luke Kanies2008-08-261-1/+10
| | | | | | | | | | | | | | | | | | clients via REST. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | The file source is now refactored and uses REST.Luke Kanies2008-08-262-25/+36
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | One third done refactoring file[:source] -- retrieve() is done.Luke Kanies2008-08-261-112/+62
| | | | | | | | | | | | | | | | | | | | | It now uses the FileServing::Metadata indirection and is about 100x cleaner to boot. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding a "source" attribute to fileserving instances.Luke Kanies2008-08-261-0/+4
| | | | | | | | | | | | | | | | | | | | | This will be used to cache the source that was used to retrieve the instance. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding automatic attribute collection to the new fileserving code.Luke Kanies2008-08-268-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically, this just includes a consistent method for collecting info (either content or metadata) and then calls that method when returning instances via the indirector. It's such a large commit mostly because of small changes in the normal code and large changes in the testing to accomodate those small changes. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding the content writer to the content class.Luke Kanies2008-08-261-1/+3
| | | | | | | | | | | | | | | | | | | | | Also choosing a fully qualified fake name when creating content instances from raw content. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Causing format selection to fail intelligently if no suitable format can be ↵Luke Kanies2008-08-261-1/+12
| | | | | | | | | | | | | | | | | | picked. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding a 'plural?' method to the Indirection::Request class.Luke Kanies2008-08-261-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm in the process of creating a new service for handling all of the http calls, including generation of the RESTian URL. This service obviously needs to know whether the url should be plural or singular, and the request knows the method in use, so it can easily answer the question. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing the rest backends for webrick and mongrel so the get the whole ↵Luke Kanies2008-08-263-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | request key. Also adding the Content work necessary to demonstrate that this is actually required. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Refactoring how files in FileServing are named.Luke Kanies2008-08-266-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, they retained some concept of the URI used to find them, and this uri was the primary key for the FileServing instances. This key was unfortunately completely useless, as evidenced by the fact that it was never used except to test that it worked. I've modified the FileServing instances (through modifying the Base class) to use their local path as their key, and they no longer care about the URI at all. This commit is mostly about fixing the code that interacts with the instances to use this new API. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Finishing the rename of FileBase => Base.Luke Kanies2008-08-262-4/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Git did something really strange, in that it apparently didn't add the new base.rb files even though I used 'git mv'. Also fixing some other failing tests I hadn't previously tracked down because of the magical tuple of autotest's suckiness and my laziness. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding weights to network formats, and sorting them based on the weight.Luke Kanies2008-08-263-3/+14
| | | | | | | | | | | | | | | | | | | | | This way the new hackish RAW format will only ever be used if it's specifically chosen. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Renaming FileServing::FileBase to FileServing::Base.Luke Kanies2008-08-263-83/+14
| | | | | | | | | | | | | | | | | | | | | | | | Also fixing a set of tests I broke last night. I'm looking at replacing autotest with rspactor, because my FSEvents hack to autotest means it's harder for me to rerun autotest. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding a hackish raw format.Luke Kanies2008-08-261-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | As the comment in the file says, we don't really have enough data to know what a good design would look like, and I think this format will be a bit of a one-off, so I'm just throwing up some barriers to keep people from doing silly things with it. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Adding suitability as a requirement for a format being supported.Luke Kanies2008-08-261-1/+2
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Removing the yaml conversion code from FileContent.Luke Kanies2008-08-261-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | Also fixing some integration tests that were failing because of the change to the terminus selection code for file serving. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Causing the Indirection to fail if a terminus selection hook does not return ↵Luke Kanies2008-08-261-1/+3
| | | | | | | | | | | | | | | | | | a value. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Spell-correcting a commentLuke Kanies2008-08-261-1/+1
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Cleaning up an exception.Luke Kanies2008-08-261-1/+5
| | | | | | | | | | | | | | | | | | Only adding option information when options are present. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | FileServing Configurations now expect unqualified files.Luke Kanies2008-08-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fits in with the fact that the indirection requests split URIs and set the request key to an unqualified path rather than a fully-qualified path. The whole system is unqualified end-to-end, now, except when you're specifically asking for a full, local file name. Signed-off-by: Luke Kanies <luke@madstop.com>