2014-10-17 12:13:06 +00:00
|
|
|
## IndieHosters
|
|
|
|
|
2015-01-29 11:11:12 +00:00
|
|
|
This repository contains the configuration and scripts I use to control my servers.
|
2014-10-17 12:13:06 +00:00
|
|
|
|
2015-03-10 12:40:23 +00:00
|
|
|
### Tests
|
|
|
|
|
|
|
|
There is a script that provision 2 VMs on Vutlr for tests purpose.
|
|
|
|
|
|
|
|
#### Prerequisites
|
|
|
|
|
|
|
|
- have a [vultr account](http://www.vultr.com/?ref=6810586)
|
|
|
|
- have a [VULTR API KEY](https://my.vultr.com/settings/)
|
|
|
|
- have the [port 25 open](https://www.vultr.com/docs/what-ports-are-blocked) (if you want to test emails)
|
|
|
|
- have an [ssh key registered](https://my.vultr.com/sshkeys/)
|
|
|
|
|
|
|
|
#### Start tests
|
|
|
|
|
|
|
|
/!\ This is still in dev, use it at your own risk /!\
|
|
|
|
|
|
|
|
```
|
|
|
|
export VULTR_API_KEY=
|
2015-03-10 15:35:59 +00:00
|
|
|
./scripts/start.sh #need root access to modify your /etc/hosts
|
2015-03-10 12:40:23 +00:00
|
|
|
ssh root@server.test
|
|
|
|
cd /data/indiehosters
|
|
|
|
./tests/start.sh
|
2015-03-10 15:23:21 +00:00
|
|
|
./tests/email.sh
|
2015-03-10 12:40:23 +00:00
|
|
|
reboot
|
|
|
|
ssh root@server.test
|
|
|
|
./tests/stop.sh
|
|
|
|
exit
|
2015-03-10 15:35:59 +00:00
|
|
|
./scripts/stop.sh #need root access to modify your /etc/hosts
|
2015-03-10 12:40:23 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Most of the tests are "visual", but by reading them, it gives you an idea on how to start and stop services.
|
|
|
|
|
|
|
|
This is still work in progress, please feel free to contribute to it!
|
2014-09-26 12:57:09 +00:00
|
|
|
|