diff options
Diffstat (limited to 'lib/puppet/provider/package/nim.rb')
-rw-r--r-- | lib/puppet/provider/package/nim.rb | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/puppet/provider/package/nim.rb b/lib/puppet/provider/package/nim.rb index 33d4bf11d..8f52016db 100644 --- a/lib/puppet/provider/package/nim.rb +++ b/lib/puppet/provider/package/nim.rb @@ -2,34 +2,34 @@ require 'puppet/provider/package' require 'puppet/util/package' Puppet::Type.type(:package).provide :nim, :parent => :aix, :source => :aix do - desc "Installation from NIM LPP source" + desc "Installation from NIM LPP source" - # The commands we are using on an AIX box are installed standard - # (except nimclient) nimclient needs the bos.sysmgt.nim.client fileset. - commands :nimclient => "/usr/sbin/nimclient" + # The commands we are using on an AIX box are installed standard + # (except nimclient) nimclient needs the bos.sysmgt.nim.client fileset. + commands :nimclient => "/usr/sbin/nimclient" - # If NIM has not been configured, /etc/niminfo will not be present. - # However, we have no way of knowing if the NIM server is not configured - # properly. - confine :exists => "/etc/niminfo" + # If NIM has not been configured, /etc/niminfo will not be present. + # However, we have no way of knowing if the NIM server is not configured + # properly. + confine :exists => "/etc/niminfo" - has_feature :versionable + has_feature :versionable - attr_accessor :latest_info + attr_accessor :latest_info - def self.srclistcmd(source) - [ command(:nimclient), "-o", "showres", "-a", "installp_flags=L", "-a", "resource=#{source}" ] - end + def self.srclistcmd(source) + [ command(:nimclient), "-o", "showres", "-a", "installp_flags=L", "-a", "resource=#{source}" ] + end - def install(useversion = true) - unless source = @resource[:source] - self.fail "An LPP source location is required in 'source'" - end + def install(useversion = true) + unless source = @resource[:source] + self.fail "An LPP source location is required in 'source'" + end - pkg = @resource[:name] + pkg = @resource[:name] - pkg << " " << @resource.should(:ensure) if (! @resource.should(:ensure).is_a? Symbol) and useversion + pkg << " " << @resource.should(:ensure) if (! @resource.should(:ensure).is_a? Symbol) and useversion - nimclient "-o", "cust", "-a", "installp_flags=acgwXY", "-a", "lpp_source=#{source}", "-a", "filesets='#{pkg}'" - end + nimclient "-o", "cust", "-a", "installp_flags=acgwXY", "-a", "lpp_source=#{source}", "-a", "filesets='#{pkg}'" + end end |