Skip to content

Light-Gao/lightpaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to GitHub Pages

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.

Dependency

  • Ansible 1.7

File Structure

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.

common role

This is more like common settings on a Linux host, or you may say Linux OS.

zookeeper role

This is zookeeper installation role.

mesosphere role

This is a role which will install and setup docker, mesos, marathon.

How to Work?

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.

Individually

  • common -- As said above, it's a common setting role for linux host, you may coustomize it for yourself. This is just a guideline.
    Your hosts 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 and marathon. In this role definition, including local repository installation of docker, mesos and marathon.
    The hosts 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

Jointly

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!!!

Name from?

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?

Support or Contact

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.

About

A light-weight PaaS deployment script by Ansible.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published