Modify

Ticket #747 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

Implemented in [d80e741961715582fda0c4379f5e7b563caaeba3] (SVN r5501). You can now specify build='false' in Actions to suppress their execution in build mode.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.