You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Raghavendra Rangrej (rrangrej)" <rr...@cisco.com> on 2014/08/22 15:07:00 UTC
payload in vcloud
Hi ,
Last time I worked on vcloud cartridges, I knew the payload was being sent as customizatiom script as
#!/bin/sh
mkdir -p /tmp/payload
echo "PAYLOAD" > /tmp/payload/launch-params
/root/bin/init-vcloud.sh > /tmp/puppet_log
Is it same or has it changed?
In my today’s attempt I see a file called bootstrap is created in $HOME which seems to be doing similar things as earlier customize script way.
If this is the way, how is the file sent to cartridge? With puppet or say scp?
Any inputs on how the payload is sent in the latest code of stratos for vcloud payload?
Regards
Raghavendra
Re: payload in vcloud
Posted by Chamila De Alwis <ch...@wso2.com>.
It seems from the documentation[1] that user-data is retrieved in the same
manner. org.apache.stratos.cloud.controller.iaases.VCloudIaas replaces the
string PAYLOAD with the payload string retrieved from the IaaS.
[1] -
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Creating+a+Cartridge+on+vCloud
Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
On Fri, Aug 22, 2014 at 6:37 PM, Raghavendra Rangrej (rrangrej) <
rrangrej@cisco.com> wrote:
> Hi ,
>
>
>
> Last time I worked on vcloud cartridges, I knew the payload was being sent
> as customizatiom script as
>
>
>
> #!/bin/sh
>
> mkdir -p /tmp/payload
>
> echo "PAYLOAD" > /tmp/payload/launch-params
>
> /root/bin/init-vcloud.sh > /tmp/puppet_log
>
>
>
> Is it same or has it changed?
>
>
>
> In my today’s attempt I see a file called bootstrap is created in $HOME
> which seems to be doing similar things as earlier customize script way.
>
> If this is the way, how is the file sent to cartridge? With puppet or say
> scp?
>
>
>
> Any inputs on how the payload is sent in the latest code of stratos for
> vcloud payload?
>
>
>
> Regards
>
> Raghavendra
>
Re: payload in vcloud
Posted by Nirmal Fernando <ni...@gmail.com>.
Adding Melan and Vinod since they worked on the Vcloud enhancements lately
and I can't find any evidence for such a change.
On Fri, Aug 22, 2014 at 6:37 PM, Raghavendra Rangrej (rrangrej) <
rrangrej@cisco.com> wrote:
> Hi ,
>
>
>
> Last time I worked on vcloud cartridges, I knew the payload was being sent
> as customizatiom script as
>
>
>
> #!/bin/sh
>
> mkdir -p /tmp/payload
>
> echo "PAYLOAD" > /tmp/payload/launch-params
>
> /root/bin/init-vcloud.sh > /tmp/puppet_log
>
>
>
> Is it same or has it changed?
>
>
>
> In my today’s attempt I see a file called bootstrap is created in $HOME
> which seems to be doing similar things as earlier customize script way.
>
> If this is the way, how is the file sent to cartridge? With puppet or say
> scp?
>
>
>
> Any inputs on how the payload is sent in the latest code of stratos for
> vcloud payload?
>
>
>
> Regards
>
> Raghavendra
>
--
Best Regards,
Nirmal
Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.
Blog: http://nirmalfdo.blogspot.com/