Skip to content

Commit

Permalink
ansible: remove website build config from www-standalone (#3641)
Browse files Browse the repository at this point in the history
Website is now built and deployed on Vercel infra

Refs: #3636
  • Loading branch information
targos committed Feb 28, 2024
1 parent d25a3a9 commit 53303dd
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 225 deletions.
1 change: 0 additions & 1 deletion ansible/playbooks/create-webhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
loop_control:
loop_var: secret
with_items:
- github_secret
- cdn_api_key
- cdn_api_email
- cdn_api_iojs_id
Expand Down
3 changes: 0 additions & 3 deletions ansible/www-standalone/ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
- include_tasks: tasks/site-setup.yaml
tags: setup

- include_tasks: tasks/webhook.yaml
tags: webhook

- include_tasks: tasks/nginx.yaml
tags: nginx

Expand Down
1 change: 0 additions & 1 deletion ansible/www-standalone/host_vars/node-www.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
github_secret: "INSERT SECRET FROM WEBHOOK HERE"
cdn_api_key: "INSERT CLOUDFLARE API KEY"
cdn_api_email: "INSERT CLOUDFLARE API EMAIL"
cdn_api_iojs_id: "INSERT CLOUDFLARE API iojs.org ID"
Expand Down
18 changes: 0 additions & 18 deletions ansible/www-standalone/resources/config/github-webhook.json.j2

This file was deleted.

21 changes: 0 additions & 21 deletions ansible/www-standalone/resources/config/github-webhook.service.j2

This file was deleted.

23 changes: 0 additions & 23 deletions ansible/www-standalone/resources/config/logrotate-github-webhook

This file was deleted.

9 changes: 0 additions & 9 deletions ansible/www-standalone/resources/config/nodejs.org
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,6 @@ server {
try_files /$lang/404.html /en/404.html =404;
}

# This Location directive is used to expose our Website GitHub WebHook Logs
location = /github-webhook.log {
add_header Cache-Control "private, no-store, max-age=0" always;

alias /home/nodejs/github-webhook.log;
default_type text/plain;
access_log off;
}

# This location directive is used as the health-check/load-balancer endpoint for Cloudflare
# Each Cloudflare colo sends a request here every 60s to check we're up
# We use a direct response from NGINX to avoid file system load for these requests
Expand Down
61 changes: 0 additions & 61 deletions ansible/www-standalone/resources/scripts/build-site.sh

This file was deleted.

16 changes: 0 additions & 16 deletions ansible/www-standalone/resources/scripts/check-build-site.sh

This file was deleted.

39 changes: 0 additions & 39 deletions ansible/www-standalone/tasks/site-setup.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
- name: Site Setup | Copy build-site scripts
copy:
src: ./resources/scripts/{{ item }}
dest: /home/nodejs/{{ item }}
mode: 0700
owner: nodejs
group: nodejs
with_items:
- build-site.sh
- check-build-site.sh
tags: setup

- name: Site Setup | Make /home/www
file:
path: "{{ item }}"
Expand All @@ -20,7 +8,6 @@
- /home/www
- /home/www/iojs
- /home/www/nodejs
- /home/www/github
- /home/www/coverage
tags: setup

Expand Down Expand Up @@ -68,38 +55,12 @@
group: root
tags: setup

- name: Site Setup | Make /home/nodejs/.npm
file:
path: /home/nodejs/.npm
state: directory
mode: 0755
owner: nodejs
tags: setup

- name: Site Setup | Make /var/run/nodejs
file:
path: /var/run/nodejs
state: directory
mode: 0755
owner: nodejs
tags: setup

- name: Site Setup | Initial nodejs, iojs clone and update
become: yes
become_user: "nodejs"
command: "{{ item }}"
with_items:
- "/home/nodejs/build-site.sh nodejs"
- "/home/nodejs/build-site.sh iojs"
tags: setup

- name: Site Setup | Add periodic tasks to crontab
lineinfile:
dest: /etc/crontab
line: "{{ item }}"
with_items:
- "*/30 * * * * dist /home/staging/tools/promote/promote_nightly.sh nodejs"
- "*/5 * * * * nodejs /home/nodejs/check-build-site.sh nodejs"
- "*/5 * * * * root /home/nodejs/cdn-purge.sh"
tags: setup

Expand Down
33 changes: 0 additions & 33 deletions ansible/www-standalone/tasks/webhook.yaml

This file was deleted.

0 comments on commit 53303dd

Please sign in to comment.