Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3193

No way to create a sysidcfg for a zone with multiple network interfaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: PUP 3.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Solaris 10

    • Template:

      Description

      When creating a zone we can set sysidcfg to a template that generates the sysidcfg file. In the documentation there is a example.

      When configuring a zone with 2 interface the 'network_interface' is not 'primary' but the interface name. The problem i have is that the interface name i set in the puppet file is not the interface name needed in the sysidcfg.erb file. In the sysidcfg file the interface is extend with a number, which depends on the global zone.

      Below example has the networkinterface in the sysidcfg.erb hardcoded to get it to work.

      How do i define a sysidcfg.erb that can handle multiple interfaces ?

      zone def :
      --------------

      zone { "test":
      	name 	=> "${zone_name}",
      	ensure	=> "running",
      	iptype	=> "shared",
      	ip		=> [
      		'ixgbe288000:10.17.24.101:10.17.24.1',
      		'ixgbe290000:10.17.24.102:10.17.24.1', 
      		],
      	path		=> "/var/zones/test",
      	sysidcfg	=> template('global_zone/sysidcfg.erb'),
      }
      

      sysidcfg.erb :
      --------------

      system_locale=C
      timezone=Europe/Amsterdam
      terminal=vt100
      security_policy=NONE
      root_password=Bn6s2d5MWIYhc
      timeserver=localhost
      name_service=NONE
      network_interface=ixgbe288000:2 {
        hostname=<%= @zone_name %>
        ip_address=10.17.24.101
        netmask=255.255.255.0
        protocol_ipv6=no
      }
      network_interface=ixgbe290000:3 {
        hostname=<%= @zone_name %>
        ip_address=10.17.26.101
        netmask=255.255.255.0
        protocol_ipv6=no
      }
      nfs4_domain=dynamic
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                t794104 Jurgen Brand
                QA Contact:
                Erik Dasher
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support