Issue #4296 has been updated by Ben Hughes.
Category set to Solaris
Status changed from Needs More Information to Investigating
Assignee set to Ben Hughes
Hey John.
This ticket is going back a bit I know, but if you've upgraded to 2.6.x are you
still seeing this problem please?
On my testing I get the following:
<pre>
debug: Zone[test](provider=solaris): Executing '/usr/sbin/zonecfg -z test -f -'
in zone test with 'create -b -b
set zonepath=/export/zones/test
add net
set physical=e1000g3
set address=192.168.178.200
set defrouter=192.168.178.1
end
set ip-type=shared
set autoboot=true
commit
</pre>
From:
<pre>
[root@solaris:~]# cat zone2.pp
zone { "test":
create_args => "-b",
autoboot => true,
path => "/export/zones/test",
ip => "e1000g3:192.168.178.200:192.168.178.1"
}
</pre>
----------------------------------------
Feature #4296: Zone type should have defrouter parameter
https://projects.puppetlabs.com/issues/4296
Author: John Lyman
Status: Investigating
Priority: Normal
Assignee: Ben Hughes
Category: Solaris
Target version:
Affected Puppet 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.