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

postrun after deploying a module #982

Closed
amateo opened this issue Sep 18, 2019 · 14 comments
Closed

postrun after deploying a module #982

amateo opened this issue Sep 18, 2019 · 14 comments
Labels

Comments

@amateo
Copy link

amateo commented Sep 18, 2019

There is a postrun option that enables running a script after deploying an environment. But this script is not run after deploying a module (not an environment).
I think it would be useful to be able to run this script after deploying a module.

@chrisongthb
Copy link

We need this feature, too. Any news here?

@packetcafe
Copy link

+1 for this feature.. it would be really handy for the postrun to run for all deployment include a single module.

@github-actions
Copy link

This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label May 11, 2021
@chrisongthb
Copy link

This issue is still important to us.

@github-actions github-actions bot removed the stale label May 13, 2021
@github-actions
Copy link

This issue has been marked stale because it has had no activity for 60 days. The Puppet Team is actively prioritizing existing bugs and new features, if this issue is still important to you please comment and we will add this to our backlog to complete. Otherwise, it will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 13, 2021
@kendall-moore
Copy link

+1 for this feature. Deploying a module is still a deployment, so there's no reason postrun shouldn't be triggered.

@packetcafe
Copy link

+1 I'm also waiting for the feature, it not stable at all!.

@github-actions github-actions bot removed the stale label Jul 15, 2021
@Magisus
Copy link
Collaborator

Magisus commented Jul 19, 2021

Agreed, this should be fixed. Related jira ticket: https://tickets.puppetlabs.com/browse/RK-369

@Magisus
Copy link
Collaborator

Magisus commented Jul 20, 2021

The postrun command for environments will read a variable $modifiedenvs and sub in the environments being deployed. We probably want to respect this for deploy module too, but should it only supply environments that were both requested and actually had the module in question? Or all requested envs, regardless of whether they were actually updated?

@alexjfisher
Copy link
Contributor

Preferably, just the environments that were updated?

@Magisus
Copy link
Collaborator

Magisus commented Jul 21, 2021

Cool, that makes sense to me too.

@Magisus
Copy link
Collaborator

Magisus commented Jul 22, 2021

If it turns out that no environments were actually updated (e.g. because none of the requested ones contained the module), do we still want to run the command at all? Or only if it does not include $modifiedenvs?

@Magisus
Copy link
Collaborator

Magisus commented Jul 23, 2021

I have a PR up that only runs the command if any envs actually synced modules, and populates $modifiedenvs with the changed environments, see #1190. Still working on tests but would appreciate thoughts on the approach and functionality.

@Magisus
Copy link
Collaborator

Magisus commented Jul 28, 2021

This has been merged, and will be released soon (in the next month), or we could do sooner if there's interest, please let us know. Also if anyone has any issues with it or needs any tweaks to the functionality.

@Magisus Magisus closed this as completed Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants