handle data mode alpine installs
parent
7825adce0b
commit
a6192a2c03
83
hosts.yml
83
hosts.yml
|
@ -17,7 +17,7 @@ all:
|
||||||
ansible_port: 22
|
ansible_port: 22
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
ansible_become_method: doas
|
ansible_become_method: doas
|
||||||
use_lbu: true
|
alpine_mode: diskless
|
||||||
alpine_version: v3.16
|
alpine_version: v3.16
|
||||||
alpine_repos:
|
alpine_repos:
|
||||||
- main
|
- main
|
||||||
|
@ -28,41 +28,12 @@ all:
|
||||||
ansible_port: 22
|
ansible_port: 22
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
ansible_become_method: doas
|
ansible_become_method: doas
|
||||||
use_lbu: true
|
alpine_mode: data
|
||||||
alpine_version: v3.16
|
alpine_version: v3.16
|
||||||
alpine_repos:
|
alpine_repos:
|
||||||
- main
|
- main
|
||||||
- community
|
- community
|
||||||
mounts:
|
|
||||||
- path: "/media/mmcblk0p1"
|
|
||||||
src: "0EB4-4BBF"
|
|
||||||
fstype: "vfat"
|
|
||||||
opts: "noauto,defaults"
|
|
||||||
passno: "0"
|
|
||||||
- path: "/boot"
|
|
||||||
src: "/media/mmcblk0p1/boot"
|
|
||||||
fstype: "none"
|
|
||||||
opts: "defaults,bind"
|
|
||||||
passno: "0"
|
|
||||||
- path: "/media/mmcblk0p2"
|
|
||||||
src: "UUID=75d4943d-2a1a-4f76-9f60-cff99b4d2e1f"
|
|
||||||
fstype: "ext4"
|
|
||||||
opts: "defaults"
|
|
||||||
passno: "0"
|
|
||||||
- path: "/var/lib/builder/src"
|
|
||||||
src: "/media/mmcblk0p2/src"
|
|
||||||
fstype: "none"
|
|
||||||
opts: "bind"
|
|
||||||
passno: "0"
|
|
||||||
- path: "/mnt/btr_pool"
|
|
||||||
src: "/dev/mapper/disk0"
|
|
||||||
fstype: "btrfs"
|
|
||||||
opts: "subvolid=5,noatime"
|
|
||||||
passno: "0"
|
|
||||||
|
|
||||||
rpi_cfg:
|
|
||||||
- "enable_uart=1"
|
|
||||||
- "otg_mode=1"
|
|
||||||
dmcrypt_targets:
|
dmcrypt_targets:
|
||||||
- name: "WDC WDS400T1R0A"
|
- name: "WDC WDS400T1R0A"
|
||||||
target: "disk0"
|
target: "disk0"
|
||||||
|
@ -75,13 +46,61 @@ all:
|
||||||
key: "/luks_key.asc:gpg"
|
key: "/luks_key.asc:gpg"
|
||||||
remdev: "/dev/mmcblk0p2"
|
remdev: "/dev/mmcblk0p2"
|
||||||
|
|
||||||
|
mounts:
|
||||||
|
|
||||||
|
- src: "/dev/mmcblk0p1"
|
||||||
|
path: "/media/mmcblk0p1"
|
||||||
|
fstype: "vfat"
|
||||||
|
opts: "noauto,defaults"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/media/mmcblk0p1/boot"
|
||||||
|
path: "/boot"
|
||||||
|
fstype: "none"
|
||||||
|
opts: "defaults,bind"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mmcblk0p2"
|
||||||
|
path: "/media/mmcblk0p2"
|
||||||
|
fstype: "ext4"
|
||||||
|
opts: "defaults"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mapper/disk0"
|
||||||
|
path: "/mnt/btr_pool"
|
||||||
|
fstype: "btrfs"
|
||||||
|
opts: "subvolid=5,noatime"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mapper/disk0"
|
||||||
|
path: "/var/log"
|
||||||
|
fstype: "btrfs"
|
||||||
|
opts: "subvol=logs,noatime"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mapper/disk0"
|
||||||
|
path: "/home"
|
||||||
|
fstype: "btrfs"
|
||||||
|
opts: "subvol=home,noatime"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
- src: "/dev/mapper/disk0"
|
||||||
|
path: "/var/lib/builder/src"
|
||||||
|
fstype: "btrfs"
|
||||||
|
opts: "subvol=src,noatime"
|
||||||
|
passno: "0"
|
||||||
|
|
||||||
|
rpi_cfg:
|
||||||
|
- "enable_uart=1"
|
||||||
|
- "otg_mode=1"
|
||||||
|
|
||||||
caladan:
|
caladan:
|
||||||
ansible_host: caladan
|
ansible_host: caladan
|
||||||
ansible_user: ansible
|
ansible_user: ansible
|
||||||
ansible_port: 22
|
ansible_port: 22
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
ansible_python_interpreter: /usr/bin/python3
|
||||||
ansible_become_method: doas
|
ansible_become_method: doas
|
||||||
use_lbu: false
|
alpine_mode: system
|
||||||
alpine_version: v3.16
|
alpine_version: v3.16
|
||||||
alpine_repos:
|
alpine_repos:
|
||||||
- main
|
- main
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
- name: add btrfs-scan init script to lbu
|
- name: add btrfs-scan init script to lbu
|
||||||
lbu:
|
lbu:
|
||||||
include: /etc/init.d/btrfs-scan
|
include: /etc/init.d/btrfs-scan
|
||||||
when: use_lbu
|
when: alpine_mode in ["diskless", "data"]
|
||||||
|
|
||||||
- name: enable btrfs-scan at boot
|
- name: enable btrfs-scan at boot
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
- name: lbu commit
|
- name: lbu commit
|
||||||
lbu:
|
lbu:
|
||||||
commit: true
|
commit: true
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
include:
|
include:
|
||||||
- /usr/local/sbin/pi_fan_hwpwm
|
- /usr/local/sbin/pi_fan_hwpwm
|
||||||
- /etc/init.d/pi_fan_hwpwm
|
- /etc/init.d/pi_fan_hwpwm
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
||||||
- name: add iomem=relaxed to cmdline.txt
|
- name: add iomem=relaxed to cmdline.txt
|
||||||
replace:
|
replace:
|
||||||
|
|
|
@ -94,4 +94,4 @@
|
||||||
exclude:
|
exclude:
|
||||||
- /home/rilla/.local/share/nvim
|
- /home/rilla/.local/share/nvim
|
||||||
- /home/rilla/.cache
|
- /home/rilla/.cache
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode == "diskless"
|
||||||
|
|
|
@ -30,4 +30,4 @@
|
||||||
exclude:
|
exclude:
|
||||||
- /var/lib/ansible/.ansible
|
- /var/lib/ansible/.ansible
|
||||||
- /var/lib/ansible/.ash_history
|
- /var/lib/ansible/.ash_history
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
|
@ -34,4 +34,4 @@
|
||||||
exclude:
|
exclude:
|
||||||
- /var/lib/builder/.ash_history
|
- /var/lib/builder/.ash_history
|
||||||
- /var/lib/builder/src
|
- /var/lib/builder/src
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
|
@ -26,4 +26,4 @@
|
||||||
- /var/lib/gopass
|
- /var/lib/gopass
|
||||||
exclude:
|
exclude:
|
||||||
- /var/lib/gopass/.ash_history
|
- /var/lib/gopass/.ash_history
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
|
@ -38,4 +38,4 @@
|
||||||
- /home/rilla
|
- /home/rilla
|
||||||
exclude:
|
exclude:
|
||||||
- /home/rilla/.ash_history
|
- /home/rilla/.ash_history
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode == "diskless"
|
||||||
|
|
|
@ -38,4 +38,4 @@
|
||||||
- /var/lib/woodpecker
|
- /var/lib/woodpecker
|
||||||
exclude:
|
exclude:
|
||||||
- /var/lib/woodpecker/.ash_history
|
- /var/lib/woodpecker/.ash_history
|
||||||
when: ansible_distribution == "Alpine" and use_lbu
|
when: ansible_distribution == "Alpine" and alpine_mode in ["diskless", "data"]
|
||||||
|
|
Loading…
Reference in New Issue