Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| efda1af7ec | |||
| 77b4f9eb86 | |||
| c4ca53c276 | |||
| 452080fb6d | |||
| 9c8b5b70b2 | |||
| c78fa85aa7 |
@@ -2,6 +2,10 @@ variant: fcos
|
||||
version: 1.5.0
|
||||
passwd:
|
||||
users:
|
||||
- name: root
|
||||
password_hash: "{{ vm_password | password_hash('sha512') }}"
|
||||
ssh_authorized_keys:
|
||||
- "{{ lookup('file', vm_ssh_public_key) | trim }}"
|
||||
- name: {{ vm_user }}
|
||||
password_hash: "{{ vm_password | password_hash('sha512') }}"
|
||||
ssh_authorized_keys:
|
||||
|
||||
@@ -2,6 +2,10 @@ variant: fcos
|
||||
version: 1.4.0
|
||||
passwd:
|
||||
users:
|
||||
- name: root
|
||||
password_hash: "{{ vm_password | password_hash('sha512') }}"
|
||||
ssh_authorized_keys:
|
||||
- "{{ lookup('file', vm_ssh_public_key) | trim }}"
|
||||
- name: {{ vm_user }}
|
||||
password_hash: "{{ vm_password | password_hash('sha512') }}"
|
||||
ssh_authorized_keys:
|
||||
|
||||
@@ -7,17 +7,6 @@ passwd:
|
||||
ssh_authorized_keys:
|
||||
- "{{ lookup('file', vm_ssh_public_key) | trim }}"
|
||||
storage:
|
||||
disks:
|
||||
- device: /dev/vdb
|
||||
wipe_table: true
|
||||
partitions:
|
||||
- label: ext-data
|
||||
number: 1
|
||||
filesystems:
|
||||
- device: /dev/vdb1
|
||||
format: btrfs
|
||||
label: ext-pool
|
||||
wipe_filesystem: true
|
||||
files:
|
||||
- path: /etc/ssh/sshd_config.d/permit_root_login.conf
|
||||
mode: 0644
|
||||
@@ -36,12 +25,12 @@ systemd:
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStartPre=/usr/bin/mkdir -p /run/mnt-ext-init
|
||||
ExecStartPre=/usr/bin/mount LABEL=ext-pool /run/mnt-ext-init
|
||||
ExecStartPre=/usr/bin/mkdir -p /run/mnt-root-init
|
||||
ExecStartPre=/usr/bin/mount -o subvolid=5 /dev/disk/by-label/ROOT /run/mnt-root-init
|
||||
# Hier werden die Subvolumes @home angelegt, falls sie nicht existieren
|
||||
ExecStart=/usr/bin/bash -c "for sub in @home; do [ -d /run/mnt-ext-init/\$$sub ] || /usr/sbin/btrfs subvolume create /run/mnt-ext-init/$$sub; done"
|
||||
ExecStartPost=/usr/bin/umount /run/mnt-ext-init
|
||||
ExecStartPost=/usr/bin/rmdir /run/mnt-ext-init
|
||||
ExecStart=/usr/bin/bash -c "for sub in @home; do [ -d /run/mnt-root-init/\$$sub ] || /usr/sbin/btrfs subvolume create /run/mnt-root-init/$$sub; done"
|
||||
ExecStartPost=/usr/bin/umount /run/mnt-root-init
|
||||
ExecStartPost=/usr/bin/rmdir /run/mnt-root-init
|
||||
RemainAfterExit=true
|
||||
|
||||
[Install]
|
||||
@@ -55,7 +44,7 @@ systemd:
|
||||
Before=local-fs.target
|
||||
|
||||
[Mount]
|
||||
What=LABEL=ext-pool
|
||||
What=/dev/disk/by-label/ROOT
|
||||
Where=/home
|
||||
Type=btrfs
|
||||
Options=defaults,subvol=@home
|
||||
|
||||
@@ -76,7 +76,6 @@
|
||||
--vcpus {{ cpu | default(default_cpu) }} \
|
||||
--memory {{ ram | default(default_ram) }} \
|
||||
--disk size={{ disk | default('10') }},backing_store={{ vm_images_dir }}/{{ vm_name }}.qcow2,backing_format=qcow2,bus=virtio \
|
||||
--disk size={{ disk | default('10') }},path={{ vm_images_dir }}/{{ vm_name }}-home.qcow2,bus=virtio \
|
||||
--os-variant {{ os_variant }} \
|
||||
--network network=default \
|
||||
--graphics none \
|
||||
|
||||
Reference in New Issue
Block a user