brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From duncangrant <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: Rabbit mq management flag
Date Tue, 07 Apr 2015 15:51:36 GMT
Github user duncangrant commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/584#discussion_r27891098
  
    --- Diff: software/messaging/src/main/java/brooklyn/entity/messaging/rabbit/RabbitSshDriver.java
---
    @@ -124,11 +125,21 @@ public void install() {
         @Override
         public void customize() {
             Networking.checkPortsValid(MutableMap.of("amqpPort", getAmqpPort()));
    -        newScript(CUSTOMIZING)
    -                .body.append(
    -                    format("cp -R %s/* .", getExpandedInstallDir())
    -                )
    -                .execute();
    +        ScriptHelper scriptHelper = newScript(CUSTOMIZING);
    +
    +        scriptHelper.body.append(
    +                format("cp -R %s/* .", getExpandedInstallDir())
    +        );
    +
    +        if (Boolean.TRUE.equals(entity.getConfig(RabbitBroker.ENABLE_MANAGEMENT_PLUGIN)))
{
    +            scriptHelper.body.append(
    +                    "./sbin/rabbitmq-plugins enable rabbitmq_management"
    +            );
    +        }
    +        scriptHelper.failOnNonZeroResultCode();
    +        scriptHelper.execute();
    +
    +        copyTemplate(entity.getConfig(RabbitBroker.CONFIG_TEMPLATE_URL), getConfigPath()
+ ".config");
    --- End diff --
    
    It's intentional - I don't know why but rabbitmq adds the .config to the RABBITMQ_CONFIG_FILE
env variable


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message