Título: Archivo ignition Publicado por: Javier_CMM en Junio 08, 2021, 07:42:48 Llevo varios días intentando instalar las xen tools en un fedora CoreOS mediante un archivo ignition y necesito que se instalen, se habiliten, aparezcan instaladas y que dicho comando solo se ejecute una vez.
Paso por aquí el script, espero que esté decentemente hecho: variant: fcos version: 1.0.0 passwd: users: - name: core password_hash: "$1$swHr5PIQ$E73bq0Q2wQtj9hVvYDKr.1" groups: - docker - sudo systemd: units: - name: install-rpms.service enabled: true contents: | [Unit] Description=Install packages ConditionFirstBoot=yes Wants=network-online.target After=network-online.target After=multi-user.target [Service] Type=oneshot ExecStart=rpm-ostree ex livefs install xe-guest-utilities-latest git docker-compose htop [Install] WantedBy=multi-user.target - name: install-rpms3.service enabled: true contents: | [Unit] Description=Install packages ConditionFirstBoot=yes [Service] Type=oneshot ExecStart=systemctl enable --now xe-linux-distribution [Install] WantedBy=multi-user.target - name: keyboard.service enabled: true contents: | [Unit] Description=Change language ConditionFirstBoot=yes [Service] Type=oneshot ExecStart=localectl set-keymap es [Install] WantedBy=multi-user.target storage: files: - path: /etc/ssh/sshd_config.d/20-enable-passwords.conf mode: 0644 contents: inline: | # Fedora CoreOS disables SSH password login by default. # Enable it. # This file must sort before 40-disable-passwords.conf. PasswordAuthentication yes - path: /etc/hostname mode: 0644 contents: inline: rpd.madrid.medios.es - path: /etc/locale.conf mode: 0644 contents: inline: KEYMAP="es" FONT="eurlatgr" LANG=es_ES.UTF-8 |