Clean the parameters in the repo
We started to put all parameters in a file. Now we have a better idea of the layout, I think we would benefit a little bit of cleaning.
My proposal would be:
- We put all default parameters the
group_hosts
file (the ones defined here: https://git.startinblox.com/infra/platform/blob/master/hosts.yml#L13) - We keep the "accounts vars" to override them (https://git.startinblox.com/infra/platform/blob/master/hosts.yml#L56)
I have one specific issue I don't know how to deal with. I defined a prosody
var here: https://git.startinblox.com/infra/platform/blob/prosody/hosts.yml#L11
I can't put it in the astral_accounts.vars
part because those variable are used with a delegate_to
statement here: https://git.startinblox.com/infra/platform/blob/prosody/roles/prosody/tasks/create_configuration.yml#L2 So they wouldn't be accessible from the hostvars.
But I would like to override them from the account definition (https://git.startinblox.com/infra/platform/blob/prosody/hosts.yml#L67)
@chris I would like to discuss this with you to make sure we are not breaking anything. We will need in the future to deploy on other servers than astral. Would you have time on monday morning or tuesday to talk about this ?