Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidating all three of the master's environments, "master", "bootstrap", and "master-bootstrap" #8

Open
arizvisa opened this issue Aug 6, 2020 · 0 comments

Comments

@arizvisa
Copy link
Owner

arizvisa commented Aug 6, 2020

When building the SaltStack cluster on a master, the "master", "bootstrap", and "master-bootstrap" (for masterless) environments are used to ensure each member is provisioned properly to work with the cluster. This poses an issue as the target is written using the "base" environment and so these two environments need to be combined in some way. Although these three environments should never change except when updating the non-project-specific components, the way that they're presently organized makes it difficult to process and update independantly from the target's states that reside in the "base" environment.

If the combination of these is a possibility, then we could always have templates running with the "master" role apply the "base" environment for any target-specific provisioning which will remove the need for the user to manually apply their target-specific provisioning on deployment.

It might actually be possible to use the "master" environment only during bootstrap which will then switch its default environment to "base" similar to how the "bootstrap" environment works. After applying the "master" environment, the master's minion can update its environment and then cycle its service, so that it's completely switched into the "base" environment. This way once the "master" environment has been properly provisioned, it can then apply any target-specific provisioning. This switching of the environment should only be temporary so that the "master" environment is _always_ applied on first boot.

@arizvisa arizvisa changed the title Consolidating all three of SaltStack environments, "master", "bootstrap", and "master-bootstrap". Consolidating all three of SaltStack's environments, "master", "bootstrap", and "master-bootstrap". Aug 6, 2020
@arizvisa arizvisa changed the title Consolidating all three of SaltStack's environments, "master", "bootstrap", and "master-bootstrap". Consolidating all three of the master's environments, "master", "bootstrap", and "master-bootstrap". Aug 6, 2020
@arizvisa arizvisa changed the title Consolidating all three of the master's environments, "master", "bootstrap", and "master-bootstrap". Consolidating all three of the master's environments, "master", "bootstrap", and "master-bootstrap" Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant