.
This commit is contained in:
parent
bb70c7e43f
commit
1a6f230702
2
salt/pillars/ssh.sls
Normal file
2
salt/pillars/ssh.sls
Normal file
@ -0,0 +1,2 @@
|
||||
ssh:
|
||||
user-pub-keys: []
|
@ -6,6 +6,7 @@ base:
|
||||
- rmt
|
||||
- docker
|
||||
- remote-desktop
|
||||
- ssh
|
||||
{% if salt['pillar.file_exists']('local.sls') %}
|
||||
- local
|
||||
{% endif %}
|
||||
|
7
salt/states/ssh/init.sls
Normal file
7
salt/states/ssh/init.sls
Normal file
@ -0,0 +1,7 @@
|
||||
{% if pillar['ssh']['user-pub-keys'] %}
|
||||
{{ pillar['username'] }}_autherized_keys:
|
||||
ssh_auth:
|
||||
- present
|
||||
- user: {{ pillar['username'] }}
|
||||
- names: {{ pillar['ssh']['user-pub-keys'] }}
|
||||
{% endif %}
|
@ -81,6 +81,7 @@ class Main:
|
||||
"rmt-server-mirror.timer",
|
||||
"rmt-server-systems-scc-sync.timer",
|
||||
"atftpd.socket",
|
||||
"dnsmasq",
|
||||
"mariadb"
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user