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

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, 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: 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


Generated at Sat Dec 07 15:50:22 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.