brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-docs pull request #95: Instructions on setup.script
Date Thu, 21 Jul 2016 16:37:49 GMT
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-docs/pull/95#discussion_r71740787
  
    --- Diff: guide/ops/locations/_clouds.md ---
    @@ -174,9 +174,18 @@ For more keys and more detail on the keys below, see
     - Use `dontCreateUser` to have Brooklyn run as the initial `loginUser` (usually `root`),
       without creating any other user.
     
    -- A post-provisioning `setup.script` can be specified (as a URL) to run an additional
script,
    -  before making the `Location` available to entities,
    -  optionally also using `setup.script.vars` (set as `key1:value1,key2:value2`)
    +- A post-provisioning `setup.script` can be specified to run an additional script, before
making the `Location` 
    +  available to entities. This may take the form of a URL of the script or a [base64](https://en.wikipedia.org/wiki/Base64)

    +  encoded script with the prefix `data:text/plain;base64,` to denote this. 
    +  For example if you wanted to disable a yum repository called `reponame` prior to using
the machine, you could use the following command:
    +  
    +  `sudo yum-config-manager --disable reponame`
    +    
    +  Once base64 encoded (with a tool such as [this](https://www.base64encode.org/)), plus
the prefix, this property would be:
    +
    +  `setup.script: data:text/plain;base64,c3VkbyB5dW0tY29uZmlnLW1hbmFnZXIgLS1kaXNhYmxlIHJlcG9uYW1l`
    +
    +  Optionally `setup.script.vars` can also be used to set variables (set as `key1:value1,key2:value2`)
    --- End diff --
    
    Worth an example of this?


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