Commit graph

317 commits

Author SHA1 Message Date
Samuel Clay
1f7816f8ab Getting the old non-docker servers working in concert with the new ones. Now to give them all the shared firewall and install consul. 2021-02-23 15:53:46 -05:00
Samuel Clay
579f554208 Switching to dumb command for reloading haproxy. Needs a validate beforehand. 2021-02-23 14:42:16 -05:00
Samuel Clay
32eb8539c1 Attempting to get old inventory working with new, but its not yet resolving for hosts. Not sure why. Also reducing node docker image down. 2021-02-19 19:58:11 -05:00
Samuel Clay
c87d1c12bd Easiest way to both delete the default.conf and to insert our own is to call it default.conf. Hope that doesn't hurt things. Maybe this should be explicit. 2021-02-19 17:13:33 -05:00
Samuel Clay
7b9d7a0178 Exposing nginx ports. 2021-02-18 22:06:05 -05:00
Samuel Clay
cc76ab21db Splitting nginx into docker and consul due to hostname changes. 2021-02-18 22:00:54 -05:00
Samuel Clay
4ecbbd665f Firewall now includes every inventoried host. Should close off the now open ports. 2021-02-18 22:00:39 -05:00
Samuel Clay
18a2415d4a Changing consul to use public IPs. This should probably be undone when the old site is disconnected and consul can go back to using private IPs for everything. 2021-02-18 20:53:23 -05:00
Samuel Clay
56cea73a9c Beginning to add consul to old servers. 2021-02-18 18:59:00 -05:00
Samuel Clay
d498cca9e1 Handling multiple servers of the same name. Adding node-images for imageproxy. 2021-02-18 18:03:36 -05:00
Samuel Clay
237ba1a632 Better handling of letsnecrypt certificate generation, uploading when fails to renew. 2021-02-18 16:22:30 -05:00
Samuel Clay
599d8402b0 Fixing haproxy provisioning. 2021-02-18 15:53:28 -05:00
Samuel Clay
b06db8f0ba Cleaning up provisoning. 2021-02-18 14:40:11 -05:00
Samuel Clay
b6e0d835bd Renaming consul-manager to db-consul. Handling multiples in terraform by naming them with the droplet index. 2021-02-18 13:51:06 -05:00
Samuel Clay
95552c9415 Attempting to fix haproxy but dns still isn't resolving between container and host. 2021-02-17 21:44:47 -05:00
Samuel Clay
06bdbf48e9 Splitting task into four task servers. Renaming elasticsearch to db-elasticsearch. Working on HAProxy. 2021-02-17 21:07:12 -05:00
Samuel Clay
83143cb993 Adding local to inventory. 2021-02-17 19:42:16 -05:00
Samuel Clay
45391d3c55 Fixing consul manager ip script. 2021-02-17 16:56:41 -05:00
Samuel Clay
af58642ad5 Splitting out dnsmasq 2021-02-17 16:48:07 -05:00
Jonathan Math
a36b7334ce add reload consul handler to consul role... to be imported in other roles 2021-02-17 09:30:03 -05:00
Jonathan Math
dec910e425 become root user for creation of /etc/consul.d directory 2021-02-16 13:14:06 -05:00
Jonathan Math
ae240fd3b1 use ansible_hostname as service name for service registration of newsblur_web service so haproxy knows which server it should be routing to instead of any server named 'newsblur_web' 2021-02-16 13:13:29 -05:00
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