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

Add worker processer to run puppet agent #3

Open
everestx opened this issue Oct 7, 2015 · 2 comments
Open

Add worker processer to run puppet agent #3

everestx opened this issue Oct 7, 2015 · 2 comments

Comments

@everestx
Copy link
Contributor

everestx commented Oct 7, 2015

After the initial deployment to an app server, we want to initiate a puppet run. This would be in the 'deploy' task and before the 'touch tmp/restart.txt' or 'touch app_init.wsgi' actions.

The goal would be:

  1. Determine if the puppet run is needed (did mkdir create a new deploy_path)
  2. Run puppet (check exit code). Watch out puppet agent exit codes can be diverse
  3. Initiate passenger or wsgi restart only of the puppet agent run was successful
@rmb938
Copy link

rmb938 commented Oct 7, 2015

This all could be done very easily once the app types get moved to python classes. Currently with the json structure it is not very easy to do logic calculations.

@everestx
Copy link
Contributor Author

everestx commented Oct 7, 2015

Yes, but there's some consideration to be made on whether action/logic should live in the actual processors or in the task/actions. I'm still wrapping my own head around those on a case by case basis.

adamcstephens added a commit that referenced this issue Dec 23, 2015
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

2 participants