Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move fastly setup to backend naming #2155

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions ansible/fastly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,38 @@
tasks:
- name: configure fastly service
fastly_service:
name: "{{ item }}.theforeman.org"
name: "{{ item.service }}.theforeman.org"
fastly_api_key: "{{ fastly_api_key }}"
domains:
- name: "{{ item }}.theforeman.org"
- name: "{{ item.service }}.theforeman.org"
backends:
- name: web01.osuosl.theforeman.org
address: web01.osuosl.theforeman.org
- name: "{{ item.backend }}.theforeman.org"
address: "{{ item.backend }}.theforeman.org"
port: 443
shield: iad-va-us
ssl_cert_hostname: "{{ item }}.theforeman.org"
ssl_sni_hostname: "{{ item }}.theforeman.org"
override_host: "{{ item }}.theforeman.org"
ssl_cert_hostname: "{{ item.backend }}.theforeman.org"
ssl_sni_hostname: "{{ item.backend }}.theforeman.org"
override_host: "{{ item.backend }}.theforeman.org"
healthcheck: HEADER.html
healthchecks:
- name: HEADER.html
host: "{{ item }}.theforeman.org"
host: "{{ item.backend }}.theforeman.org"
path: "/HEADER.html"
threshold: 1
timeout: 5000
window: 2
initial: 1
check_interval: 60000
with_items:
- archivedeb
- deb
- downloads
- stagingdeb
- stagingyum
- yum
- service: archivedeb
backend: archivedeb-backend.web01.osuosl
- service: deb
backend: deb-backend.web01.osuosl
- service: downloads
backend: downloads-backend.web01.osuosl
- service: stagingdeb
backend: stagingdeb-backend.web01.osuosl
- service: stagingyum
backend: stagingyum-backend.web01.osuosl
- service: yum
backend: yum-backend.web01.osuosl