MalloZup/ceph-open-terrarium

fix Salt hostname

Closed this issue · 5 comments

  • The Salt master needs to resolve all its Salt minions by their host names
  • All Salt minions need to resolve the Salt master by its host name.
  • All minions need to resolve other minions hosts.

and all minions need to resolve other minions,
I usually generate hosts file after deployed VMs, terraform output if using terraform

@markostanojlovic thx for feedback 💮

@markostanojlovic i am using also terraform here,

https://github.com/MalloZup/ceph-open-terrarium/blob/master/examples/libvirt/sles12sp3.tf#L79

with that i get VMs ips.

Then i have a python script that generate dinamically the roster file and some pillar data
https://github.com/MalloZup/ceph-open-terrarium/blob/master/salt/create_roster_and_pillar.py

Basically after deploying you call salt highstate.

( https://github.com/MalloZup/ceph-open-terrarium/tree/master/salt#install-ceph-prerequisites)

done