Re: [Puppet-dev] Puppet bash command line completion

2012-01-17 Thread Matt Robinson
On Fri, Jan 13, 2012 at 7:10 PM, Todd Zullinger wrote: > Matt Robinson wrote: >> I've wanted command line completion for some time, so I've whipped >> something up that gets it going: >> >> https://github.com/mmrobins/puppet-completion >> >> I&#

[Puppet-dev] Puppet bash command line completion

2012-01-10 Thread Matt Robinson
I've wanted command line completion for some time, so I've whipped something up that gets it going: https://github.com/mmrobins/puppet-completion I've been meaning to get it to a state to merge into Puppet core, but haven't had the time yet, so I've made it a standalone repo so that people can us

Re: [Puppet-dev] (puppetlabs/puppet) New pull request: Maint/2.7.x/provider parameter description

2011-09-26 Thread Matt Robinson
the type spec to > ensure > this documentation is being generated correctly. > > Paired-with: Matt Robinson m...@puppetlabs.com > > Thanks! > The Pull Request Bot > > Diff follows: > > diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb > index d

[Puppet-dev] Re: [Puppet Users] Release Cycle for September

2011-09-07 Thread Matt Robinson
On Wed, Sep 7, 2011 at 6:15 PM, Michael Stahnke wrote: > 3.  Dashboard has had no commits since 1.2.0, so no RC this month. Dashboard does have commits since 1.2.0 $ git log --oneline --no-merges 1.2.0.. 6b10a5e maint: Move duplicated code to a helper method 02ca4ff maint: Fix node_ids method by

