This message was deleted.
# elemental
a
This message was deleted.
w
Hi Kartik!
We are using a slightly modified cloud-init called yip: https://github.com/rancher/yip
The syntax should be as following:
Copy code
spec:
  config:
    cloud-config:
      dns: 
        nameservers:
          - 8.8.8.8
          - 1.1.1.1
        search:
          - foo.bar
        options:
          path: "/etc/resolv.conf
f
Thanks. I used below and created the iso but no change. I'm able to see the section within the /oem/91_custom yaml and other changes got implemented just fine. Only dns not working. Where can i find cloud-init logs to debug this?
Copy code
config:
  cloud-config:
    dns:
      nameservers:
        - 192.168.4.81
      options:
        timeout: 1
      path: /etc/resolv.conf
      search:
        - elemental.svc.cluster.local
        - svc.cluster.local
        - cluster.local
    runcmd:
      - echo 192.168.4.82 <http://rancher.example.com|rancher.example.com> >> /etc/hosts
    users:
      - name: root
        passwd: connect
      - homedir: /home/user1
        name: user1
        passwd: test