Currently I tried with CURL command.

Please note the bold arguments to the json I added. This feature needed to
be added to the CLI and UI.

curl -X POST -H "Content-Type: application/json" -d
'{"cartridgeInfoBean":{"cartridgeType":"php","alias":"phpa111","repoURL":"
https://github.com/lakwarus/testphp.git
","privateRepo":"true","repoUsername":"[email protected]
","repoPassword":"wso2123","autoscalePolicy":"economyPolicy","deploymentPolicy":"isuruh-ec2",
*"persistanceRequired":"true","size":10,"device":"/dev/sdc","removeOnTermination":"false"*}}'
-k -v -u admin:admin
https://ec2-54-254-43-232.ap-southeast-1.compute.amazonaws.com:9445/stratos/admin/cartridge/subscribe


On Fri, Feb 14, 2014 at 7:44 AM, Imesh Gunaratne <[email protected]> wrote:

> Great work Udara!
> How do we expose this functionality to the end user? Did we finalize the
> design?
>
> Thanks
>
>
> On Fri, Feb 14, 2014 at 7:23 AM, Udara Liyanage <[email protected]> wrote:
>
>> Hi,
>>
>> Was able to attach an volume to the instance in EC2. However I think we
>> need to create a file system manually as in [1]. I create the file system
>> as in [1] and able to mount the volume to the instance.
>>
>>  We can send the device name via payload, then agent create the file
>> system at the startup.
>>
>>
>> [1]
>> http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
>>  --
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>
>


-- 
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Reply via email to