On Tue, Sep 18, 2012 at 4:26 PM, Philip Brown <
ph...@bolthole.com> wrote:
>
> Do this on a solaris 11 box:
Solaris 11 on 2.7 has problems. There has been a lot of work on
improving Solaris support in the upcoming Puppet 3 release.
>
> (go to the package providers dir)
> cp pkg.rb pkg_test.rb
> (edit pkg_test.rb and change "pkg" class identity references to pkg_test)
> (I think that means just changing the first ":pkg" to ":pkg_test" ? )
>
> puppet resource --debug package gnu-patch provider=pkg_test
>
I just tried this out with the gem provider (I don't have a solaris
box) and it did what I expected.
[13:26:29][Ruby(ruby-1.8.7-p358)][Git(2.7.x)] andy:puppet
> puppet resource package mocha -p provider provider=gem_test
package { 'mocha':
ensure => ['0.10.5'],
provider => 'gem_test',
}
[13:26:36][Ruby(ruby-1.8.7-p358)][Git(2.7.x)] andy:puppet
> puppet resource package mocha -p provider
warning: Package bundler found in both gem and gem_test; skipping the
gem_test version
warning: Package columnize found in both gem and gem_test; skipping
the gem_test version
warning: Package diff-lcs found in both gem and gem_test; skipping the
gem_test version
warning: Package fuubar found in both gem and gem_test; skipping the
gem_test version
warning: Package hpricot found in both gem and gem_test; skipping the
gem_test version
warning: Package hub found in both gem and gem_test; skipping the
gem_test version
warning: Package linecache found in both gem and gem_test; skipping
the gem_test version
warning: Package metaclass found in both gem and gem_test; skipping
the gem_test version
warning: Package mocha found in both gem and gem_test; skipping the
gem_test version
warning: Package net-scp found in both gem and gem_test; skipping the
gem_test version
warning: Package net-ssh found in both gem and gem_test; skipping the
gem_test version
warning: Package rake found in both gem and gem_test; skipping the
gem_test version
warning: Package rbx-require-relative found in both gem and gem_test;
skipping the gem_test version
warning: Package rcov found in both gem and gem_test; skipping the
gem_test version
warning: Package rspec found in both gem and gem_test; skipping the
gem_test version
warning: Package rspec-core found in both gem and gem_test; skipping
the gem_test version
warning: Package rspec-expectations found in both gem and gem_test;
skipping the gem_test version
warning: Package rspec-instafail found in both gem and gem_test;
skipping the gem_test version
warning: Package rspec-mocks found in both gem and gem_test; skipping
the gem_test version
warning: Package ruby-debug found in both gem and gem_test; skipping
the gem_test version
warning: Package ruby-debug-base found in both gem and gem_test;
skipping the gem_test version
warning: Package ruby-progressbar found in both gem and gem_test;
skipping the gem_test version
warning: Package sqlite3-ruby found in both gem and gem_test; skipping
the gem_test version
warning: Package stomp found in both gem and gem_test; skipping the
gem_test version
warning: Package systemu found in both gem and gem_test; skipping the
gem_test version
package { 'mocha':
ensure => ['0.10.5'],
provider => 'gem',
}
>
> You will then see debug output by practically all other package providers.
>
Could you provide that debug output. I'm at a loss for what is happening now.
> I suppose I should mention that the puppet version I'm using, is that
> autobuilt by ruby gems.
> 2.7.18
>