Glad to meet you guys here, below is the details about lightpaas.
Even people who clone this project would follow the Apache Linsence, but never mind, just treat it as your own.
I will be happy if this helps you.
- Ansible 1.7
I don't put any hosts
file in this repo(so far), so what you could see are just roles seeming like individually.
And I will say, that's it. You may use one of these roles to apply, certainly more than one will be also worked. But please follow guide below. I am not trying to confuse you guys here.
This is more like common settings on a Linux host, or you may say Linux OS.
This is zookeeper installation role.
This is a role which will install and setup docker
, mesos
, marathon
.
You may use those roles individually, i.e., you may just execute deployment of zookeeper
or mesosphere
, even common
.
But make sure you understand the dependency rules among them.
- common -- As said above, it's a common setting role for linux host, you may coustomize it for yourself. This is just a guideline.
Yourhosts
file may like below:
[paas]
10.10.100.1
10.10.100.2
10.10.100.3
[vsftpd]
10.10.100.1
[ntpserver]
10.10.100.3
The group paas
will be used in playbook shown below, but groups vsftpd
and ntpserver
are used in tasks/main.yaml
, which control the right timer to execute corresponding task(s).
And if you wanna coustomize parameters for common setting, just have a look at defaults/main.yaml
file.
Then, playbook for common role may like:
- hosts: paas
remote_user: root
roles:
- common
- zookeeper -- A zookeeper installation role. It relies on tarball of JDK and Zookeeper, which means we can only install them from tarball. I will update it soon, please give a while. Then, the
hosts
file may like below:
[zookeeper]
10.10.100.1
10.10.100.2
10.10.100.3
And playbook:
- hosts: zookeeper
remote_user: root
roles:
- zookeeper
Make sure you have prepared tarballs for jdk and zookeeper in the right directory defined in defaults/main.yaml
file.
- mesosphere -- A installation role for
docker
,mesos
andmarathon
. In this role definition, including local repository installation ofdocker
,mesos
andmarathon
.
Thehosts
file may like below:
[paas]
10.10.100.1
10.10.100.2
10.10.100.3
[master]
10.10.100.131
10.10.100.132
10.10.100.133
[slave]
10.10.100.131
10.10.100.132
10.10.100.133
And playbook:
- hosts: paas
remote_user: root
roles:
- mesosphere
Maybe I shouldn't waste my tongue, you could put them(wirten above) together, it will work.
The hosts
file maybe like below:
[paas]
10.10.100.1
10.10.100.2
10.10.100.3
[vsftpd]
10.10.100.1
[ntpserver]
10.10.100.3
[zookeeper]
10.10.100.1
10.10.100.2
10.10.100.3
[master]
10.10.100.131
10.10.100.132
10.10.100.133
[slave]
10.10.100.131
10.10.100.132
10.10.100.133
The playbook may like below:
- hosts: paas
remote_user: root
roles:
- common
- hosts: zookeeper
remote_user: root
roles:
- zookeeper
- hosts: paas
remote_user: root
roles:
- mesosphere
Enjoy!!!
My name is a special word in Chinese, it could be found in English exactly —— Highlight.
But in China, we put family name in front of given name, so it becomes —— High·Light.
So it is obviously, I choose Light as my first name in English, and keep Family name as it is in Chinese —— Gao.
Now, back to this project, lightpaas, which means Light's PaaS. Yeah, got it?
This is a totally personal project, so I am not sure that it could be updated continously. But I will try my best.
If you meet some bug(s), please contact me([email protected]) without hesitate.
Thanks for your help.