Issue #4296 has been reported by John Lyman.

----------------------------------------
Feature #4296: Zone type should have defrouter parameter
http://projects.puppetlabs.com/issues/4296

Author: John Lyman
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


Currently, the only way to set the default router in a shared-ip zone using 
puppet is to use an exec after the zone is created.  For example:
<pre>
exec { "set_${name}_gw":
    command => "zonecfg -z $name \"select net address=$ip ; set defrouter=$gw ; 
end\"",
    unless  => "zonecfg -z $name info net address=$ip | /usr/xpg4/bin/grep -q 
\"defrouter: ${gw}\"",
    require => Zone["$name"],
    notify  => Exec["reboot_${name}"],
}
</pre>

Changing the defrouter this way requires that the zone be reboot.

Since Solaris 10 update 6, the default router can be configured by setting the 
"defrouter" parameter in zonecfg.  It would be nice if puppet's zone type 
provided this functionality so that the default router could be set when the 
zone is created.

See also 
http://groups.google.com/group/puppet-users/browse_thread/thread/f8fb0fc7924ca67b.


-- 
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.

Reply via email to