You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@provisionr.apache.org by "Andrei Savu (JIRA)" <ji...@apache.org> on 2013/04/04 11:03:15 UTC

[jira] [Commented] (PROVISIONR-26) Ability to launch commands without using provisionr console

    [ https://issues.apache.org/jira/browse/PROVISIONR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621945#comment-13621945 ] 

Andrei Savu commented on PROVISIONR-26:
---------------------------------------

The best way to do this is to start a Provisionr instance in the background and issue commands using the client utility like this:

{noformat}
./bin/start
echo 1 
./bin/client provisionr:create --id amazon --key demo ...
echo 2 
{noformat}

This is actually the only way to keep the execution fast enough - it takes a while to start all the services.
                
> Ability to launch commands without using provisionr console
> -----------------------------------------------------------
>
>                 Key: PROVISIONR-26
>                 URL: https://issues.apache.org/jira/browse/PROVISIONR-26
>             Project: Provisionr
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Tudor Rogoz
>
> I need a solution for running provisionr commands (like creating a new pool of machines) in a scriptable way.
> Is there a way to do that from a bash script for example (like bellow)?
> {code}
> // running in main console
> echo test1
> ./provisionerclient --eval "provisionr:create --id amazon --key demo --size 10 --hardware-type m1.small --template cdh4 --timeout 1200"
> //returns to the main console
> echo test2
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira