pongasoft / glu

Deployment Automation Platform
Apache License 2.0
518 stars 99 forks source link

Add Agent kickstart download #84

Open mingfang opened 13 years ago

mingfang commented 13 years ago

It would be great to have to ability to curl a agent tarball from the Console to kickstart the agent host. The idea is similar to the current ability to update the agent.

The kickstart tar ball should have all the configuration and keystores built-in so all I have to do is curl, untar, and start agent.

ypujante commented 13 years ago

The catch though is that the upgrade ability relies on the agent to already be installed as the console uses the REST api of the currently up and running agent. I am not entirely sure which protocol the console would use to install the agent on a remote host when there is no currently running agent. If you have suggestion including code, I would definitely like to hear about it!

Thanks

mingfang commented 13 years ago

As a prove of concept... 1-I simply tar up the entire agent-server directory. 2-put the agent-server.targz into the directory console-server/glu/reporitory/tgzs 3-on the host I want to install the agent I simply run the curl or wget command. e.g. curl -O http://:8080/glu/repository/tgzs/agent-server.targz 4-explode the tarball then I should be good to go.

mingfang commented 13 years ago

This issue/feature is related to #58. One easier setup is this

1-download console and start it up 2-connect to console web page and initiate the setup. 3-setup screen allows setting up admin user/password, fabric name, zookeeper port 4-setup will auto generate keys, create two packages/tarballs with all the keys and configs. 4a)one package should contain everything to run another zookeeper node 4b)one package to contain everything needed to run an agent 5)go to zookeeper or agent host and use browser/curl/wget to download the appropriate packages from the console

This makes a very clean and straightforward way to kickstart an entire glu system.

ypujante commented 13 years ago

I am away and have currently very limited email access. I will look into it whenever I have better connection hopefully in a couple of days

the agent upgrade package is already available from github download page so you can fetch it with curl. But having it also available from the console is a good idea On Aug 3, 2011 10:57 PM, "mingfang" < reply@reply.github.com> wrote:

This issue/feature is related to #58. One easier setup is this

1-download console and start it up 2-connect to console web page and initiate the setup. 3-setup screen allows setting up admin user/password, fabric name, zookeeper port 4-setup will auto generate keys, create two packages/tarballs with all the keys and configs. 4a)one package should contain everything to run another zookeeper node 4b)one package to contain everything needed to run an agent 5)go to zookeeper or agent host and use browser/curl/wget to download the appropriate packages from the console

This makes a very clean and straightforward way to kickstart an entire glu system.

Reply to this email directly or view it on GitHub: https://github.com/linkedin/glu/issues/84#issuecomment-1721716

ypujante commented 13 years ago

I agree with you that this issue is related to #58. I actually think that what you suggest in this ticket is a way to implement #58.

I actually really like the idea that you propose which is essentially to fire up the console and set everything up from there. Since the console can also act as a stupid http server then it can also serve all the packages necessary to install glu.

Thanks for making the suggestion!

I will look into implementing it when I get back (I am currently away on vacation). It is definitely not a trivial task (generating keys, packaging, etc...)