saltstack-formulas / hostsfile-formula

Use minion IDs to keep /etc/hosts and hostnames consistent for clusters without DNS
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
33 stars 89 forks source link

not compatible with Salt Cloud Linode provider #22

Closed blbradley closed 6 years ago

blbradley commented 6 years ago

Salt Cloud's Linode provider has strict rules on the label used for a VM's name:

[WARNING ] A Linode label may only contain ASCII letters or numbers, dashes, and underscores, must begin and end with letters or numbers, and be at least three characters in length.

Because dots are not allowed, a full domain name cannot be set as the minion ID. This is incompatible with the requirement of matching the minion ID to the FQDN.

I'll attempt to add an option to improve this.

johnkeates commented 6 years ago

Does Linode allow dots?

blbradley commented 6 years ago

No. I'm not sure if the restriction is due to the Salt Cloud implementation or the Linode API.