summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)AuthorFilesLines
2008-11-24Fixed #1767 - Minor fix to emacs modeJames Turnbull1-1/+1
2008-09-30Fixed #1603 - Added support for running Puppet inside a Rack applicationJames Turnbull3-0/+132
2008-08-20Updates to ext/puppetlast to support multiple hostsJames Turnbull1-1/+1
2008-08-17Fixed #1394 - Added stored configuration clearing script to /extmh1-0/+87
2008-08-01Specs for yaml indirector .search - I'm still learning!James Turnbull1-27/+0
Updated, I was calling .base myself instead of the actual string
2008-08-01Made puppetlast work on 0.24.5 by using the YAML indirectorAJ Christensen1-5/+7
2008-08-01Revert "Fixing puppetlast to make it work with 0.24.5 / 0.25."James Turnbull1-17/+22
This reverts commit 971af69b7388cf5155bb124246f2a697578cc6e9.
2008-07-26Fixing puppetlast to make it work with 0.24.5 / 0.25.AJ Christensen1-22/+17
Tidied up some of the code a little
2008-07-21Fixing puppet_module -- it needed the same node interface change.Luke Kanies1-1/+1
I wonder if anyone's actually using this... Signed-off-by: Luke Kanies <luke@madstop.com>
2008-07-15Further moves from the examples directory and ext directoryJames Turnbull10-216/+0
2008-07-10Moved debian to conf and updated examples directoryJames Turnbull10-0/+283
2008-07-03Adding changes to config print that were missed in fix for 1183Andrew Shafer1-2/+3
2008-05-30Further Emacs puppet-mode fixesRuss Allbery1-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.
2008-05-15Added the ability to add arbitrary attributes to ldap.Gunnar Wrobel1-1/+6
This fixes #1179.
2008-05-13adding more autotest docsLuke Kanies1-0/+7
2008-05-13Adding autotest info to the ext/ directory.Luke Kanies3-0/+60
Adding the autotest config, instructions, and a Rakefile that can install it.
2008-05-12Fix Emacs mode indentation of multiple nested blocksRuss Allbery1-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.
2008-05-12Enhancements to syntax highlighting and indentation for EmacsRuss Allbery1-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).
2008-05-12Use our own count-matches for Emacs 21 compatibilityRuss Allbery1-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.
2008-04-19Added puppetlast script to ext directoryJames Turnbull1-0/+40
2008-04-08Fixing the executables to use the new indirection api.Luke Kanies1-1/+1
2008-04-04Additional fix for emacs syntax for ticket #1160James Turnbull1-5/+5
2008-04-04Revert "Additional fix to emacs for ticket #1160"James Turnbull1-5/+5
This reverts commit bb65226e54d5e476581118e7c2c5e42275a6b290.
2008-04-04Additional fix to emacs for ticket #1160James Turnbull1-5/+5
2008-04-03Committed patch from #1160James Turnbull1-76/+89
2008-04-01Fixed duplicate oid for parentnode and environment in schema - addresses #1170James Turnbull1-1/+1
2008-03-27Added check_puppet.rb Nagios check plugin (See #1162)James Turnbull1-0/+117
2008-03-21Found all instances of methods where split() is used withoutLuke Kanies1-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.
2008-03-20* puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Clean up the code ↵Karl Fogel1-8/+8
somewhat after commit 738d275f41f3eaf015800021dd2dfe6c42a1ae79, as promised.
2008-03-20* puppet/ext/emacs/puppet-mode.el (puppet-indent-line): Be more ↵Karl Fogel1-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.)
2008-03-20Fix bug mentioned in commit f814e23eab140ad01df4a4a3b187fcbf20da02be:Karl Fogel1-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.)
2008-03-20* ext/emacs/puppet-mode.el (puppet-comment-line-p, puppet-in-array): New ↵Karl Fogel1-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.
2008-03-20* ext/emacs/puppet-mode.el: Untabify, in preparation for substantive changes.Karl Fogel1-61/+61
2008-03-16Adding a filebucket test to puppet-testLuke Kanies1-8/+17
2008-03-16Adding a test for local compilingLuke Kanies1-4/+13
2008-03-16Using the indirected facts rather than master.getfacts, so no factsync is usedLuke Kanies1-2/+4
2008-03-06Partially fixing #1113: LDAP nodes now support environments,Luke Kanies1-1/+6
and the schema has been updated accordingly.
2008-01-30Significantly refactoring the lexer, including adding Token and TokenListLuke Kanies1-2/+2
classes for managing how the tokens work. I also moved they tests to RSpec, but I didn't rewrite all of them.
2008-01-19Merge commit 'turnbull/0.24.x' into 0.24.xLuke Kanies1-0/+5
2008-01-18Adding a parse test to puppet-test.Luke Kanies1-5/+28
2008-01-14Fixed ticket #1005 - added additional logcheck linesJames Turnbull1-0/+5
2008-01-01Fixed ticket #978 - logcheck/puppetJames Turnbull1-0/+2
2007-12-19Updating filetype detection for vim, and changingLuke Kanies4-9/+4
the filestructure for vim files. (#900 and #963)
2007-12-11Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2-5/+5
2007-10-15Reorganizing the file structure for indirection terminus types.Luke Kanies1-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.
2007-10-08All tests should now pass again.Luke Kanies1-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.
2007-09-22Renaming the 'Puppet::Util::Config' class toLuke Kanies1-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".
2007-09-17This is basically another intermediate commit. I feel likeLuke Kanies1-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.
2007-09-13Removing the completely obsolete passwd2puppet and the obsolete component.rbLuke Kanies1-45/+0
2007-07-31Adding a test for railsluke1-1/+68
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2731 980ebf18-57e1-0310-9a29-db15c13687c0