Adds safe-reboot and safe-shutdown, removes all .sh extensions to scripts
This commit is contained in:
@@ -30,6 +30,13 @@ passwd:
|
||||
- wheel
|
||||
- name: zero
|
||||
storage:
|
||||
directories:
|
||||
- path: /etc/systemd/journald.conf.d
|
||||
mode: 0755
|
||||
user:
|
||||
name: root
|
||||
group:
|
||||
name: root
|
||||
disks:
|
||||
- device: /dev/disk/by-id/ata-WDC_WD120EFBX-68B0EN0_5QKYB19B
|
||||
wipe_table: false
|
||||
@@ -62,21 +69,29 @@ storage:
|
||||
- compress=zstd:3
|
||||
with_mount_unit: true
|
||||
files:
|
||||
- path: /opt/bin/enable-all-quadlets.sh
|
||||
- path: /opt/bin/enable-all-quadlets
|
||||
contents:
|
||||
local: init/enable-all-quadlets.sh
|
||||
local: init/enable-all-quadlets
|
||||
mode: 0755
|
||||
- path: /opt/bin/configure-firewalld.sh
|
||||
- path: /opt/bin/configure-firewalld
|
||||
contents:
|
||||
local: init/configure-firewalld.sh
|
||||
local: init/configure-firewalld
|
||||
mode: 0755
|
||||
- path: /opt/bin/add-secrets.sh
|
||||
- path: /opt/bin/add-secrets
|
||||
contents:
|
||||
local: files/add-secrets.sh
|
||||
local: files/add-secrets
|
||||
mode: 0755
|
||||
- path: /opt/bin/backup-postgres.sh
|
||||
- path: /opt/bin/backup-postgres
|
||||
contents:
|
||||
local: files/backup-postgres.sh
|
||||
local: files/backup-postgres
|
||||
mode: 0755
|
||||
- path: /opt/bin/safe-reboot
|
||||
contents:
|
||||
local: files/safe-reboot
|
||||
mode: 0755
|
||||
- path: /opt/bin/safe-shutdown
|
||||
contents:
|
||||
local: files/safe-shutdown
|
||||
mode: 0755
|
||||
- path: /etc/containers/systemd/samba.container
|
||||
contents:
|
||||
@@ -85,18 +100,18 @@ storage:
|
||||
mode: 0600
|
||||
contents:
|
||||
local: /home/root/.secrets
|
||||
- path: /root/scripts/move-downloads-nextcloud.sh
|
||||
- path: /root/scripts/move-downloads-nextcloud
|
||||
mode: 0755
|
||||
contents:
|
||||
local: /home/root/move-downloads-nextcloud.sh
|
||||
- path: /root/scripts/rclone-parents.sh
|
||||
local: /home/root/move-downloads-nextcloud
|
||||
- path: /root/scripts/rclone-parents
|
||||
mode: 0755
|
||||
contents:
|
||||
local: /home/root/rclone-parents.sh
|
||||
- path: /root/scripts/copy-music.sh
|
||||
local: /home/root/rclone-parents
|
||||
- path: /root/scripts/copy-music
|
||||
mode: 0755
|
||||
contents:
|
||||
local: /home/root/copy-music.sh
|
||||
local: /home/root/copy-music
|
||||
- path: /etc/ssh/sshd_config.d/99-custom
|
||||
mode: 0644
|
||||
contents:
|
||||
@@ -106,6 +121,11 @@ storage:
|
||||
overwrite: true
|
||||
contents:
|
||||
local: files/smartd.conf
|
||||
- path: /etc/systemd/journald.conf.d/rotation.conf
|
||||
mode: 0644
|
||||
overwrite: true
|
||||
contents:
|
||||
local: files/rotation.conf
|
||||
- path: /etc/sudoers.d/99-poweroff
|
||||
mode: 0644
|
||||
contents:
|
||||
|
||||
Reference in New Issue
Block a user