brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #230: Fix setting the hostname on non-centos ma...
Date Wed, 06 Jul 2016 08:56:01 GMT
Github user neykov commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/230#discussion_r69695478
  
    --- Diff: locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
---
    @@ -924,9 +924,10 @@ protected MachineLocation obtainOnce(ConfigBag setup) throws NoMachinesAvailable
                             executeCommandThrowingOnError(
                                     (SshMachineLocation)machineLocation,
                                     "Generate hostname " + node.getName(),
    -                                Arrays.asList("sudo hostname " + node.getName(),
    -                                        "sudo sed -i \"s/HOSTNAME=.*/HOSTNAME=" + node.getName()
+ "/g\" /etc/sysconfig/network",
    -                                        "sudo bash -c \"echo 127.0.0.1   `hostname` >>
/etc/hosts\"")
    +                                ImmutableList.of(BashCommands.chainGroup(
    +                                        "sudo bash -c \"echo 127.0.0.1   " + node.getName()
+ " >> /etc/hosts\"",
    --- End diff --
    
    Good suggestion, will implement it.


---
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