Giter VIP home page Giter VIP logo

ansible's Introduction

Setup server

First you must have ansible, if you have not install it go to http://ansible.com/ then verify server via

git clone https://github.com/gsviec/ansible
cd ansible

ansible all  -m ping -i hosts/local/inventory

web01 | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

If you verfy false you need consider edit this line inveter host

web01 ansible_ssh_host=52.203.122.188 ansible_ssh_port=22

To be

web01 ansible_ssh_host=xxx.xxx.xxx ansible_ssh_port=22 ansible_ssh_user=vagrant ansible_ssh_pass=vagrant

Inside xxx.xxx.xxx is your server, ansible_ssh_user is username your sever. After that running followign command below:

ansible-playbook -i hosts/local/inventory playbook.yml

Setup specific role:

ansible-playbook -i hosts/local/inventory playbook.yml --tags "neo4j"

Setup minds frontend

cd /usr/share/nginx/
git clone https://github.com/Minds/minds.git
cd minds/ && sh init.sh
cd front
npm install
npm run build
composer install --no-dev
mkdir --parents --mode=0777 /tmp/minds-cache/
mkdir --parents --mode=0777 /data

Setup minds backend

php ./bin/regenerateDevKeys.php;

php bin/cli.php install --domain=lackky.dev --username=phanbook \
--password=phanbook \
 [email protected] \
  --private-key=/usr/share/nginx/minds/.dev/minds.pem \
   --public-key=/usr/share/nginx/minds/.dev/minds.pub  

mkdir -p /data/glusterfs/bricks

gluster volume create g-wordpress replica 2 transport tcp node2.glusterfs:/data/glusterfs/bricks node1.glusterfs:/data/glusterfs/bricks force

mount.glusterfs node1.glusterfs:/g-wordpress /srv/www

172.31.28.161 node1 172.31.19.213 node2

ansible's People

Contributors

duythien avatar eva-thientran avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

butonix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.