Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7424

Take in extra parameters for Solaris when using package resource type

    Details

    • Template:
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      On Solaris11, when a package is installed like this :

      package

      { 'zabbixclient' : ensure => 'latest', }

      Solaris11 pkg manager always create a be (*b*oot *e*nvironment) for safety, which can use huge space on disk (when you often upgrade packages and so you take a filesystem full).

      example (in this example, each time a package is updated, sol11 create a be name backup)
      >beadm list
      BE Flags Mountpoint Space Policy Created
      – ----- ---------- ----- ------ -------
      zfsAltDisk - - 69.36M static 2016-12-25 15:00
      zfsAltDisk-1 NR / 40.96G static 2017-01-13 10:02
      zfsAltDisk-1-backup-1 - - 758.5K static 2017-04-03 15:00

      To avoid this safety creation each time, an option is necessary, like --no-backup-be
      I modify locally, this file :

      /puppet/lib/puppet/provider/package/pkg.rb, line 208

      <<
      args.push('--no-backup-be')
      >>

      The best way will be to add parameters to the resources type package, which could be interpretates in /puppet/lib/puppet/provider/package/pkg.rb, line 208

      I add too a pkg refresh at the start, because Solaris11 needs a refresh catalogue more frequently.
      At line 29

      1. Add a systemic refresh, for retrieving last fresh packages
        pkg(:refresh)

      Thanks

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                coxifred Fred COSTANT
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support