mirror of
https://github.com/ben-grande/qusal.git
synced 2025-09-25 18:50:51 -04:00
refactor: move appended states to drop-in rc.local
This commit is contained in:
parent
0751aff4b5
commit
b4d142b640
38 changed files with 237 additions and 86 deletions
|
@ -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:
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
systemctl unmask ssh
|
||||
systemctl --no-block restart ssh
|
8
salt/sys-ssh/files/server/rc.local.d/50-sys-ssh.rc
Executable file
8
salt/sys-ssh/files/server/rc.local.d/50-sys-ssh.rc
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue