summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | (#6786) Fixing a number of failing tests.Pieter van de Bruggen2011-03-2115-30/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial merge of this branch hadn't actually been run against the full suite of specs; a number of specs began failing shortly afterward. Reviewed-By: Daniel Pittman
| * | | | | Merge branch 'tickets/master/6785'Pieter van de Bruggen2011-03-212-5/+5
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| | * | | | (#6785) Rename the --from option to --terminus.Pieter van de Bruggen2011-03-212-5/+5
| |/ / / / | | | | | | | | | | | | | | | Paired-With: Richard Crowley
| * | | | Merge branch 'tickets/master/6786'Pieter van de Bruggen2011-03-212-33/+18
| |\| | |
| | * | | (#6786) Removing the #interface method.Pieter van de Bruggen2011-03-212-33/+18
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since constants are already being defined for each interface, the #interface method does little but provide another way to access the same data. Reviewed-By: Nick Lewis
| * | | Modifying Facts.upload a bitLuke Kanies2011-03-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The functionality is basically the same, but we're no longer using caching, and we log that it happened. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing #16 - nodes default to yamlLuke Kanies2011-03-022-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | We don't have json support for node output yet. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing #13 - showconfig moved to indirectorLuke Kanies2011-03-024-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I renamed it to 'info', too. It only showed indirector-related info, so this makes sense. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding a test for fix to #14Luke Kanies2011-03-022-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | (14) updated interface_base to support multiple command line argumentsDan Bode2011-03-011-1/+2
| | | |
| * | | Pretty-printing json using "jj"Luke Kanies2011-02-271-1/+6
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Attempting to skip loading of duplicate actionsLuke Kanies2011-02-241-0/+6
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing plugin usageLuke Kanies2011-02-243-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I had broken some usages of plugins by incorrectly selecting command-line arguments. The fix was to remove the #main method contained in the IndirectionBase subclass. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding Application options to InterfacesLuke Kanies2011-02-234-16/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows all of the actions to react to the CLI options. I've also removed the unnecessary 'name' variables I was using in various places - they were just the first of the arguments, and they weren't actually always names. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding render and exit_code override supportLuke Kanies2011-02-222-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mostly in response to feature requests from Dan. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing 'puppet interface list'Luke Kanies2011-02-224-43/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added a test to hopefully confirm it won't break again. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding a simple "config" appLuke Kanies2011-02-224-0/+51
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Splitting the Application base classLuke Kanies2011-02-2229-58/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have an indirection_base class along with interface_base. I've also added some basic tests for most of the interfaces. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding a string form to interfacesLuke Kanies2011-02-222-0/+8
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Switching Interfaces to be instancesLuke Kanies2011-02-2227-103/+617
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They were previously classes, which made a lot of things stupider than they needed to be. This will likely involve some porting, but not much. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Renaming 'data_baseclass' to 'interface_base'Luke Kanies2011-02-2213-25/+25
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing indentationLuke Kanies2011-02-211-47/+47
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Updating readme to reflect requirementsLuke Kanies2011-02-211-2/+4
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing Interface listingLuke Kanies2011-02-203-10/+41
| | | | | | | | | | | | | | | | | | | | | | | | It got broke when the Indirector base class was extracted. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | (#3) Base application should catch SYSINTDan Bode2011-02-201-0/+8
| | | | | | | | | | | | | | | | We should exit cleanly rather than throw traces.
| * | | (#2) Should not assume interfaces have indirectorsDan Bode2011-02-2015-92/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial work assumed that all interfaces were just skins on an indirected data type, but some interfaces will be more abstract than that. This commit removes that assumption by extracting all of the indirector work into a new Indirector subclass of Interface and then makes all of the new interfaces a subclass of that rather than of Interface itself.
| * | | Only printing output if there is anyLuke Kanies2011-02-161-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Enabling arbitrary interface namesLuke Kanies2011-02-166-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the app, indirection, and interface names had to match exactly; now they can be arbitrary by just defining an overriding 'indirection_name' class method on the interface. I also renamed the file_bucket_file classes accordingly. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing an error messageLuke Kanies2011-02-161-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Fixing rendering to support arraysLuke Kanies2011-02-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't 100% - it will probably only work for Yaml and JSON - but it's a good start. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Moving 'format' support to the applicationLuke Kanies2011-02-083-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | This allows easier use of the Interfaces in ruby. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Finishing the s/data/interface/ in the applicationLuke Kanies2011-02-081-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding to READMELuke Kanies2011-02-081-2/+103
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Renaming "data" app to "interface"Luke Kanies2011-02-081-0/+0
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Finishing migration from puppet repoLuke Kanies2011-02-085-20/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The whole system seems to work again, as long as you run it against 2.6.next. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Adding license and readme fileLuke Kanies2011-01-302-0/+21
| | | | | | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
| * | | Moving data executables to their own moduleLuke Kanies2011-01-3028-0/+415
| / / | | | | | | | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* | | Merge branch 'maint/next/load-order-bug-with-component' into nextJesse Wolfe2011-04-072-2/+2
|\ \ \ | |_|/ |/| |
| * | Maint: fix a load order problem with type(:component)Jesse Wolfe2011-04-072-2/+2
| |/ | | | | | | | | | | | | | | | | | | Puppet's autoloader has an incompatibility with ruby's native 'require' statement that makes it possible to reach the same code multiple times, which can cause genclass to create multiple classes with the same name. This patch fixes the uses of some puppet types so that they are loaded using the autoloader instead of using 'require'. Paired-With: Jacob Helwig <jacob@puppetlabs.com>
* | Merge branch 'next'Max Martin2011-04-0742-561/+1148
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * next: (23 commits) (maint) Indentation fixes (#6490) Add plugin initialization callback system to core (Maint) Fix uninitialized constant. (5200) -- replace containers with sentinals (#5528) Add REST API for signing, revoking, retrieving, cleaning certs Fix #4339 - Locally save the last report to $lastrunreport Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yaml Fixed #3127 - removed legacy debug code Fixed #3127 - Fixed gem selection regex (6911) Cleanup and renaming of transaction internals (6911) Core change -- replace topsort with frontier ordered by salted SHA1 (6911) Add bookkeeping facade around Transaction#relationship_graph (#5437) Invalidate cached TypeCollection when there was an error parsing (#6937) Adjust formatting of recurse's desc (#6937) Document the recurse parameter of File type. (#6937) Document the recurse parameter of File type. (6911) Cleanup of generate_additional_resources (6911) Refactor to localize eval_generate dependency assumptions (#6893) Document the cron type in the case of specials. (maint) Fix for require order issue ...
| * \ Merge branch '2.6.x' into nextMax Martin2011-04-0715-85/+219
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2.6.x: (maint) Indentation fixes (#6490) Add plugin initialization callback system to core Fix #4339 - Locally save the last report to $lastrunreport Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yaml Fixed #3127 - removed legacy debug code Fixed #3127 - Fixed gem selection regex (#5437) Invalidate cached TypeCollection when there was an error parsing (#6937) Adjust formatting of recurse's desc (#6937) Document the recurse parameter of File type. (#6893) Document the cron type in the case of specials. (#5670) Don't trigger refresh from a failed resource Fixed #6554 - Missing $haveftool if/else conditional in install.rb breaking Ruby 1.9 Conflicts (Manually resolved): lib/puppet/application/agent.rb lib/puppet/application/apply.rb lib/puppet/configurer.rb lib/puppet/resource/type_collection.rb lib/puppet/type/file.rb spec/integration/configurer_spec.rb spec/unit/application/agent_spec.rb spec/unit/application/apply_spec.rb spec/unit/configurer_spec.rb spec/unit/indirector/report/yaml_spec.rb spec/unit/resource/type_collection_spec.rb Paired-with: Nick Lewis
| | * Merge branch '2.6.next' into 2.6.xMax Martin2011-04-0724-74/+314
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2.6.next: Fix #4339 - Locally save the last report to $lastrunreport Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yaml Fixed #3127 - removed legacy debug code Fixed #3127 - Fixed gem selection regex (#5437) Invalidate cached TypeCollection when there was an error parsing (#6937) Adjust formatting of recurse's desc (#6937) Document the recurse parameter of File type. (#6893) Document the cron type in the case of specials. (#5670) Don't trigger refresh from a failed resource Fixed #6554 - Missing $haveftool if/else conditional in install.rb breaking Ruby 1.9
| | | * Merge commit '647a640fcac281e3a8cda05b92b51c44c93f1d19' into 2.6.nextNick Lewis2011-04-071-1/+3
| | | |\
| | | | * (#6893) Document the cron type in the case of specials.Ben Hughes2011-03-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add in a better desc block for "specials" in cron provider, and outline it's limitations. The previous text was purely a placeholder.
| | | * | Merge branch 'tickets/2.6.x/4339' into 2.6.nextJacob Helwig2011-04-0513-23/+215
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tickets/2.6.x/4339: Fix #4339 - Locally save the last report to $lastrunreport Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yaml
| | | | * | Fix #4339 - Locally save the last report to $lastrunreportBrice Figureau2011-04-057-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using the cache terminus system, when --report is on, we are now caching the last report as a yaml file in the $lastrunreport file (which by default is $statedir/last_run_report.yaml). Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| | | | * | Fix #4339 - Save a last run report summary to $statedir/last_run_summary.yamlBrice Figureau2011-04-057-23/+144
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once a configuration run is done, puppetd will save on the node a yaml summary report roughly akin to: --- time: notify: 0.001025 last_run: 1289561427 schedule: 0.00071 config_retrieval: 0.039518 filebucket: 0.000126 resources: changed: 1 total: 8 out_of_sync: 1 events: total: 1 success: 1 changes: total: 1 This is almost an hash version of the current --summarize output, with the notable exception that the time section includes the last run unix timestamp. The whole idea is to be able to monitor locally if a puppetd does its job. For instance this could be used in a nagios check or to send an SNMP trap. The last_run information might help detect staleness, and this summary can also be used for performance monitoring (ie time section). The resource section can also show the number of failed resources. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| | | * | Merge branch 'ticket/2.6.x/6554' of git://github.com/jamtur01/puppet into ↵Jacob Helwig2011-04-041-2/+6
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.6.next * 'ticket/2.6.x/6554' of git://github.com/jamtur01/puppet: Fixed #6554 - Missing $haveftool if/else conditional in install.rb breaking Ruby 1.9
| | | | * | Fixed #6554 - Missing $haveftool if/else conditional in install.rb breaking ↵James Turnbull2011-03-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | Ruby 1.9
| | | * | | Merge branch 'tickets/2.6.x/3127' into 2.6.nextJames Turnbull2011-04-051-1/+0
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tickets/2.6.x/3127: Fixed #3127 - removed legacy debug code