[Puppet-dev] [PATCH/puppet-dashboard 2/2] (#8878) Make code more DRY

2011-08-25 Thread Matt Robinson
Duplicate methods are moved of a module, and very similar methods are generated programatically, which is a lot fewer lines, but slightly less readable. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/master/8878_add_nodes_from_group_page app/models/node.rb

[Puppet-dev] [PATCH/puppet-dashboard 1/2] (#8878) Add ability to add nodes from the group edit/create pages

2011-08-25 Thread Matt Robinson
It's really unusable to have to go to each node's edit page to add a list of nodes to a group. Now you can just add the nodes on the group's create or edit page. Signed-off-by: Matt Robinson --- Local-branch: ticket/master/8878_add_nodes_from_group_page

[Puppet-dev] [PATCH/puppet-dashboard 2/2] (#7934) Give a better error message when filebucket contents don't exist

2011-08-18 Thread Matt Robinson
w to enable the file bucket. Also fixed some other bugs such as rendering text if you passed an invalid md5 and improved test robustness. Based on code from Jacob Helwig Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc/7934-filebucket_links app/controllers

[Puppet-dev] [PATCH/puppet-dashboard 1/2] (#7934) Don't link md5s for new content

2011-08-18 Thread Matt Robinson
it from working with the agent (#5362), or if the inspect runs don't have --archive_files set (which defaults to false). The baseline plugin will update its usage of popup_md5s as part of ticket #9105. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc

[Puppet-dev] [PATCH/puppet 1/1] maint: Fix case sensitive require

2011-08-09 Thread Matt Robinson
Mac's filesystems aren't case sensitive, so developing this change didn't catch the issue with requiring filenames that had been uppercased. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-fix_inspect_help lib/puppet/application.rb

Re: [Puppet-dev] [PATCH/puppet 1/4] Updated CHANGELOG for 2.7.3rc1

2011-08-09 Thread Matt Robinson
Ignore. This patch wasn't one I meant to mail out, it was already in 2.7.x. On Tue, Aug 9, 2011 at 11:36 AM, Matt Robinson wrote: > From: Michael Stahnke > > > Signed-off-by: Matt Robinson > --- > Local-branch: ticket/2.7.x/maint-fix_inspect_h

Re: [Puppet-dev] [PATCH/puppet 2/4] Increment lib/puppet.rb VERSION string

2011-08-09 Thread Matt Robinson
Ignore. This patch wasn't one I meant to mail out, it was already in 2.7.x. On Tue, Aug 9, 2011 at 11:36 AM, Matt Robinson wrote: > From: Michael Stahnke > > Signed-off-by: Michael Stahnke > Signed-off-by: Matt Robinson > --- > Local-branch: ticket/2.7.x/maint-

[Puppet-dev] [PATCH/puppet 2/4] Increment lib/puppet.rb VERSION string

2011-08-09 Thread Matt Robinson
From: Michael Stahnke Signed-off-by: Michael Stahnke Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-fix_inspect_help lib/puppet.rb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/puppet.rb b/lib/puppet.rb index 765c95c..5ccdd41 100644 --- a/lib

[Puppet-dev] [PATCH/puppet 4/4] maint: Add inspect app options to help

2011-08-09 Thread Matt Robinson
Inspect wasn't documenting the only two options it has, archive_files and archive_file_server. Now it does. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-fix_inspect_help lib/puppet/application/inspect.rb | 10 +- 1 files chang

[Puppet-dev] [PATCH/puppet 3/4] maint: Fix inspect help

2011-08-09 Thread Matt Robinson
it's not found. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-fix_inspect_help lib/puppet/application.rb |9 - spec/unit/application_spec.rb |4 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/pupp

[Puppet-dev] [PATCH/puppet 1/4] Updated CHANGELOG for 2.7.3rc1

2011-08-09 Thread Matt Robinson
From: Michael Stahnke Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-fix_inspect_help CHANGELOG | 66 +++- 1 files changed, 60 insertions(+), 6 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index cfdcf49..0464108

[Puppet-dev] [PATCH/puppet-dashboard 1/2] (#8488) Make columns consistent between report views

2011-08-05 Thread Matt Robinson
: Josh Lifton Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc/8488-reports_column_consistency app/views/nodes/_reports.html.haml | 26 ++--- app/views/nodes/_reports_table_tfoot.html.haml |5 +++ app/views/reports/_reports_table.html.haml | 45

[Puppet-dev] [PATCH/puppet-dashboard 2/2] (#8488) Move tfoot before tbody in reports table

2011-08-05 Thread Matt Robinson
Per the W3: must appear before within a table, so that a browser can render the foot before receiving all the rows of data. Reviewed-by: Josh Lifton Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc/8488-reports_column_consistency app/views/nodes/_reports_table_tfoot.html.haml

[Puppet-dev] [PATCH/puppet-dashboard 1/1] (#8691) Fix the order of changed and unchanged resources on the report summary

2011-07-29 Thread Matt Robinson
Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc/8691 app/views/reports/index.html.haml |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/views/reports/index.html.haml b/app/views/reports/index.html.haml index 545d4ca..f6399f3 100644 --- a/app/views

[Puppet-dev] [PATCH/puppet 1/1] (#8704) Give better errors for invalid fileserver.conf

2011-07-29 Thread Matt Robinson
ror saying no mount point was specified. Reviewed-by: Josh Cooper Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/8704-fileserverconf_parse_errors lib/puppet/network/handler/fileserver.rb |3 ++ spec/unit/network/handler/fileserver_spec.rb | 32 +

Re: [Puppet-dev] Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.2rc3 available

2011-07-28 Thread Matt Robinson
e cutting > a new rc is 8691. > Dan > > On Thu, Jul 28, 2011 at 4:38 PM, Matt Robinson wrote: >> >> A race condition issue has been found with DelayedJob report >> processing.  The fix has been committed to the rc branch, so another

[Puppet-dev] Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.2rc3 available

2011-07-28 Thread Matt Robinson
A race condition issue has been found with DelayedJob report processing. The fix has been committed to the rc branch, so another RC will be necessary. Ticket #8686 commit:e86526f224058d8d049b2f8b93d5fdca57332ad8 On Fri, Jul 22, 2011 at 4:18 PM, Michael Stahnke wrote: > This a feature release ca

[Puppet-dev] [PATCH/puppet-dashboard 2/2] Provide clearer error message when report host, kind and time are not unique

2011-07-28 Thread Matt Robinson
The previous error was just: Host has already been taken The problem is that host by itself isn't unique, but the error message would lead you to believe it is. Instead, mention that the host, kind, time combo needs to be unique. Paired-with: Jacob Helwig Signed-off-by: Matt Rob

[Puppet-dev] [PATCH/puppet-dashboard 1/2] (#8686) Handle concurrent DelayedJob workers importing for same node

2011-07-28 Thread Matt Robinson
iewed-by: Jacob Helwig Signed-off-by: Matt Robinson --- Local-branch: ticket/1.2rc/8686 app/models/report.rb |8 ++- ...28195829_add_node_host_uniqueness_constraint.rb | 15 ++ spec/models/report_spec.rb | 54

[Puppet-dev] [PATCH/puppet 1/1] (#4549) Fix templates to be able to call all functions

2011-07-26 Thread Matt Robinson
now these workarounds like needing to load all templates, the scope object now uses method_missing to find the function if available. Paired-with: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/4549-functions_in_templates lib/puppet/parser/scope.rb | 10 ++ spec

[Puppet-dev] [PATCH/puppet 1/1] maint: Fix cert app to print help and exit if no subcommand

2011-07-25 Thread Matt Robinson
/certificate_authority/interface.rb:85:in `method=' Invalid method to apply Reviewed-by: Pieter van de Bruggen Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/maint-show_help_for_cert_without_subcommand lib/puppet/application/cert.rb |3 ++- spec/unit/applic

Re: [Puppet-dev] [PATCH/puppet 3/3] (#8418) Fix inspect app to have the correct run_mode

2011-07-25 Thread Matt Robinson
On Mon, Jul 25, 2011 at 1:10 PM, Daniel Pittman wrote: > On Mon, Jul 25, 2011 at 12:57, Matt Robinson wrote: >> Requiring puppet before the run_mode has been set by the application >> causes the default run_mode of 'user' to be set instead of what the >> applic

[Puppet-dev] [PATCH/puppet 1/3] maint: Add debug logging when the master receives a report

2011-07-25 Thread Matt Robinson
It's always bothered me that when running puppet inspect (or any application that produces a report really) the master gives no indication that anything happened when it processes the report. Reviewed-by: Max Martin Signed-off-by: Matt Robinson --- lib/puppet/indirector/report/process

[Puppet-dev] [PATCH/puppet 2/3] maint: Adding logging to include environment when source fails

2011-07-25 Thread Matt Robinson
Reviewed-by: Max Martin Signed-off-by: Matt Robinson --- lib/puppet/type/file/source.rb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/puppet/type/file/source.rb b/lib/puppet/type/file/source.rb index 6ebec51..2fb65bb 100755 --- a/lib/puppet/type/file/source.rb

[Puppet-dev] [PATCH/puppet 3/3] (#8418) Fix inspect app to have the correct run_mode

2011-07-25 Thread Matt Robinson
ata from a fileserver. Reviewed-by: Max Martin Signed-off-by: Matt Robinson --- lib/puppet/application/inspect.rb |7 +-- spec/unit/application/inspect_spec.rb |5 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/puppet/application/inspect.rb b/lib/puppet/a

Re: [Puppet-dev] Use puppet to rum mysql on client and import database

2011-07-25 Thread Matt Robinson
This is definitely possible. You can manage services like mysql with puppet: http://docs.puppetlabs.com/references/stable/type.html#service, and you could use a puppet exec resource to to import: http://docs.puppetlabs.com/references/stable/type.html#exec. You may also want to check for modules t

Re: [Puppet-dev] [PATCH/puppet 1/1] (#8401) Document that --detailed-exitcodes is a bitmask

2011-07-15 Thread Matt Robinson
Reviewed in person with NickF and he'll merge it to 2.7.x. +1 On Fri, Jul 15, 2011 at 10:54 AM, nfagerlund wrote: > The agent/apply/device man pages mentioned the 2 and 4 exit codes, but didn't > mention that they can combine to make 6 if there are both changes and > failures. > This commit add

[Puppet-dev] [PATCH/puppet 1/1] (#7144) Update Settings#writesub to convert mode to Fixnum

2011-07-14 Thread Matt Robinson
From: Max Martin Settings#writesub was not checking the type of the mode value passed in from the defaults, causing it to pass a string for mode to File.open, leading to failures. This commit resolves that issue. Paired-with: Matt Robinson Signed-off-by: Matt Robinson --- lib/puppet/util.rb

[Puppet-dev] [PATCH/puppet 1/1] (#4142) Fix module check not to fail when empty metadata.json

2011-07-12 Thread Matt Robinson
run, since previously the tests depended on the a json feature, which we didn't have. We do, however, have a pson feature. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/4142-metadata_json lib/puppet/module.rb |5 +++- spec/unit/module

[Puppet-dev] [PATCH/puppet-dashboard 1/1] (#8251 and #8042) Don't use our own logger

2011-07-06 Thread Matt Robinson
ncludes a brief mention in the README that the user should setup log rotation, and ticket #8264 was created to setup log rotation in the packaged version of Dashboard. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/master/8251-logger_verbosity README.markdo

[Puppet-dev] [PATCH/puppet-dashboard 1/1] (#8090) Update .gitignore to ignore plugin files

2011-06-24 Thread Matt Robinson
aired-with: Josh Cooper Signed-off-by: Matt Robinson --- Local-branch: ticket/master/8090-git_ignore_plugin_files .gitignore |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/.gitignore b/.gitignore index 24688df..cc8a07c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6

Re: [Puppet-dev] Re: RSpec upgrade and Rake file in the spec directory

2011-06-24 Thread Matt Robinson
Pratik, I'm not sure I know what problem you're referring to in the context of this really old thread. Could you specify what problem you're trying to solve? Matt On Wed, Jun 22, 2011 at 9:55 AM, Pratik Khadloya wrote: > I too see the same problem. Were you able to find the solution? > > -- > Yo

[Puppet-dev] [PATCH/puppet-dashboard 1/1] (#7958) Allow plugins to add top level navigation

2011-06-16 Thread Matt Robinson
Plugins should be able to add navigation links so you can get to the views they define. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/master/7958-plugin_navigation_links app/views/shared/_global_nav.html.haml |2 ++ 1 files changed, 2 insertions(+), 0

[Puppet-dev] [PATCH/puppet-dashboard 1/1] maint: Remove db/seeds.rb so that db:reset task works

2011-06-14 Thread Matt Robinson
: Matt Robinson --- Local-branch: ticket/master/maint-fix_db_seed db/seeds.rb | 106 --- 1 files changed, 0 insertions(+), 106 deletions(-) delete mode 100644 db/seeds.rb diff --git a/db/seeds.rb b/db/seeds.rb deleted file mode 100644

[Puppet-dev] (#7913) puppet-dashboard: Upgrade vendored version of Rails from 2.3.5 to 2.3.12 - Ruby version support updated

2011-06-14 Thread Matt Robinson
A patch series that upgrades the version of Rails that Puppet Dashboard vendors from 2.3.5 to 2.3.12 was just merged in to Dashboard's master branch. I wasn't able to easily generate a patch to send out over email since some code in Rails is over 998 characters, and git format-patch doesn't handle

[Puppet-dev] [PATCH/puppet 1/1] (#7557) Remove Faces Application

2011-05-26 Thread Matt Robinson
It used to be that to list the faces available and their actions and options, you had this legacy based face application. This functionality has all been moved into the puppet help face application. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7rc/7557

[Puppet-dev] [PATCH/puppet 4/4] maint: Fix order dependent spec failure for face indirection

2011-05-26 Thread Matt Robinson
ed no Exception, got # in lib/puppet/face/indirector/face.rb when listing the indirections for the help text. I toyed with creating a real indirection for the test, but that was harder than expected. Paired-with: Max Martin Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7rc/

[Puppet-dev] [PATCH/puppet 2/4] maint: Dedup the loadpath so we don't have to walk it multiple times

2011-05-26 Thread Matt Robinson
this is a safe fix to prevent them from having autoload slowness. Paired-with: Max Martin Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7rc/maint-faces_docs_spec_fixes lib/puppet/util/autoload.rb |2 +- spec/unit/util/autoload_spec.rb |4 ++-- 2 files changed, 3 i

[Puppet-dev] [PATCH/puppet 1/4] Maint: Fix ellipses for short descriptions

2011-05-26 Thread Matt Robinson
Robinson Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7rc/maint-faces_docs_spec_fixes lib/puppet/interface/documentation.rb|4 +++- spec/shared_behaviours/documentation_on_faces.rb | 11 +-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/puppet

[Puppet-dev] Faces Documentation Spec Failure Fixes

2011-05-26 Thread Matt Robinson
There were a few test failures introduced by the recent documentation branch merge to 2.7.x. Most of these were hard to catch on a dev box because they only failed when active record wasn't installed or in an order dependent fashion. Jenkins got them though. This patch series fixes those test

[Puppet-dev] [PATCH/puppet 3/4] (#7690) Don't blow up when listing terminuses available for faces

2011-05-26 Thread Matt Robinson
ow we just list the terminuses available in the load path without trying to load them. The terminus will still raise an error if you try to use it without its dependencies being met. Paired-with: Max Martin Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7rc/maint-faces_docs_spec_fixes

[Puppet-dev] [PATCH/facter 1/1] (#7507) Fix 1.9.2 test failure

2011-05-20 Thread Matt Robinson
ly convert when you call enumerable methods on strings. Paired-with: Josh Cooper Signed-off-by: Matt Robinson --- Local-branch: ticket/next/7507-ruby19_fix spec/unit/physicalprocessorcount_spec.rb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[Puppet-dev] [PATCH/puppet 1/1] maint: move trap call to Signal so we can stub it for specs

2011-05-19 Thread Matt Robinson
Also removed some monkey patching on Signal that would have theoretically done this without having to explicitly call trap on Signal in order to stub it, but it's not working. This allows us to ctrl+c (send SIGINT) in the middle of a spec run. Paired-with: Josh Cooper Signed-off-by:

[Puppet-dev] [PATCH/puppet-dashboard 1/1] maint: Have different production and development databases in the example

2011-05-18 Thread Matt Robinson
is just changes them to be different in the example file so that it's easier to get started with sane defaults. Reviewed-by: Josh Cooper Signed-off-by: Matt Robinson --- Local-branch: ticket/next/maint-better_database_default_names config/database.yml.example |4 ++-- 1 files changed

[Puppet-dev] [PATCH/puppet 2/2] (#7507) Add ability to filter Ruby 1.9 spec failures

2011-05-17 Thread Matt Robinson
, and Jenkins will give us email notification if it doesn't or if we break something that was already working. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/7507-filter_19_failures spec/integration/application/doc_spec.rb |2 +-

[Puppet-dev] [PATCH/puppet 1/2] (#7507) Fix when_invoked action specs in Ruby 1.9

2011-05-17 Thread Matt Robinson
Ruby 1.9 is strict about argument arity for methods that are metaprogrammatically defined. A ton of specs that were setting up when_invoked didn't pass options even though they should have been. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x

[Puppet-dev] [PATCH/puppet 4/4] (#7291) Fix issues with instance_methods in Ruby 1.9

2011-05-16 Thread Matt Robinson
esses all the places ack turned up the code doing this include? check instead of directly calling method_defined?. Thanks to Alex Sharp ajsh...@gmail.com for pointing out the Ruby 1.9 problems and working toward a solution. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: t

[Puppet-dev] [PATCH/puppet 1/1] (#7468) Stub spec that tries to connect to pypi.python.org

2011-05-16 Thread Matt Robinson
I noticed a test failure when I ran the specs without an internet connection. Specs should never need an internet connection to pass. Reviewed-by: Max Martin Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/7468-stub_xmlrpc_internet_call spec/unit/provider/package/pip_spec.rb

[Puppet-dev] [PATCH/puppet 1/4] (#7291) The 'script' version of actions needs options argument

2011-05-16 Thread Matt Robinson
for removal as far as I'm concerned, but apparently Luke wants it in there. Reviewed-by: Pieter van de Bruggen Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/7291-ruby19-fixes spec/lib/puppet/face/huzzah.rb |2 +- spec/lib/puppet/face/version_matching.rb |2 +-

[Puppet-dev] [PATCH/puppet 2/4] (#7291) Fix Ruby 1.9 face failures

2011-05-16 Thread Matt Robinson
instead of the typical ASCII 32 Reviewed-by: Pieter van de Bruggen Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/7291-ruby19-fixes lib/puppet/face/certificate.rb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/puppet/face/certificate.rb b/lib/puppet/face

[Puppet-dev] [PATCH/puppet 3/4] (#7291) Fixed ascii problem with Ruby 1.9.2

2011-05-16 Thread Matt Robinson
ibyte char (US-ASCII) Rather than declare the encoding to allow the French word, I've translated it (after having to look it up myself). Reviewed-by: Pieter van de Bruggen Signed-off-by: Matt Robinson --- Local-branch: ticket/2.7.x/7291-ruby19-fixes lib/puppet/face/resource.rb |2 +

Re: [Puppet-dev] [PATCH/puppet 1/1] (#7291) Monkeypatch Symbol with #sub method for ruby 1.9

2011-05-16 Thread Matt Robinson
This initially seemed like a good idea to me, but after playing with it there's some issues. The real problem isn't whether there's a sub method on Symbol, but that instance_methods used to return Strings in Ruby 1.8.7 and now returns Symbols in 1.9. So by monkey patching symbols to convert to a

[Puppet-dev] Should fail early when faces have syntax errors

2011-05-16 Thread Matt Robinson
Contrary to the current code and ticket #7314 I think syntax errors in Faces should raise errors immediately instead of just warning in the log. I could be convinced otherwise, but the discussion with the original coder of the current behavior and the aforementioned ticket haven't done so. Genera

Re: [Puppet-dev] [PATCH/puppet-dashboard 1/1] (#5126) Support HTTP basic auth in bin/external_node

2011-05-13 Thread Matt Robinson
Cool, glad to see this getting in. I was about to review it to say it looked good since I had worked on it with you a month ago, but I see it's already been merged with Jacob's review. On Thu, May 12, 2011 at 12:31 PM, nfagerlund wrote: > Although URLs with usernames and passwords were valid in

Re: [Puppet-dev] [PATCH] Revert "(#7220) Add the ability to "inherit" options."

2011-05-12 Thread Matt Robinson
Even if the discussion had been on the list, we should have a better commit message explaining why a revert is being done, and there still ought to be a reviewer. http://projects.puppetlabs.com/projects/puppet/wiki/Development_Lifecycle#Commit+Messages On Thu, May 12, 2011 at 4:07 PM, Daniel Pittm

Re: [Puppet-dev] [PATCH/puppet 1/1] (#7137) Get rid of spurious info messages in useradd

2011-04-25 Thread Matt Robinson
s due to the ia_load_module parameter requiring manages_aix_lam > > and additionally having a defaultto value of "compat." > > > > Paired-with: Matt Robinson > > Signed-off-by: Max Martin > > --- > > Local-branch: ticket/2.7.x/7137-spurious-warnin

Re: [Puppet-dev] [PATCH/puppet 1/5] Rewrite freebsd package provider

2011-04-25 Thread Matt Robinson
I realized I forgot to include the ticket number in my last email about including ticket numbers. I believe this patch series was for #4996. On Mon, Apr 25, 2011 at 11:45 AM, Matt Robinson wrote: > Thanks for mailing that Russell, it's easier for us to keep track of what > we st

Re: [Puppet-dev] [PATCH/puppet 1/5] Rewrite freebsd package provider

2011-04-25 Thread Matt Robinson
Thanks for mailing that Russell, it's easier for us to keep track of what we still need to review if it gets sent to the list since we've been keeping track of patches in patchwork: https://patchwork.puppetlabs.com/project/puppet/list/ That said, it's also really helpful if your commit messages in

Re: [Puppet-dev] dashboard inventory service error

2011-04-25 Thread Matt Robinson
Hey Russel, I'm cleaning out old email and see nobody ever responded to this one, sorry about that. I think this issue has since been fixed in Dashboard v1.1.0 http://projects.puppetlabs.com/issues/6835 http://projects.puppetlabs.com/issues/6791 If you still see this problem with Dashboard pleas

Re: [Puppet-dev] Forced update of 2.7.x branch.

2011-04-20 Thread Matt Robinson
On Wed, Apr 20, 2011 at 9:00 AM, Jacob Helwig wrote: > There was a topic branch that was accidentally merged into the 2.7.x > branch. Since there wasn't anything else done since this, we're just > rolling 2.7.x back to exclude the merge commit, and the change it > brought in. > > If you're worki

Re: [Puppet-dev] [PATCH/puppet 3/3] (#7108) Update help/man text for puppet kick

2011-04-19 Thread Matt Robinson
So based on this doc change I assume it's been verified that we don't need the namespaceauth.conf file anymore? If that's the case, then ticket #4388 can be moved from "needs decision" to accepted, right? On Mon, Apr 18, 2011 at 4:54 PM, nfagerlund wrote: > Puppet kick's help referred only to th

[Puppet-dev] Re: [Puppet Users] Re: allow_duplicate_certs = true not working?

2011-04-14 Thread Matt Robinson
Jake The behavior in 2.7 when running the master with --allow_duplicate_certs set is the same as in 2.6.x in that you can manually (using something like curl or the new 'puppet certificate' face) generate multiple certs with same CN name, but the agent errors the same way regardless of the puppet v

[Puppet-dev] ANNOUNCE: Puppet Dashboard v1.1.1rc1

2011-04-13 Thread Matt Robinson
This release addresses some issues issues with Dashboard v1.1.0 #6532 - There is a rake task for generating random sample reports for testing. rake reports:samples:generate CHANGELOG v1.1.1rc1 == f1b2af4 (#7060) Use absolute paths for cert/private key 1a3e607 maint: Document the `rake repo

[Puppet-dev] ANNOUNCE: Puppet 2.6.8rc1 available!

2011-04-13 Thread Matt Robinson
This release addresses issues with the Puppet 2.6.x series. Bug #4884: Shell exec provider that executes code as a raw shell script Bug #5670: Failed resources don't improperly trigger a refresh Feature #2331: New macports provider You can find the full release notes for Puppet at: https

[Puppet-dev] [PATCH/puppet 3/3] (#6830) Fix sha1 to digest/sha1 require issue for Ruby 1.9

2011-04-13 Thread Matt Robinson
Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-more_ruby19_fixes lib/puppet/parser/functions/sha1.rb |2 +- lib/puppet/transaction.rb |8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/puppet/parser

[Puppet-dev] [PATCH/puppet 1/3] (#6830) Fix string method sub call on a symbol for Ruby 1.9

2011-04-13 Thread Matt Robinson
Ruby 1.9 is less forgiving about treating symbols like strings. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-more_ruby19_fixes lib/puppet/interface/option_builder.rb |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib

[Puppet-dev] [PATCH/puppet 2/3] (#6830) Fix UTF-8 encoding issue for Ruby 1.9

2011-04-13 Thread Matt Robinson
If you're going to use special characters in a file and use Ruby 1.9 you need to specify the character encoding at the top of the file. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-more_ruby19_fixes .../things_that_declare_optio

Re: [Puppet-dev] [PATCH/puppet 1/1] (#6117) Add POST support to indirector requests

2011-04-13 Thread Matt Robinson
With this change Puppet can do simple master / client interactions in Ruby 1.9 (after I put in a few patches to fix minor incompatibilities - coming soon). We're getting close to Ruby 1.9 support. On Tue, Apr 12, 2011 at 5:18 PM, Nick Lewis wrote: > POST with a singular indirection is turned int

Re: [Puppet-dev] [PATCH/puppet 1/1] (#3360) Add an allow_duplicate_certs option

2011-04-12 Thread Matt Robinson
On Tue, Apr 12, 2011 at 11:03 AM, Brice Figureau wrote: > Hi, > > On 12/04/11 19:50, Nick Lewis wrote: >> If this option is true, a certificate request with the same CN as an existing >> certificate will override the existing certificate when signed. With the >> option >> false, the new certifica

[Puppet-dev] Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.1.0rc3

2011-04-11 Thread Matt Robinson
Bendler wrote: > Hi Matt, > > 2011/4/8 Matt Robinson >> >> [...] >> We definitely appreciate any help testing RC's and releases, so I look >> forward to your feedback. >> [...] > > Ok, here it is (CentOS 5.6 system). I've changed: >

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed #6818 - Changed named_scope to scope to remove Rails 3 deprecation

2011-04-11 Thread Matt Robinson
On Rails < 3 this patch results in: NameError: undefined method `scope' for class `Puppet::Rails::InventoryNode' I've got a patch coming that works (should be mailed out by now), and passes tests (which it would be really good to run before emailing out patches http://projects.puppetlabs.com/pro

[Puppet-dev] [PATCH/puppet 1/1] (#6818) Stop from getting Rails 3 named_scope deprecation warning

2011-04-11 Thread Matt Robinson
is Signed-off-by: Matt Robinson --- lib/puppet/rails/inventory_node.rb |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/puppet/rails/inventory_node.rb b/lib/puppet/rails/inventory_node.rb index 52f8621..da7e610 100644 --- a/lib/puppet/rails/inventory_node.rb +++ b/

[Puppet-dev] [PATCH/puppet-dashboard 1/1] maint: Document the `rake reports:schematize` upgrade process

2011-04-11 Thread Matt Robinson
We mentioned in the release notes how to upgrade your reports, but didn't document it in the README. This led to some confusion when people upgraded and their reports went missing. Reviewed-by: Nick Lewis Signed-off-by: Matt Robinson --- Local-branch: ticket/next/

[Puppet-dev] [PATCH/puppet 1/1] maint: Add Array combinations method

2011-04-08 Thread Matt Robinson
then if you're using older Rubies you're probably not expecting much for performance anyway. Reviewed-by: Daniel Pittman Signed-off-by: Matt Robinson --- Local-branch: ticket/next/maint-backport_array_combination lib/puppet/util/monkey_patches.rb | 14 ++

[Puppet-dev] Re: [Puppet Users] ANNOUNCE: Puppet Dashboard 1.1.0rc3

2011-04-07 Thread Matt Robinson
Hi Thomas, sorry for the slow reply on this and lack of packages for testing. We messed up and forgot to put packages out with Dashboard for the RC or the release. This should be fixed now for the release, and we've updated our RC checklist to make testing packages for the next time. We definite

Re: [Puppet-dev] Re: [PATCH/puppet 1/1] (#5528) Add REST API for signing, revoking, retrieving, cleaning certs

2011-04-05 Thread Matt Robinson
The current code only returns PSON correctly. I'm putting in a ticket today for fixing problems with YAML and other supported formats. On Tue, Apr 5, 2011 at 12:11 PM, Corey Osman wrote: > Horray!  I am excited to test out the list of signed certificates. > What serialization format would the li

Re: [Puppet-dev] [PATCH/facter 1/1] Fixed #6974 - Moved to Apache 2.0 license

2011-04-05 Thread Matt Robinson
It would be great if there was some WHY explanation in the commit message. On Tue, Apr 5, 2011 at 10:42 AM, James Turnbull wrote: > > Signed-off-by: James Turnbull > --- > Local-branch: tickets/master/6974 >  COPYING                   |  339 > - >  LI

Re: [Puppet-dev] ANNOUNCE: Puppet Dashbard 1.1.0 Final!

2011-04-04 Thread Matt Robinson
On Mon, Apr 4, 2011 at 1:39 PM, Patrick wrote: > > On Apr 4, 2011, at 11:48 AM, Jacob Helwig wrote: > >> 1.  Reports will need to be converted to a new schematized format when >>  upgrading (#5459).  Rather than just storing reports as serialized >>  YAML in the database as is currently done in v1

[Puppet-dev] [PATCH/puppet 1/8] (#6830) Fix case where instance_variables returns symbols in Ruby 1.9

2011-03-29 Thread Matt Robinson
class Foo def initialize @a = 2 @b = "two" end end p Foo.new.instance_variables In Ruby 1.8 this prints ["@a", "@b"] In Ruby 1.9 this prints [:@a, :@b] Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket

[Puppet-dev] [PATCH/puppet 8/8] (#6830) Fix tests that depended on special inherited behavior

2011-03-29 Thread Matt Robinson
# inherited from Bar In Ruby 1.8 the to_s override used to be in effect so printed: Bar inherited from Foo some other class inherited from Bar Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-ready_to_merge spec/unit/indirector/active_rec

[Puppet-dev] [PATCH/puppet 7/8] (#6830) Fix overly stubbed tests

2011-03-29 Thread Matt Robinson
In Ruby 1.9 calling .each on a stub calls to_a, and if you're not stubbing to_a you get: unexpected invocation: #.to_a() Could have stubbed to_a also, but less stubbing is better in these cases Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next

[Puppet-dev] Another set of Ruby 1.9 fixes

2011-03-29 Thread Matt Robinson
This won't be the last of these sets to fix Ruby 1.9 issues, but it's closer every time. This set of patches reduces the spec failures from more than 600 to around 250, although almost all the fixes in this set were with tests instead of implementation. Remaining big issues are dealing with RD

[Puppet-dev] [PATCH/puppet 4/8] (#6830) Fix MD5 handling to work with Ruby 1.9

2011-03-29 Thread Matt Robinson
MD5.new('mystring') => # ruby-1.8.7-p330 :005 > MD5.new('mystring').to_s => "169319501261c644a58610f967e8f9d0" ruby-1.8.7-p330 :006 > Digest::MD5.new('mystring') ArgumentError: wrong number of arguments (1 for 0) Reviewed-by: Jesse Wolfe Signed-off-

[Puppet-dev] [PATCH/puppet 5/8] (#6830) Fix badly stubbed Time object in test

2011-03-29 Thread Matt Robinson
Ruby 1.9 won't allow to_i to be called on a symbol. It results in the error: undefined method `to_i' for :now:Symbol Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-ready_to_merge spec/unit/network/authconfig_spec.rb |2 +-

[Puppet-dev] [PATCH/puppet 6/8] (#6830) Fix instance_variables now comes back as symbols

2011-03-29 Thread Matt Robinson
YAML_ATTRIBUTES was being declared as strings and then intersected with the list of instance_variables, which in Ruby 1.9 comes back as symbols, so results in an empty list every time. Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-ready_to_merge lib

[Puppet-dev] [PATCH/puppet 3/8] (#6830) Fix File class scoping

2011-03-29 Thread Matt Robinson
As seen in other Ruby 1.9 compatibility patches already. Fixes errors like: undefined method `dirname' for Puppet::Type::File:Class Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-ready_to_merge lib/puppet/type/tidy.rb |6 +++--- lib/puppet

[Puppet-dev] [PATCH/puppet 2/8] (#6830) Handle case where array is actually a string

2011-03-29 Thread Matt Robinson
Another case where in Ruby 1.8 you can call enumerable methods on strings that you can't in Ruby 1.9. undefined method `collect' for "dev2 dev1":String Reviewed-by: Jesse Wolfe Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830-ready_to_merge lib/puppet/

Re: [Puppet-dev] [PATCH/facter 1/1] Make the error message for failing to load the pre-requisite Ruby libraries more obvious. (Prompted by #6832)

2011-03-28 Thread Matt Robinson
On Mon, Mar 28, 2011 at 10:27 AM, Daniel Pittman wrote: > On Sun, Mar 27, 2011 at 20:09, Ben Hughes wrote: > > > > Signed-off-by: Ben Hughes > > --- > > Local-branch: tickets/master/6832 > > install.rb |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/install.

[Puppet-dev] [PATCH/puppet 1/2] (#6830) Fix stat method calls to not use an unneeded argument

2011-03-25 Thread Matt Robinson
y 1.9 does class Foo define_method('bar') do puts 'baz' end end Foo.new.bar("idonttakearguments") In Ruby 1.8 this prints: baz In Ruby 1.9 this errors with: 19_test.rb:3:in `block in ': wrong number of arguments (1 for 0) (ArgumentError

[Puppet-dev] [PATCH/puppet 2/2] (#6820) Fix cases where ::File is necessary for Ruby 1.9

2011-03-25 Thread Matt Robinson
This fixes errors like undefined method `expand_path` for Puppet::Type::File::Class When expand_path was meant to be called on Ruby's File class. Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6830_stat_calls lib/puppet/type/exec.rb | 20 ++-- 1 files ch

Re: [Puppet-dev] Empty subject in patch threads?

2011-03-25 Thread Matt Robinson
I know I've done this recently, and it's just that I forgot, not that there's too much magic. If anything perhaps `rake mail_patches` could by a little more magic by defaulting the subject to the branch name. At least the cover email should come through at pretty close to the same time as the patc

Re: [Puppet-dev] ANNOUNCE: Puppet Dashboard 1.1.0 - Release Candidate 1 available!

2011-03-24 Thread Matt Robinson
There were a few very important changes we forgot to highlight in the Dashboard v1.1.0rc1 release notes. 1. Reports will need to be converted to a new schematized format when upgrading (#5459). Rather than just storing reports as serialized YAML in the database as is currently done in v1.0.4, th

Re: [Puppet-dev] ANNOUNCE: Puppet Dashboard 1.1.0 - Release Candidate 1 available!

2011-03-24 Thread Matt Robinson
As Nick noted in another email, this is probably because you have storeconfigs enabled too. We're writing a fix for this problem and will be doing a Puppet Dashbaord rc2 later today. On Thu, Mar 17, 2011 at 11:19 AM, Russell Jackson wrote: > On 03/16/2011 05:38 PM, Nick Lewis wrote: >> This rele

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixed #6818 - Changed named_scope to scope to remove Rails 3 deprecation

2011-03-24 Thread Matt Robinson
I think your conditional is backwards. Rails 2 has named_scope, Rails 3 has scope, so we want to alias scope to named scope when activerecord < 3 On Wed, Mar 23, 2011 at 3:21 PM, James Turnbull wrote: > Added alias method for ActiveRecord versions before 3.0 > > Signed-off-by: James Turnbull >

[Puppet-dev]

2011-03-23 Thread Matt Robinson
These changes get our tests running under Ruby 1.9 instead of just giving syntax errors and bombing out early. More importantly, the changes don't break any tests (or appear to break any functionality) when running Puppet under Ruby 1.8. When running under Ruby 1.9 there are currently 2003 fai

[Puppet-dev] [PATCH/puppet 6/6] (#6820) Fix File class lookup in the file type for Ruby 1.9

2011-03-23 Thread Matt Robinson
le is the Ruby File class and not something scoped in Puppet. Reviewed-by: Jacob Helwig Signed-off-by: Matt Robinson --- Local-branch: ticket/next/6820_ruby19_fixes lib/puppet/type/file.rb | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/p

  1   2   3   4   >