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

Issue with db schema load #118

Open
estahn opened this issue Apr 21, 2016 · 0 comments
Open

Issue with db schema load #118

estahn opened this issue Apr 21, 2016 · 0 comments

Comments

@estahn
Copy link

estahn commented Apr 21, 2016

Premise: Our saltmaster is stateless, so we can just delete the machine our autoscaling group will recreate it and all minions going to connect.

Our saltmaster will create the database, setup users and fetches the mysql dump from s3 and load it.

If i understand the SLS correctly schema load ({{ state_id }}_load) will always be triggered when the schema file is being handled ({{ state_id }}_schema). This is because of - watch: - file: {{ state_id }}_schema.

Is this expected behaviour? Once the database is created it should load the schema. It shouldn't load the schema file or execute another schema import.

Thoughts?

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