Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2010  / 2 Years ago, sat, august 20, 2022, 3:20:49

I know you can debug hooks in error state by running juju debug-hooks nodemane and then running juju resolved --retry nodename. Is it possible to run or rerun hooks that are not in an error state?



Thanks


More From » juju

 Answers
6

Yes using actions https://jujucharms.com/docs/1.20/actions



Actions are exposed as of Juju 1.23. In Juju 1.22, they are only enabled in the CLI when JUJU_DEV_FEATURE_FLAG=actions is set.



If you don't need the hooks to execute in a 'hook environment' then you can just execute them via ssh as a normal script.


[#20856] Monday, August 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laceanz

Total Points: 86
Total Questions: 113
Total Answers: 104

Location: Australia
Member since Thu, Jan 26, 2023
1 Year ago
;