Does anyone know a way to set the defrouter when creating a zone on a solaris box? I''m guessing the the provider was written before the Solaris update that provided the new functionality. I''ve been getting around it with an exec (e.g. zonecfg -z my_zone "select net address=192.168.1.100 ; set defrouter=192.168.1.1 ; end"), but I thought there may be a more graceful solution. I''ve also tried messing with create_args to no avail. -- 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.
On Mon, Jul 19, 2010 at 3:52 PM, John Lyman <jlyman2@gmail.com> wrote:> Does anyone know a way to set the defrouter when creating a zone on a > solaris box? >Rather than using exec, I recommend using sysidcfg file with a template. You can specify default route per interface. Please keep in mind sysidcfg is only processed during initial boot, but you should be able to manage the zone with puppet afterward. 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.
> Rather than using exec, I recommend using sysidcfg file with a template.If this an shared-ip zone then the default_route entry in the sysidcfg will not actually create a route in the non global zone. The routing setup via /lib/svc/method/net-routing-setup doesn''t actually do anything in shared-ip zones. My understanding is that if you use the ''defrouter'' setting in the zonecfg then during zone installation/creation the global zone actually set''s up an additional default route which is used by the non global zone. Without noodling on it too long it would appear to be a job for exec currently. Example from a test zone in case I missed something. [me@here: ~] sudo zonecfg -z dev-testzone info net net: address: 10.1.16.49 physical: e1000g0 defrouter not specified <--------- This should contain the route if it was setup via zonecfg HTH. Derek. -- 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.
> Without noodling on it too long it would appear to be a job for exec > currently.Thanks for confirming. I created a feature request: http://projects.reductivelabs.com/issues/4296 -- 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.