MalloZup / ceph-open-terrarium

ceph-open-terrarium: deploy with terraform-libvirt ceph cluster.. Configure with saltstack or ansible.

Home Page:https://github.com/MalloZup/ceph-open-terrarium/projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix Salt hostname

MalloZup opened this issue · 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)