Hi all, Just wondering if anyone knows if work is still being done on this provider. At present, one is not able to ensure that a particular version is installed and this is crucial for a job that I need to do. Last activity on this seems to have been in late 2010. I''ve looked at the provider source and I have the vaguest notion about how it works but my Ruby is close to nonexistent so I''m not sure that I''d be able to do much myself, although all indications are that I''m going to have to try if I want it to happen. Before embarking on this, though, I''d like to ask a few questions ... 1. Is there anyone looking into this at the moment? 2. Is it even technically feasible? 3. If I try to do this, would the Yum provider (for example) be a decent thing to look at as a jumping off point for version recognition/ handling? Thanks, Jonathan. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 14 Mar 2011, at 22:52, Jonathan wrote:> Hi all, > > Just wondering if anyone knows if work is still being done on this > provider. > > At present, one is not able to ensure that a particular version is > installed and this is crucial for a job that I need to do. Last > activity on this seems to have been in late 2010.Hi Jonathan, I''ve just released 2.6.6 for OpenCSW and it includes pkgutil.rb as it stood last week - https://github.com/gw42/puppet/blob/tickets%2Fmaster%2F4258-dev/lib/puppet/provider/package/pkgutil.rb It appears Juerg Walz is maintaining this at the moment. I haven''t tried the latest pkgutil provider, so I couldn''t tell you if it supports versions. I''ll be attempting to look at it later today. Sorry if that''s not a tremendous amount of use. Regards, --Mark -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 14/03/11 22:52, Jonathan wrote:> Just wondering if anyone knows if work is still being done on this > provider.Yep, best to follow the ticket, that has the latest news and follow puppet-dev for a little bit of discussion: http://projects.puppetlabs.com/issues/4258 It''s feeling pretty solid at the moment in my experience.> At present, one is not able to ensure that a particular version is > installed and this is crucial for a job that I need to do. Last > activity on this seems to have been in late 2010. > > I''ve looked at the provider source and I have the vaguest notion about > how it works but my Ruby is close to nonexistent so I''m not sure that > I''d be able to do much myself, although all indications are that I''m > going to have to try if I want it to happen.That''d be great.> Before embarking on this, though, I''d like to ask a few questions ... > > 1. Is there anyone looking into this at the moment? > 2. Is it even technically feasible?Nobody has been looking at it, it would be great if you and Mark want to and I''d be happy to help. I haven''t even seen any examples of pkgutil catalogs with multiple versions, so it''d be good to check it copes properly in its current form too. (Unit tests!) I think it''s best to first collect some evidence about the output format of pkgutil with multiple versions and what''s possible compared to say yum, then work out how to integrate that into the provider. -- Dominic Cleal Red Hat Consulting m: +44 (0)7818 512168 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Dominic Cleal wrote:> Nobody has been looking at it, it would be great if you and Mark want to > and I''d be happy to help. I haven''t even seen any examples of pkgutil > catalogs with multiple versions, so it''d be good to check it copes > properly in its current form too. (Unit tests!) > > I think it''s best to first collect some evidence about the output format > of pkgutil with multiple versions and what''s possible compared to say > yum, then work out how to integrate that into the provider. >And tests. Tests are always awesome. :) James -- James Turnbull Puppet Labs 1-503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 17 Mar 2011, at 05:42, James Turnbull wrote:> Dominic Cleal wrote: >> Nobody has been looking at it, it would be great if you and Mark want to >> and I''d be happy to help. I haven''t even seen any examples of pkgutil >> catalogs with multiple versions, so it''d be good to check it copes >> properly in its current form too. (Unit tests!) >> >> I think it''s best to first collect some evidence about the output format >> of pkgutil with multiple versions and what''s possible compared to say >> yum, then work out how to integrate that into the provider. >> > > And tests. Tests are always awesome. :)And on that subject James, do Puppetlabs have any recommendations for testing - types of evidence, frameworks, etc. My only experience is Perl Test::More and the likes, if you''ve any tips on what we could produce for Puppet/Ruby that''d be great. Thanks, --Mark -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Mar 17, 2011 at 09:07, Mark Phillips <mark@vntx.cc> wrote:> On 17 Mar 2011, at 05:42, James Turnbull wrote: >> Dominic Cleal wrote: >>> Nobody has been looking at it, it would be great if you and Mark want to >>> and I''d be happy to help. I haven''t even seen any examples of pkgutil >>> catalogs with multiple versions, so it''d be good to check it copes >>> properly in its current form too. (Unit tests!) >>> >>> I think it''s best to first collect some evidence about the output format >>> of pkgutil with multiple versions and what''s possible compared to say >>> yum, then work out how to integrate that into the provider. >> >> And tests. Tests are always awesome. :) > > And on that subject James, do Puppetlabs have any recommendations for > testing - types of evidence, frameworks, etc. My only experience is Perl > Test::More and the likes, if you''ve any tips on what we could produce for > Puppet/Ruby that''d be great.The tests under spec/unit are where we are pushing new testing effort. The pattern for implementation file to spec file is pretty simple, and should be fairly obvious. Depending, there may or may not be an existing test file, but we do try hard to add more as time goes on. We use rspec 2.5 and mocha. In general terms, we discourage mocking/stubbing too much, and prefer to have the real things as far as possible. We prefer fixtures inline, but large data makes that hard, so end up in a separate fixtures directory. We have some helpers for finding those. Sadly, I can''t just recommend cloning the existing tests: some of them are great, some are good, and some are a pretty mixed bag. Take a look in the area, or just write something. We can more easily help you polish something that gets the basics right. Finally, we are totally happy to help, and even just describing the expected results clearly, and giving us the input data we need to reflect the platform can be a huge help. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <daniel@puppetlabs.com> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Mark Phillips wrote:> On 17 Mar 2011, at 05:42, James Turnbull wrote: > >> Dominic Cleal wrote: >>> Nobody has been looking at it, it would be great if you and Mark want to >>> and I''d be happy to help. I haven''t even seen any examples of pkgutil >>> catalogs with multiple versions, so it''d be good to check it copes >>> properly in its current form too. (Unit tests!) >>> >>> I think it''s best to first collect some evidence about the output format >>> of pkgutil with multiple versions and what''s possible compared to say >>> yum, then work out how to integrate that into the provider. >>> >> And tests. Tests are always awesome. :) > > And on that subject James, do Puppetlabs have any recommendations for > testing - types of evidence, frameworks, etc. My only experience is Perl > Test::More and the likes, if you''ve any tips on what we could produce for > Puppet/Ruby that''d be great. >We use RSpec tests for Puppet. You can find examples of these in the spec/unit/provider/package directory of the source tree. There is also a page on the Puppet wiki that explains a lot more about our testing methodology. Regards James -- James Turnbull Puppet Labs 1-503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 17/03/11 16:07, Mark Phillips wrote:> On 17 Mar 2011, at 05:42, James Turnbull wrote: > >> Dominic Cleal wrote: >>> Nobody has been looking at it, it would be great if you and Mark want to >>> and I''d be happy to help. I haven''t even seen any examples of pkgutil >>> catalogs with multiple versions, so it''d be good to check it copes >>> properly in its current form too. (Unit tests!) >>> >>> I think it''s best to first collect some evidence about the output format >>> of pkgutil with multiple versions and what''s possible compared to say >>> yum, then work out how to integrate that into the provider. >>> >> >> And tests. Tests are always awesome. :) > > And on that subject James, do Puppetlabs have any recommendations for > testing - types of evidence, frameworks, etc. My only experience is Perl > Test::More and the likes, if you''ve any tips on what we could produce for > Puppet/Ruby that''d be great.Just to add to Daniel and James, I recently wrote a test for the pkgutil provider based on the current implementation. You''ll find it in the latest branch (Juerg''s) at spec/unit/provider/package/pkgutil_spec.rb. Hopefully it''s fairly easy to follow and extend. Also see: http://projects.puppetlabs.com/projects/puppet/wiki/Development_Writing_Tests Actually, it looks Juerg''s recent commits have caused it to break, so I''ll go through later and update it to cover the changes. Will update #4258 when it''s done. $ ruby spec/unit/provider/package/pkgutil_spec.rb .....F.FFF.F..F. Failures: 1) Puppet::Type::Package::ProviderPkgutil when updating should use a command without versioned package [... etc ...] -- Dominic Cleal Red Hat Consulting m: +44 (0)7818 512168 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.