Modify ↓
Ticket #747 (closed defect: fixed)
add attribute to Action type to specify which service mode this action is NOT allowed to run in.
Reported by: | tcampbel | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
Because I have to run with "-s build" during kickstart to work around an odd hang were experiencing, our environment isn't getting fully populated so that some of my Actions may not work correctly (the details of this are irrelevant to this discussion).
I'd like to be able to state in my Action something like servicemode="build" so that I can force an action to not run during this mode.
Currently, I have to do a hack via setting an environment variable before bcfg2 runs during kickstart %post and then check for the existence of this environment variable in every script where it's important to check. This is needlessly tedious and forces everyone writing custom actions to remember to do this.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Implemented in [d80e741961715582fda0c4379f5e7b563caaeba3] (SVN r5501). You can now specify build='false' in Actions to suppress their execution in build mode.