refactor: move appended states to drop-in rc.local

This commit is contained in:
Ben Grande 2023-12-19 22:50:59 +01:00
parent 0751aff4b5
commit b4d142b640
38 changed files with 237 additions and 86 deletions

View file

@ -11,9 +11,13 @@ include:
- dev.home-cleanup
"{{ slsdotpath }}-start-ssh-on-boot":
file.append:
- name: /rw/config/rc.local
- source: salt://{{ slsdotpath }}/files/server/rc.local
file.managed:
- name: /rw/config/rc.local.d/50-sys-ssh.rc
- source: salt://{{ slsdotpath }}/files/server/rc.local.d/50-sys-ssh.rc
- mode: '0755'
- user: root
- group: root
- makedirs: True
"{{ slsdotpath }}-creates-home-ssh-dir":
file.directory:

View file

@ -1,2 +0,0 @@
systemctl unmask ssh
systemctl --no-block restart ssh

View file

@ -0,0 +1,8 @@
#!/bin/sh
# vim: ft=sh
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
systemctl unmask ssh
systemctl --no-block restart ssh