Skip to content

Commit

Permalink
allow using a different backend name than service name
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 19, 2024
1 parent 2977b58 commit 9b113c8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ansible/fastly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
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 | default('web01.osuosl') }}.theforeman.org"
address: "{{ item.backend | default('web01.osuosl') }}.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 | default(item.service) }}.theforeman.org"
ssl_sni_hostname: "{{ item.backend | default(item.service) }}.theforeman.org"
override_host: "{{ item.backend | default(item.service) }}.theforeman.org"
healthcheck: HEADER.html
healthchecks:
- name: HEADER.html
host: "{{ item }}.theforeman.org"
host: "{{ item.backend | default(item.service) }}.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
- service: deb
- service: downloads
- service: stagingdeb
- service: stagingyum
- service: yum

0 comments on commit 9b113c8

Please sign in to comment.