I run my salt-minion and salt-stack on a single machine with its hostname as HOSTNAME
. When salt-minion's key get accepted by the salt-master service, it appends localdomain
to the minion's hostname.
So, it looks like this,
Accepted Keys:
sk-box.localdomain
I expect,
Accepted Keys:
sk-box
And when i try to bootstrap with the listed name using the command salt-run manage.bootstrap hosts='sk-box.localdomain'
, it throws error as,
ssh: Could not resolve hostname : Name or service not known