Setup: fail2ban selinux firewall influxdb grafana collectd rabbitmq nginx (https TBC) letsencrypt (self-signed)
Tested on CentOS 7, but should work on other linux distro if you had the correct deps.
| Key | Type | Description | Default |
|---|---|---|---|
| ['name'] | String | Node name | |
| ['inter_username'] | String | Username used between different components | |
| ['inter_password'] | String | Password used between different components | |
| ['ddns_token'] | String | Token used to update duckdns.org -- Sorry this is hardcoded for now | |
| ['ddns'] | String | Domain for duckdns.org -- Sorry this is hardcoded for now | duckdns.org |
- Install Chef dk
- Clone this repo https://github.com/chaton78/homeOS.git
- Update solo.rb and web.json (for each node) to your liking
- Run this:
berks packageUpload cookbooks-*.tar.gz, web.json and solo.rb to your new VPS.
Force some setting, (we are using cloud at cost)
nmcli con mod "System eth0" ipv4.dns "8.8.8.8 8.8.4.4"
hostname YOUR_HOSTNAME
hostnamectl set-hostname YOUR_HOSTNAME --transientUpdate your image, take a coffee.. this is C@C.
yum -y updateInstall chef
curl -L https://www.opscode.com/chef/install.sh | bashUntar-ungzip your cookbooks
Create or upload the following keys and cert:
/etc/keys/ca.crt # You ca.crt used to sign your cert
/etc/keys/server.crt #Unique server cert (used by rabbitmq)
/etc/keys/server.key #Private key for your server
Run
chef-solo -c solo.rb -j web.jsonAuthor:: Pascal Larin plarin@gmail.com