Issue #7986 has been updated by Paul Armstrong.
Yes, if you have something like:
<pre>
class ssh
{
package { "service/network/ssh": ensure => present }
service
{
ssh:
ensure => running,
subscribe => File["/etc/ssh/sshd_config"];
}
file
{
"/etc/ssh/sshd_config":
mode => 444,
owner => root,
group => root,
source => "puppet:///modules/ssh/sshd_config",
require => Package["service/network/ssh"];
}
}
</pre>
You'll end up with errors like:
<pre>
Jun 23 12:23:05 builder.int.otoh.org puppet-agent[20242]: [ID 702911
daemon.error] (/Stage[main]/Ssh/Package[service/network/ssh]/ensure) change
from absent to present failed: Execution of '/usr/bin/pkg install
service/network/ssh' returned 4: No updates necessary for this image.
Jun 23 12:23:05 builder.int.otoh.org puppet-agent[20242]: [ID 702911
daemon.notice] (/Stage[main]/Ssh/File[/etc/ssh/sshd_config]) Dependency
Package[service/network/ssh] has failures: true
Jun 23 12:23:05 builder.int.otoh.org puppet-agent[20242]: [ID 702911
daemon.warning] (/Stage[main]/Ssh/File[/etc/ssh/sshd_config]) Skipping because
of failed dependencies
Jun 23 12:23:05 builder.int.otoh.org puppet-agent[20242]: [ID 702911
daemon.notice] (/Stage[main]/Ssh/Service[ssh]) Dependency
Package[service/network/ssh] has failures: true
Jun 23 12:23:05 builder.int.otoh.org puppet-agent[20242]: [ID 702911
daemon.warning] (/Stage[main]/Ssh/Service[ssh]) Skipping because of failed
dependencies
</pre>
This means that having a dependency of the package before the config will stop
the config being updated after the initial package install.
----------------------------------------
Bug #7986: Solaris 11/OpenSolaris pkg provider needs to accept exit code 4
https://projects.puppetlabs.com/issues/7986
Author: Paul Armstrong
Status: Accepted
Priority: Normal
Assignee:
Category: package
Target version:
Affected Puppet version: 2.6.8
Keywords: solaris opensolaris pkg
Branch:
When a package doesn't require updates, pkg returns with an exit code of 4
instead of 0.
<pre>
$ pkg install bash
No updates necessary for this image.
$ echo $?
4
</pre>
The pkg provider needs to check for exit code 4 and treat that as success for
checks.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.