Commit graph

595 commits

Author SHA1 Message Date
Jonathan Math
859de6e0ce template haproxy.cfg file to use ssh key variable from the letsencrypt role, finish the haproxy file 2021-02-16 13:11:26 -05:00
Jonathan Math
84d33070e0 undo changes to base role 2021-02-16 12:26:55 -05:00
Jonathan Math
6044f17f14 add restart for systemd-resolved and stop for dnsmasq at the beginning of the base role. This would be necessary in case the rtask was running a second time and dnsmasq would cause the subsequent tasks to fail 2021-02-15 19:30:29 -05:00
Jonathan Math
9f6ecf98bb add ensure for /etc/consul.d directory before creating config file. Also delegate get_consul_manager_ip.py to localhost 2021-02-15 19:27:32 -05:00
Jonathan Math
c9547063d0 registering elasticsearch service in consul 2021-02-15 19:25:49 -05:00
Jonathan Math
54a742915c registering redis services in consul 2021-02-15 19:23:14 -05:00
Jonathan Math
f81390bf8a registering task services in consul 2021-02-15 19:21:53 -05:00
Jonathan Math
3d08e2877e fix get_consul_manager_ip.py script so that it gets the IP of consul-manager0 2021-02-15 19:17:28 -05:00
Jonathan Math
710fedcf23 registering node services in consul 2021-02-15 19:16:08 -05:00
Jonathan Math
61c8e70735 registering monitor and haproxy service in consul 2021-02-15 19:14:33 -05:00
Jonathan Math
3989833a5d registering postgres service in consul 2021-02-15 19:13:23 -05:00
Jonathan Math
bf57ef040f registering mongo service in consul 2021-02-15 19:13:05 -05:00
Samuel Clay
76d02086f9 Registering newsblur_web service in consul. 2021-02-11 21:28:45 -05:00
Samuel Clay
ca60d8486e Using private VPC ips for every consul server. 2021-02-11 20:59:07 -05:00
Samuel Clay
0ac6341756 Consul now all setup. Needs services. 2021-02-11 20:44:57 -05:00
Samuel Clay
e1b0c0f8e8 Adding dnsmasq and disabling systemd-resolved. Consul clients and servrs are now being setup, although there ar ehealth check issues still unresolved. 2021-02-11 19:39:46 -05:00
Samuel Clay
aafe61d079 Starting both manager and agent. Needs a daemonization since it eats ansible right now. 2021-02-10 19:50:48 -05:00
Samuel Clay
33fd3614a4 Adding git config and ssh config to base. 2021-02-10 18:48:00 -05:00
Samuel Clay
fcee1c44f5 Adding consul role to all top level provisioners. 2021-02-10 18:43:47 -05:00
Samuel Clay
de324f58e2 Writing consul-manager IP to /srv/newsblur/consul/consul_manager_ip.txt 2021-02-10 18:38:38 -05:00
Samuel Clay
fea48eeab4 Fixing permissions error 2021-02-10 17:39:49 -05:00
Samuel Clay
eb7e6bc534 Rearranging code 2021-02-10 17:11:28 -05:00
Jonathan Math
0cac1d51d5 add consul role for consul installation 2021-02-10 17:00:57 -05:00
Jonathan Math
1338eedeb1 fix node role so that there will be one container per node machine and it will be the one expected 2021-02-10 16:59:48 -05:00
Jonathan Math
78b0b68e95 add role to run consul-client outside of a container 2021-02-10 16:58:24 -05:00
Jonathan Math
4d18fda280 consul-manager roleto run outside of a container 2021-02-10 16:57:54 -05:00
Samuel Clay
4981978046 Updating keys to fix haproxy. 2021-02-08 22:40:06 -05:00
Samuel Clay
e72488bd93 Updating haproxy config, updating DB motd, and finishing up letsencrypt ansible role. 2021-02-08 22:21:03 -05:00
Samuel Clay
f02f43dd18 New Lets Encrypt role, uses DNSimple token. 2021-02-08 20:49:55 -05:00
Samuel Clay
94d900aedc Working on inventories. 2021-02-08 19:22:51 -05:00
Samuel Clay
1901561fa0 Ensuring droplets are created. Fixing a few TF naming issues. 2021-02-08 17:10:33 -05:00
Samuel Clay
f2a37c85fe Fixing issue with droplets not being available once created. 2021-02-08 15:57:00 -05:00
Jonathan Math
6a2a33d5ad correct name of consul-manager docker container 2021-02-08 14:25:15 -05:00
Jonathan Math
71de3a27b9 fix redis role. It was previously trying to set up four containers in each of the redis machines. 2021-02-08 14:24:33 -05:00
Jonathan Math
b4f9908e0f fix consul-client role so that it doesnt break the terraform apply command. It needs to be fixed in the near future to join with the correct IP. 2021-02-08 14:22:22 -05:00
Jonathan Math
18131a8086 fix setup_redis.yml so that it is targeting the db-redis group 2021-02-08 14:20:14 -05:00
Jonathan Math
3e50b38ba1 fix provision.yaml 2021-02-08 14:18:55 -05:00
Jonathan Math
bc1eec3196 remove ansible/digitalocean.py and provision.py as they are no longer used 2021-02-08 14:17:35 -05:00
Jonathan Math
6d421cbc3a add python script to check ssh connection for a droplet 2021-02-08 14:15:23 -05:00
Jonathan Math
76e9ec223b add ansible/archive dir with do_inventory.py 2021-02-08 14:14:58 -05:00
Jonathan Math
fb9e165ec6 add consul-client role to www server 2021-02-04 15:42:45 -05:00
Jonathan Math
7982f905ad add setup_consul_manager.yml 2021-02-04 15:40:26 -05:00
Jonathan Math
ca7d58ec8f remove consul-manager role from setup_www.yml 2021-02-04 15:38:33 -05:00
Jonathan Math
0b30896d5d fix db-redis syntax in digital_ocean.yml 2021-02-04 15:37:46 -05:00
Jonathan Math
807d13afc9 fix provision.yml 2021-02-04 15:37:26 -05:00
Jonathan Math
4387cbf72e fix consul-client role for setup_mongo.yml 2021-02-04 14:35:59 -05:00
Jonathan Math
01ddac0480 add provision.yml (not working) and alternative provision.py 2021-02-04 14:20:54 -05:00
Jonathan Math
c7df220d11 change consul role to consul-client 2021-02-04 11:09:41 -05:00
Jonathan Math
0a8b98bbc5 Merge branch 'dashboard3' of https://github.com/samuelclay/NewsBlur into dashboard3 2021-02-04 11:06:16 -05:00
Jonathan Math
01c31454b4 stub in WIP consul role changes 2021-02-04 11:06:02 -05:00