README.md 1.6 KB
Newer Older
1 2
## IndieHosters

3
This repository contains the configuration and scripts I use to control my servers.
4

Pierre Ozoux's avatar
Pierre Ozoux committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
### 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=
22
./scripts/start.sh
Pierre Ozoux's avatar
Pierre Ozoux committed
23 24 25
ssh root@server.test
cd /data/indiehosters
./tests/start.sh
Pierre Ozoux's avatar
Pierre Ozoux committed
26
./tests/email.sh
Pierre Ozoux's avatar
Pierre Ozoux committed
27 28 29
reboot
ssh root@server.test
./tests/stop.sh
30 31 32 33
# find out WordPress password:
journalctl -u web@*.test | grep to\ connect\ test
# find out piwik and owncloud password:
journalctl -u web@*.test | grep \'\>\>\ generated
Pierre Ozoux's avatar
Pierre Ozoux committed
34
exit
35
./scripts/stop.sh
Pierre Ozoux's avatar
Pierre Ozoux committed
36 37 38 39
```

Most of the tests are "visual", but by reading them, it gives you an idea on how to start and stop services.

40 41 42 43 44 45 46 47
Before running `./scripts/stop.sh`, you can use your browser to see the applications:

* https://wordpress.test/ user: test@test.org pass: as found with journalctl before
* https://owncloud.test/ user: test@test.org pass: as found with journalctl before
* https://piwik.test/ user: test@test.org pass: as found with journalctl before
* https://static.test/ (you will simply see the contents of server.test:/data/domains/static.test/static/www-content/index.html)
* https://known.test/ (you will be able to create a user there)

Pierre Ozoux's avatar
Pierre Ozoux committed
48
This is still work in progress, please feel free to contribute to it!
pierreozoux's avatar
pierreozoux committed
49