Categories
Belekas Trumpi

cloud-init

#cloud-config
password: mysecret
chpasswd: { expire: False }
ssh_pwauth: True
disable_root: false
chpasswd:
  list: |
    root:linux
  expire: False
chpasswd:
  list: |
    account:$6$salt$hash
timezone: Europe/Stockholm
manage_resolv_conf: true
resolv_conf:
  nameservers: ['1.1.1.1', '8.8.4.4', '8.8.8.8']
  searchdomains:
    - lpic.lt
    - qwq.lt
  domain: lpic.lt
  options:
    rotate: true
    timeout: 1
ntp:
  servers:
    - tss.vu.lt
    - pool.debian.org
    - ntp3.example.com
runcmd:
  - /usr/bin/systemctl enable --now ntpd
  - /usr/bin/localectl set-keymap de-latin1-nodeadkeys
#cloud-config
debug: True
disable_root: False
ssh_pwauth: True
ssh_deletekeys: False
ssh_authorized_keys:
  - ssh-rsa AAAAxxx== mail@exmaple.com
chpasswd:
  list: |
    root:$6$salt$hash
  expire: False
zypper:
  repos:
    - id: tumbleweed-oss
      name: os-oss
      baseurl: http://download.opensuse.org/tumbleweed/repo/oss/
      enabled: 1
      autorefresh: 1
    - id: tumbleweed-update
      name: os-update
      baseurl: http://download.opensuse.org/update/tumbleweed/
      enabled: 1
      autorefresh: 1
  config:
    download.use_deltarpm: true

External Links

https://en.opensuse.org/Kubic:MicroOS/cloud-init
https://en.opensuse.org/Portal:MicroOS/cloud-init

By Ruslanas Gžibovskis

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.