Commit graph

595 commits

Author SHA1 Message Date
Samuel Clay
05afdce691 Fixing search indexing. Also removing superfluous search_indexer_tasker queue. 2021-03-03 17:04:05 -05:00
Samuel Clay
b64f06c269 Refactoring tlnb and sshdo commands for new Docker-based installation. 2021-03-03 11:15:09 -05:00
Samuel Clay
7dcfea68fb Adding certificates for APNS 2021-03-02 18:32:54 -05:00
Jonathan Math
45a37a5a99 remove unnecessary DOCKERBUILD env variable from postgres container role 2021-03-02 10:42:25 -05:00
Jonathan Math
78f3db01a1 publish container port 5579 as port 5000 so the db_monitor will be reachable at port 5000 2021-03-02 10:41:21 -05:00
Jonathan Math
90c13af5f8 add monitor roles to setup playbooks for dbs. 2021-03-02 10:39:50 -05:00
Jonathan Math
bcb74c6401 change consul_service.json files to include health checks using local monitor for database services 2021-03-02 10:37:21 -05:00
Samuel Clay
cb0ccb3e02 Whitney everywhere. This is a big change. I think everything needs a 1px bump up in size. 2021-02-26 17:25:22 -05:00
Samuel Clay
84a31e3da6 Adding start/stop commands to task deployment. 2021-02-26 10:48:10 -05:00
Samuel Clay
d54de1cd23 Handling ConnectionResetError 2021-02-25 20:04:24 -05:00
Samuel Clay
7f328b11c8 Typo 2021-02-25 19:16:28 -05:00
Samuel Clay
1d16ec88b1 Wrapping feed fetcher in sentry exception capturing. 2021-02-25 19:13:21 -05:00
Samuel Clay
01248e5a1b Fixing task servers. Also fixing sentry max size limit. 2021-02-25 18:50:20 -05:00
Jonathan Math
48cb662294 add copy secrets task to monitor role 2021-02-25 11:39:19 -05:00
Samuel Clay
67e36c40a6 Reloading celery when app secrets changes. 2021-02-25 11:34:40 -05:00
Samuel Clay
8ebf75d8ab Deploying haproxy vs setting up haproxy (reload vs restart) 2021-02-25 10:32:10 -05:00
Samuel Clay
883cf8005f Correcting nginx in haproxy. 2021-02-24 20:17:35 -05:00
Samuel Clay
155f9561db Updating node dockerfile to place node_modules in a parent directory to allow for volumizing node code. 2021-02-24 20:02:37 -05:00
Samuel Clay
5e284a5752 Fixing haproxy link to node-page. 2021-02-24 18:13:26 -05:00
Jonathan Math
698940ffd6 add archive dir and move old swarm files to archive. also move ansible archive to archive/ansible 2021-02-24 17:23:26 -05:00
Samuel Clay
cf3bec14ad Trying to get node docker setup but oddly it works locally and not in prod. 2021-02-24 17:17:06 -05:00
Samuel Clay
0c8b2d3069 Using gunicorn config. 2021-02-24 14:40:43 -05:00
Samuel Clay
c12b2493ed Finishing up db-mongo-analytics. Redis also now works. 2021-02-24 11:57:26 -05:00
Samuel Clay
2ee9f32e0a Adding beta subdomain. Adding /etc/hosts for compatibility with existing hosts. 2021-02-23 19:51:05 -05:00
Samuel Clay
e6d6667099 Adding consul tags for easy installation on services. 2021-02-23 19:30:28 -05:00
Samuel Clay
0c4464636f Rearranging ansible directory 2021-02-23 19:13:54 -05:00
Samuel Clay
8c64962999 Adding debug server. 2021-02-23 18:38:04 -05:00
Samuel Clay
bdd4857bae Deleting all ufw rules on every run so firewalls remain clean. Also reloading gunicorn. 2021-02-23 18:37:56 -05:00
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