Project

General

Profile

Actions

Support #11981

closed

Impove my cloud-init for vmware

Added by Nikita Stupin about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Compute resources - VMware
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

My cloud-init:

---
globalIPSettings:
  dnsServerList:
    - <%= @host.subnet.dns_primary %>
  dnsSuffixList:
    - <%= @host.domain %>
identity:
  LinuxPrep:
    domain: <%= @host.domain %>
    hostName: <%= @host.shortname %>
    hwClockUTC: true
    timeZone: "Europe/Moscow" 
nicSettingMap:
  - adapter:
      dnsDomain: <%= @host.domain %>
      dnsServerList:
        - <%= @host.subnet.dns_primary %>
      gateway:
        - <%= @host.subnet.gateway %>
      ip: <%= @host.ip %>
      subnetMask: <%= @host.subnet.mask %>
fqdn: <%= @host %>
manage_etc_hosts: true

How i can add multiple interfaces/aliases for using in this template? I suppose need multiple adapter blocks. How i can do foreach for interfaces list?

Actions

Also available in: Atom PDF