Matt
2011-Aug-26 15:30 UTC
[Puppet Users] Forcing package resources to fail to install in Solaris sparse root zones when install path is inherited from global zone
Hello,
I''ve have a bunch of Solaris sparse root zones. The share /opt/csw
with the global zone. Because of this, attempts to install a package
that roots in that directory will fail. How do I get puppet to notify
and fail if the package is missing, rather than attempt to install, in
such a zone? facter reports virtual => zone and I thought maybe it''s
something to do with adding something to Package {} so all package
resources inherit, but that''s about as far as my (currently only a few
days old) knowledge of Puppet takes me.
Thanks,
Matt
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2011-Aug-26 17:27 UTC
Re: [Puppet Users] Forcing package resources to fail to install in Solaris sparse root zones when install path is inherited from global zone
On Fri, Aug 26, 2011 at 8:30 AM, Matt <matthew.willsher@gmail.com> wrote:> I''ve have a bunch of Solaris sparse root zones. The share /opt/csw > with the global zone. Because of this, attempts to install a package > that roots in that directory will fail. How do I get puppet to notify > and fail if the package is missing, rather than attempt to install, in > such a zone? facter reports virtual => zone and I thought maybe it''s > something to do with adding something to Package {} so all package > resources inherit, but that''s about as far as my (currently only a few > days old) knowledge of Puppet takes me.Add the attribute noop => true for the package to skip the installation and just notify. You can make this a variable dependent on whether the system is solaris and virtual. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.