[PUP-7424] Take in extra parameters for Solaris when using package resource type Created: 2017/04/04  Updated: 2020/03/04

Status: Accepted
Project: Puppet
Component/s: Types and Providers
Affects Version/s: PUP 4.9.4
Fix Version/s: None

Type: New Feature Priority: Normal
Reporter: Fred COSTANT Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: package, platform-os, solaris, type_and_provider
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Using on a Solaris 11.3/X86


Template:
Team: Night's Watch
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


Generated at Tue Jul 14 03:02:31 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.