Merge branch 'master' of /git/ansible
This commit is contained in:
commit
a53d7320fb
8 changed files with 57 additions and 4 deletions
|
@ -3,7 +3,7 @@ fas_client_groups: sysadmin-releng
|
||||||
sudoers: "{{ private }}/files/sudo/00releng-sudoers"
|
sudoers: "{{ private }}/files/sudo/00releng-sudoers"
|
||||||
ansible_ifcfg_blacklist: true
|
ansible_ifcfg_blacklist: true
|
||||||
|
|
||||||
krb_builder: False
|
krb_builder: True
|
||||||
|
|
||||||
koji_server_url: "http://koji.fedoraproject.org/kojihub"
|
koji_server_url: "http://koji.fedoraproject.org/kojihub"
|
||||||
koji_weburl: "http:/koji.fedoraproject.org/koji"
|
koji_weburl: "http:/koji.fedoraproject.org/koji"
|
||||||
|
|
|
@ -42,6 +42,29 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ipa/server
|
- ipa/server
|
||||||
|
- role: keytab/service
|
||||||
|
owner_user: apache
|
||||||
|
owner_group: apache
|
||||||
|
service: HTTP
|
||||||
|
host: "id.stg.fedoraproject.org"
|
||||||
|
when: env == "staging"
|
||||||
|
- role: keytab/service
|
||||||
|
owner_user: apache
|
||||||
|
owner_group: apache
|
||||||
|
service: HTTP
|
||||||
|
host: "id.fedoraproject.org"
|
||||||
|
when: env == "production"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Make symlink for keytab
|
||||||
|
file: state=link path=/etc/httpd/conf/ipa.keytab force=yes
|
||||||
|
src="/etc/krb5.HTTP_id{{env_suffix}}.fedoraproject.org.keytab"
|
||||||
|
notify:
|
||||||
|
- reload httpd
|
||||||
|
tags:
|
||||||
|
- ipa/server
|
||||||
|
- krb5
|
||||||
|
when: env == "staging"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
|
@ -174,6 +174,14 @@
|
||||||
proxyurl: http://localhost:10053
|
proxyurl: http://localhost:10053
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
|
- role: httpd/reverseproxy
|
||||||
|
website: id.stg.fedoraproject.org
|
||||||
|
destname: 00-ipa
|
||||||
|
remotepath: /ipa
|
||||||
|
localpath: /ipa
|
||||||
|
proxyurl: http://localhost:10053
|
||||||
|
when: env == "staging"
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: id.fedoraproject.org
|
website: id.fedoraproject.org
|
||||||
destname: id
|
destname: id
|
||||||
|
@ -188,6 +196,14 @@
|
||||||
proxyurl: http://localhost:10053
|
proxyurl: http://localhost:10053
|
||||||
when: env != "staging"
|
when: env != "staging"
|
||||||
|
|
||||||
|
- role: httpd/reverseproxy
|
||||||
|
website: id.fedoraproject.org
|
||||||
|
destname: 00-ipa
|
||||||
|
remotepath: /ipa
|
||||||
|
localpath: /ipa
|
||||||
|
proxyurl: http://localhost:10053
|
||||||
|
when: env != "staging"
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: apps.fedoraproject.org
|
website: apps.fedoraproject.org
|
||||||
destname: datagrepper
|
destname: datagrepper
|
||||||
|
|
|
@ -16,6 +16,10 @@ includedir /var/lib/sss/pubconf/krb5.include.d/
|
||||||
ticket_lifetime = 24h
|
ticket_lifetime = 24h
|
||||||
renew_lifetime = 7d
|
renew_lifetime = 7d
|
||||||
forwardable = true
|
forwardable = true
|
||||||
|
{% if env == "staging"
|
||||||
|
dns_canonicalize_hostname = false
|
||||||
|
rdns = false
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
[realms]
|
[realms]
|
||||||
{% if env == "production" %}
|
{% if env == "production" %}
|
||||||
|
|
|
@ -62,13 +62,14 @@ tgcaptcha2.jpeg_generator = 'vanasco_dowty'
|
||||||
###
|
###
|
||||||
ipa_sync_enabled = True
|
ipa_sync_enabled = True
|
||||||
ipa_sync_keytab = '/etc/fas_sync_keytab'
|
ipa_sync_keytab = '/etc/fas_sync_keytab'
|
||||||
ipa_sync_certfile = '/etc/fas_sync_cert.pem'
|
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
ipa_sync_principal = 'fas_sync@STG.FEDORAPROJECT.ORG'
|
ipa_sync_principal = 'fas_sync@STG.FEDORAPROJECT.ORG'
|
||||||
ipa_sync_server = 'ipa01.stg.phx2.fedoraproject.org'
|
ipa_sync_server = 'id.stg.phx2.fedoraproject.org'
|
||||||
|
ipa_sync_certfile = '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem'
|
||||||
{% else %}
|
{% else %}
|
||||||
ipa_sync_principal = 'fas_sync@FEDORAPROJECT.ORG'
|
ipa_sync_principal = 'fas_sync@FEDORAPROJECT.ORG'
|
||||||
ipa_sync_server = 'ipa01.phx2.fedoraproject.org'
|
ipa_sync_server = 'ipa01.phx2.fedoraproject.org'
|
||||||
|
ipa_sync_certfile = '/etc/fas_sync_cert.pem'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
|
@ -332,7 +332,7 @@ listen ipa 0.0.0.0:10053
|
||||||
{% if env != "staging" %}
|
{% if env != "staging" %}
|
||||||
server ipa02 ipa02:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem
|
server ipa02 ipa02:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem
|
||||||
{% endif %}
|
{% endif %}
|
||||||
option httpchk GET /
|
option httpchk GET /ipa/ui/
|
||||||
|
|
||||||
listen krb5 0.0.0.0:1088
|
listen krb5 0.0.0.0:1088
|
||||||
mode tcp
|
mode tcp
|
||||||
|
|
1
roles/ipa/server/files/ipa-rewrite.conf
Normal file
1
roles/ipa/server/files/ipa-rewrite.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# VERSION 6 - DO NOT REMOVE THIS LINE
|
|
@ -121,6 +121,14 @@
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
- name: Disable rewrites
|
||||||
|
copy: src=ipa-rewrite.conf dest=/etc/httpd/conf.d/ipa-rewrite.conf
|
||||||
|
notify:
|
||||||
|
- reload httpd
|
||||||
|
tags:
|
||||||
|
- ipa/server
|
||||||
|
- config
|
||||||
|
|
||||||
- name: Deploy configuration script
|
- name: Deploy configuration script
|
||||||
copy: src=configure-ipa.sh dest=/root/configure-ipa.sh mode=0700 owner=root group=root
|
copy: src=configure-ipa.sh dest=/root/configure-ipa.sh mode=0700 owner=root group=root
|
||||||
register: config_deployed
|
register: config_deployed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue