|
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
-
Add a systemic refresh, for retrieving last fresh packages
pkg(:refresh)
Thanks
|