[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] [Training project][stratos] Cartridge Store for Stratos, REST communication plan with Pupp
From:       Lakmal Warusawithana <lakmal () wso2 ! com>
Date:       2014-05-30 9:14:47
Message-ID: CACNEwtPR=tduuMY6h91XU+5KZEYRsy4pGdiizWhGnKmx2U8zgw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


We should talk this in stratos dev not in the wso2 dev.


On Fri, May 30, 2014 at 2:15 PM, Roshan Wijesena <roshan@wso2.com> wrote:

> Hi,
>
> We are going to do  REST communication between Puppet Master's node and
> Stratos  Manager's node as described below.
>
> We will use webpy[1] simple python opensource framework in order to build
> our REST API to communicate with Puppet master's node. In order to achieve
> this we may follow below steps.
>
> 1. Install Webpy framework + our python REST API code  on Puppet Master's
> Computer. Initially we  have decided  to stay on Webpy's built in web
> server,but when we are getting more hits on our store we might need to
> install webpy on Light-httpd server or HTTPD server in order to handle more
> requests as they recommend it.
>
> 2. Indeed this service must be very secured as we are executing some root
> command using our API . For an example we need to extract puppet modules to
> puppet master's /etc/puppet/ folder!!. So our security plan is to use SSL
> with built in cherrypy server [2] and secure our API using a security token.
>
> 3. At last but not least we may create automation scripts in order to
> automate above steps.
>
> Here below I ll list some sample REST calls that we are going to shoot!
>
> List Current available puppet Modules - GET  https://{{Server}}/listmodules.
> (out put should be a json)
>
> Install a module - GET https://{{Server}}/install/{{Module-name}}.
>
> So this is our current plan for the integration and this is  open to
> discuss !!
>
> [1] http://webpy.org/
>
> [2] http://webpy.org/cookbook/ssl
>
> Thanks very much!
>
> --
> Best Regards,
> Senior Software Engineer-WSO2 Inc.
> Roshan Wijesena
> Mobile: *+94752126789*
> Email: roshan@wso2.com
> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
> lean.enterprise.middleware.
>



-- 
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/

[Attachment #5 (text/html)]

<div dir="ltr">We should talk this in stratos dev not in the wso2 dev.</div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 30, 2014 at 2:15 PM, \
Roshan Wijesena <span dir="ltr">&lt;<a href="mailto:roshan@wso2.com" \
target="_blank">roshan@wso2.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><font face="arial, \
sans-serif">Hi,</font><br><div \
style="font-family:arial,sans-serif;font-size:13px"><br> </div><div \
style="font-family:arial,sans-serif;font-size:13px">We are going to do   REST \
communication between Puppet Master&#39;s node and Stratos   Manager&#39;s node as \
described below.</div> <div \
style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">We will use webpy[1] simple \
python opensource framework in order to build our REST API to communicate with Puppet \
master&#39;s node. In order to achieve this we may follow below steps.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">1. Install Webpy framework + our \
python REST API code   on Puppet Master&#39;s Computer. Initially we   have decided   \
to stay on Webpy&#39;s built in web server,but when we are getting more hits on our \
store we might need to install webpy on Light-httpd server or HTTPD server in order \
to handle more requests as they recommend it.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">2. Indeed this service must be \
very secured as we are executing some root command using our API . For an example we \
need to extract puppet modules to puppet master&#39;s /etc/puppet/ folder!!. So our \
security plan is to use SSL with built in cherrypy server [2] and secure our API \
using a security token.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">3. At last but not least we may \
create automation scripts in order to automate above steps.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">Here below I ll list some sample \
REST calls that we are going to shoot!  </div><div \
style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">List Current \
available puppet Modules - GET   https://{{Server}}/listmodules. (out put should be a \
json)</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">Install a module - \
GET https://{{Server}}/install/{{Module-name}}.  </div><div \
style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">

So this is our current plan for the integration and this is   open to discuss \
!!<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">[1]  <a href="http://webpy.org/" \
target="_blank">http://webpy.org/</a></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">[2]  <a \
href="http://webpy.org/cookbook/ssl" \
target="_blank">http://webpy.org/cookbook/ssl</a></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div \
style="font-family:arial,sans-serif;font-size:13px">Thanks very much!</div><span \
class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr"> \
<span><font color="#888888"><div dir="ltr"> <div><div dir="ltr"><div><font \
style="color:rgb(136,136,136)" color="#888888" face="arial, sans-serif">Best \
Regards,</font></div><div> <font style="color:rgb(136,136,136)" color="#888888" \
face="arial, sans-serif">Senior Software Engineer</font><span><font \
color="#888888">-WSO2 Inc.</font></span></div><div><font \
style="color:rgb(136,136,136)" color="#888888" face="arial, sans-serif">Roshan \
Wijesena</font><br>

</div><div><div dir="ltr" style="color:rgb(136,136,136)"><font color="#888888" \
face="arial, sans-serif">Mobile:  </font><b style="font-size:small"><a \
value="+94716265766">+94752126789</a></b><br> </div><div dir="ltr" \
style="color:rgb(136,136,136)">Email: <a href="mailto:roshan@wso2.com" \
target="_blank">roshan@wso2.com</a><span \
style="font-family:arial,helvetica,sans-serif"><a value="+94773125935" \
style="color:rgb(17,85,204)"><br>


</a></span></div><div dir="ltr"><b><font color="#666666">WSO2, Inc. :</font></b><b \
style="font-family:&#39;trebuchet ms&#39;,sans-serif"><span \
style="font-weight:normal">  <a href="http://wso2.com/" style="color:rgb(17,85,204)" \
target="_blank">wso2.com</a></span></b><br>


</div></div><font color="#666666">lean.enterprise.middleware.</font></div></div><span></span></div></font></span></div>
 </font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Lakmal \
Warusawithana<div>Vice President, Apache Stratos<br><div>Director - Cloud \
Architecture; WSO2 Inc.</div><div>Mobile : +94714289692</div><div> Blog :  <a \
href="http://lakmalsview.blogspot.com/" \
target="_blank">http://lakmalsview.blogspot.com/</a><br><br></div></div></div> </div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic