summaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
...
* Specs for yaml indirector .search - I'm still learning!James Turnbull2008-08-011-27/+0
| | | | Updated, I was calling .base myself instead of the actual string
* Made puppetlast work on 0.24.5 by using the YAML indirectorAJ Christensen2008-08-011-5/+7
|
* Revert "Fixing puppetlast to make it work with 0.24.5 / 0.25."James Turnbull2008-08-011-17/+22
| | | | This reverts commit 971af69b7388cf5155bb124246f2a697578cc6e9.
* Fixing puppetlast to make it work with 0.24.5 / 0.25.AJ Christensen2008-07-261-22/+17
| | | | Tidied up some of the code a little
* Fixing puppet_module -- it needed the same node interface change.Luke Kanies2008-07-211-1/+1
| | | | | | I wonder if anyone's actually using this... Signed-off-by: Luke Kanies <luke@madstop.com>
* Further moves from the examples directory and ext directoryJames Turnbull2008-07-1510-216/+0
|
* Moved debian to conf and updated examples directoryJames Turnbull2008-07-1010-0/+283
|
* Adding changes to config print that were missed in fix for 1183Andrew Shafer2008-07-031-2/+3
|
* Further Emacs puppet-mode fixesRuss Allbery2008-05-301-15/+15
| | | | | | | | | | | | More correctly handle indentation of lines enclosed in [] when the contents themselves contain [], such as arrays of object references for requires. Exclude newlines from more of the parsing regexes for more accurate results. Fontify references to objects even if they're not at the start of a line.
* Added the ability to add arbitrary attributes to ldap.Gunnar Wrobel2008-05-151-1/+6
| | | | This fixes #1179.
* adding more autotest docsLuke Kanies2008-05-131-0/+7
|
* Adding autotest info to the ext/ directory.Luke Kanies2008-05-133-0/+60
| | | | | Adding the autotest config, instructions, and a Rakefile that can install it.
* Fix Emacs mode indentation of multiple nested blocksRuss Allbery2008-05-121-7/+13
| | | | | | | | | | | | Indentation of multiple nested blocks was broken; the closing braces of all the outer blocks were put into column 0 because finding the block indentation failed. Do normal indentation if finding a block indentation fails, but more importantly, be smarter about searching backwards to find the beginning of the current block, taking balanced braces into account. There is probably some less-ugly and more Emacs-native way of doing this.
* Enhancements to syntax highlighting and indentation for EmacsRuss Allbery2008-05-121-125/+159
| | | | | | | | | | | | | | | | | | | | | | | | More correctly handle multiple resources in a block, such as: type { "name": attr => foo, oattr => bar; "other": attr => baz; } Handle continued arguments in parentheses, such as define or realize arguments. Try to be a bit more robust about indenting in general. Add the remaining Puppet language keywords (I think) and improve the handling of type references at the top level. Remove the hack for continued include lines and fix it properly. Remove more non-Puppet code left over from the mode this one was based on. Use a more straightforward method of setting up the font-lock keywords and do it the same way for both XEmacs and Emacs since I think they can both handle the current method (and other modes agree).
* Use our own count-matches for Emacs 21 compatibilityRuss Allbery2008-05-121-1/+10
| | | | | | Replace count-matches with a puppet-count-matches function that does the same as the Emacs 22 count-matches. The Emacs 21 count-matches is different and not useful for our purposes.
* Added puppetlast script to ext directoryJames Turnbull2008-04-191-0/+40
|
* Fixing the executables to use the new indirection api.Luke Kanies2008-04-081-1/+1
|
* Additional fix for emacs syntax for ticket #1160James Turnbull2008-04-041-5/+5
|
* Revert "Additional fix to emacs for ticket #1160"James Turnbull2008-04-041-5/+5
| | | | This reverts commit bb65226e54d5e476581118e7c2c5e42275a6b290.
* Additional fix to emacs for ticket #1160James Turnbull2008-04-041-5/+5
|
* Committed patch from #1160James Turnbull2008-04-031-76/+89
|
* Fixed duplicate oid for parentnode and environment in schema - addresses #1170James Turnbull2008-04-011-1/+1
|
* Added check_puppet.rb Nagios check plugin (See #1162)James Turnbull2008-03-271-0/+117
|
* Found all instances of methods where split() is used withoutLuke Kanies2008-03-211-1/+2
| | | | | | | | | | any local variables and added a local variable -- see http://snurl.com/21zf8. My own testing showed that this caused memory growth to level off at a reasonable level. Note that the link above says the problem is only with class methods, but my own testing showed that it's any method that meets these criteria. This is not a functional change, but should hopefully be the last nail in the coffin of #1131.
* * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Clean up the code ↵Karl Fogel2008-03-201-8/+8
| | | | somewhat after commit 738d275f41f3eaf015800021dd2dfe6c42a1ae79, as promised.
* * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Be more ↵Karl Fogel2008-03-201-0/+3
| | | | | | | sophisticated about what we do at the beginning of the buffer, so that the first expression after an block-opening statement that happens to begin at the beginning of the buffer gets indented correctly. This may need some cleanup, but I wanted to get the correct behavior committed first. Reported by: Micah Anderson (Who again supplied the reproduction case.)
* Fix bug mentioned in commit f814e23eab140ad01df4a4a3b187fcbf20da02be:Karl Fogel2008-03-201-2/+2
| | | | | | | | | * puppet/ext/emacs/puppet-mode.el (puppet-indent-line): When iterating backwards, test for beginning-of-buffer first, to avoid an infinite loop. Reported by: Micah Anderson (He also supplied a clear reproduction recipe.)
* * ext/emacs/puppet-mode.el (puppet-comment-line-p, puppet-in-array): New ↵Karl Fogel2008-03-201-29/+88
| | | | | | | | | | | helper functions. (puppet-indent-line): Rewrite to handle three more situations: indent elements in an array, indent single-line blocks, and ignore previous comment content when indenting non-comment lines. Suggested by: Micah Anderson (He also provided the test data.) Notes: Michah points out that this change may have introduced an infinite loop (he can cause Emacs to hang now). Will investigate and fix in a separate change.
* * ext/emacs/puppet-mode.el: Untabify, in preparation for substantive changes.Karl Fogel2008-03-201-61/+61
|
* Adding a filebucket test to puppet-testLuke Kanies2008-03-161-8/+17
|
* Adding a test for local compilingLuke Kanies2008-03-161-4/+13
|
* Using the indirected facts rather than master.getfacts, so no factsync is usedLuke Kanies2008-03-161-2/+4
|
* Partially fixing #1113: LDAP nodes now support environments,Luke Kanies2008-03-061-1/+6
| | | | and the schema has been updated accordingly.
* Significantly refactoring the lexer, including adding Token and TokenListLuke Kanies2008-01-301-2/+2
| | | | | | classes for managing how the tokens work. I also moved they tests to RSpec, but I didn't rewrite all of them.
* Merge commit 'turnbull/0.24.x' into 0.24.xLuke Kanies2008-01-191-0/+5
|\
| * Fixed ticket #1005 - added additional logcheck linesJames Turnbull2008-01-141-0/+5
| |
* | Adding a parse test to puppet-test.Luke Kanies2008-01-181-5/+28
|/
* Fixed ticket #978 - logcheck/puppetJames Turnbull2008-01-011-0/+2
|
* Updating filetype detection for vim, and changingLuke Kanies2007-12-194-9/+4
| | | | the filestructure for vim files. (#900 and #963)
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-112-5/+5
|
* Reorganizing the file structure for indirection terminus types.Luke Kanies2007-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Previously, for example, the configuration terminus that was a subclass of 'code' would have been stored at lib/puppet/indirector/code/configuration and would have had to have been named 'configuration'. Now, the subclass can be named however the author prefers, and it must be stored at lib/puppet/indirector/configuration/<name>.rb, where <name> is the name you've chosen for the terminus type. The name only matters insomuch as it is used to load the file from disk and find the appropriate class when asked. The additional restriction is that the class constant for the terminus type must have its name as the last word, and the indirection must be the second to last word. Thus, in our example, we can choose any class constant that ends with Configuration::Code; given that there's only one Configuration class at this point, it makes the most sense to define the class as Puppet::Node::Configuration::Code. This is somewhat awkward, because of the class's location on disk, but the only other real option is to autogenerate a Puppet::Indirector::Configuration class constant, which is, I think, uglier.
* All tests should now pass again.Luke Kanies2007-10-081-17/+26
| | | | | | | | | | | | | | This is the first real pass towards using caching. The `puppet` executable actually uses the indirection work, instead of handlers and such (and man! is it cleaner). Most of this work was a result of trying to get the client-side story working, with correct yaml caching of configurations, which means this commit also covers converting configurations to yaml, which was a much bigger PITA than it needed to be. I still need to write integration tests, and I also need to cover the server-side story of a normal configuration retrieval.
* Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-221-3/+3
| | | | | | | '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".
* This is basically another intermediate commit. I feel likeLuke Kanies2007-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | 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.
* Removing the completely obsolete passwd2puppet and the obsolete component.rbLuke Kanies2007-09-131-45/+0
|
* Adding a test for railsluke2007-07-311-1/+68
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2731 980ebf18-57e1-0310-9a29-db15c13687c0
* More updates to puppet-testluke2007-06-191-111/+183
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2628 980ebf18-57e1-0310-9a29-db15c13687c0
* Updating puppet-test with clearer options around describe and retrieveluke2007-06-191-13/+23
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2627 980ebf18-57e1-0310-9a29-db15c13687c0
* Refactoring puppet-test -- it now supports specifying a fork level (so you ↵luke2007-06-191-48/+139
| | | | | | can get multiple tests running in parallel from one host), and tests are modeled explicitly, so it will be easier to add new tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2623 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding puppet-test, which is useful for performance testingluke2007-06-181-0/+201
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2601 980ebf18-57e1-0310-9a29-db15c13687c0