Jira (PUP-7424) Take in extra parameters for Solaris when using package resource type

5 views
Skip to first unread message

Fred COSTANT (JIRA)

unread,
Apr 4, 2017, 4:16:02 AM4/4/17
to puppe...@googlegroups.com
Fred COSTANT created an issue
 
Puppet / New Feature PUP-7424
Take in extra parameters for Solaris when using package resource type
Issue Type: New Feature New Feature
Affects Versions: PUP 4.9.4
Assignee: Unassigned
Components: Types and Providers
Created: 2017/04/04 1:15 AM
Environment:

Using on a Solaris 11.3/X86

Labels: solaris
Priority: Normal Normal
Reporter: Fred COSTANT

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Ethan Brown (JIRA)

unread,
May 17, 2017, 2:12:05 PM5/17/17
to puppe...@googlegroups.com

Ethan Brown (JIRA)

unread,
May 17, 2017, 2:12:08 PM5/17/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Mar 24, 2018, 9:09:04 PM3/24/18
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Labels: solaris type_and_provider
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
May 14, 2018, 3:04:02 PM5/14/18
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: package solaris triaged type_and_provider

Josh Cooper (Jira)

unread,
Jun 11, 2021, 5:35:01 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
On Solaris11, when a package is installed like this :

{code:puppet}
package { 'zabbixclient' :
      ensure => 'latest',
    }
{code}

Solaris11 pkg manager always create a be BE ( *b*oot *e*nvironment boot environment ) 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 BE named *backup*)

{noformat}
>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
*{color:red}zfsAltDisk-1-backup-1{color}* -     -          758.5K static 2017-04-03 15:00
{noformat}

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


This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Jun 11, 2021, 5:36:02 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
On Solaris11, when a package is installed like this :

{code:puppet}
package { 'zabbixclient' :
  ensure => 'latest',
}
{code}

Solaris11 pkg manager always create a BE (boot environment) 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 named *backup*)


{noformat}
>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
*{color:red} zfsAltDisk-1-backup-1 {color}* -     -          758.5K static 2017-04-03 15:00
{noformat}

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


Josh Cooper (Jira)

unread,
Jun 11, 2021, 5:37:02 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper commented on New Feature PUP-7424
 
Re: Take in extra parameters for Solaris when using package resource type

This ticket hasn't seen any activity in many years, so I'm to close it. Please reopen if this is still an issue.

Reply all
Reply to author
Forward
0 new messages