Provisioning roles and script for Open Courts servers.
git clone --recursive git://github.com/otvorenesudy/otvorenesudy-server.git
brew install ansible hudochenkov/sshpass/sshpass
First, try out deployment on localhost with Vagrant by uncommenting vagrant's sysctl
settings in site.yml
.
ansible-playbook -i hosts-development site.yml --ask-pass # Vagrant password is vagrant, usually.
Make sure, that you use correct sysctl.kernel
attributes in site.yml
. If you're not sure about sysctl.kernel
attributes, just run ansible-playbook -i hosts setup.yml
.
Run provision.
ansible-playbook -i hosts site.yml
Note: You'll need the root password here or have your public key in .ssh/authorized_keys under root, as the root is used as a users to setup up the server.
Install monitoring as root by Netdata
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --nightly-channel --claim-token CLAIM_TOKEN --claim-url https://app.netdata.cloud
- Fork it
- Create your feature branch
git checkout -b new-feature
- Commit your changes
git commit -am 'Add some feature'
- Push to the branch
git push origin new-feature
- Create new Pull Request