GitHub user aledsage opened a pull request:

    https://github.com/apache/brooklyn-server/pull/624

    Adds authSudo support (for sudo’ing with password)

    Required for some clouds (e.g. azure-arm), when using `useJcloudsSshInit: 
false`
    
    Tested on `azure-arm` using a location like that below (which previously 
failed):
    
    ```
    brooklyn.catalog:
      id: azure-arm-lon-centos7
      name: "Azure ARM UK South Centos 7.3"
      itemType: location
      item:
        type: jclouds:azurecompute-arm
        brooklyn.config:
          identity: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
          credential: xxxxxxxx
          endpoint: 
https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
          oauth.endpoint: 
https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/token
          jclouds.azurecompute.arm.publishers: OpenLogic
          jclouds.azurecompute.operation.timeout: 120000
      
          jclouds.compute.resourcename-prefix: myprefix
          useJcloudsSshInit: false
          destroyOnFailure: false
          machineCreateAttempts: 1
          logCredentials: true
    
          installDevUrandom: true
          osVersionRegex: 7.3
          region: uksouth
          minRam: 2000
          waitForSshable: 10m
          waitForConnectable: 10m
          user: myname
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aledsage/brooklyn-server add-authSudo

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/624.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #624
    
----
commit 0ef4256e76e787415c033e6dbdb6122922172f15
Author: Aled Sage <[email protected]>
Date:   2017-04-07T17:07:32Z

    Adds authSudo support (for sudo’ing with password)
    
    Required for some clouds (e.g. azure-arm), when using 
    `useJcloudsSshInit: false`

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to