I am having a hard time with this.
nag...@srv.pub contains 2 public keys.
From the doc :
source: The source file for the key(s). Can contain any number of public keys, in standard "authorized_keys" format.
If this is set, comment, enc, and options will be ignored.
But on each attempt it only create the file with the latest pub key in the nag...@srv.pub
I try to avoid file.managed ATM simply because ssh_auth has been coded for that.
I also try with :
authorized_keys_srv1:
ssh_auth.present:
- user: nagios
- source:
- salt://ssh/files/nag...@srv1.pub
authorized_keys_srv2:
ssh_auth.present:
- user: nagios
- source:
- salt://ssh/files/nag...@srv2.pub
Same problem. The file only contains nag...@srv2.pub public key
Any idea ?
tx