ssh-keys-itfl-service.sls 515 Bytes
Newer Older
Martin Mai's avatar
-  
Martin Mai committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
barzXXX:
  ssh_auth.present:
    - user: root
    - source: salt://ssh_keys/XXX.id_rsa.pub
    - config: /root/.ssh/authorized_keys2
    - name: XXXX.id_rsa.pub
ba4sXXX:
  ssh_auth.present:
    - user: root
    - source: salt://ssh_keys/ba4slXXX.id_rsa.pub
    - config: /root/.ssh/authorized_keys2
test:
  ssh_auth.absent:
    - user: root
    - source: salt://ssh_keys/test-ssh.pub
    - config: /root/.ssh/authorized_keys2


    
#https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ssh_auth.html