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

[WIP] Parameterize the start effector #1128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ygy
Copy link
Contributor

@ygy ygy commented Jan 6, 2016

  • customize.skip as Brooklyn config key
  • if customize.skip is set to true for an entity the driver will
    skip the the customize commands
  • added skipInstallation as a parameter to the SoftwareProcess start
    effector
  • if skipInstallation is used during the start effector invoking
    install.skip and customize.skip parameters will be set to true so
    install and customize phases are skipped and only launch is
    executed

@ygy ygy force-pushed the feature/start-effector branch from 002937d to fa253d9 Compare January 7, 2016 15:43
@ygy ygy changed the title Parameterize the start effector [WIP] Parameterize the start effector Jan 7, 2016
- customize.skip as Brooklyn config key
- if customize.skip is set to true for an entity the driver will 
  skip the the customize commands
- added skipInstallation as a parameter to the SoftwareProcess start 
  effector
- if skipInstallation is used during the start effector invoking
  install.skip and customize.skip parameters will be set to true so
  install and customize phases are skipped and only launch is
  executed
@ygy ygy force-pushed the feature/start-effector branch from fa253d9 to 62bffcc Compare January 7, 2016 15:59
@ivanayov
Copy link
Contributor

LGTM

@@ -140,7 +141,10 @@ public void attachLifecycleEffectors(Entity entity) {
* the behaviour in this lifecycle class instance.
*/
public Effector<Void> newStartEffector() {
return Effectors.effector(Startable.START).impl(newStartEffectorTask()).build();
return Effectors.effector(Startable.START)
.parameter(StartSoftwareParameters.SKIP_INSTALLATION)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better place for this would be the SoftwareProcessDriverLifecycleEffectorTasks (overriding the method there), but given that the rest of the lifecycle effectors set their process related parameters here ok to stay here for consistency.

@neykov
Copy link
Member

neykov commented Jan 14, 2016

Overall it's a very useful thing to have when doing support. Don't like how the effector has side effects which will influence how future calls behave. Would be nice if the SKIP_CUSTOMIZE config is kept, but set out of the effector - either through curl of groovy.
nitpick - having the SKIP_CUSTOMIZE with identical behaviour to SKIP_INSTALL.

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

Successfully merging this pull request may close these issues.

3 participants