Ipsilon in staging: deploy config files
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
cf6f1a8b52
commit
3a1885bcc9
4 changed files with 63 additions and 38 deletions
|
@ -150,31 +150,31 @@
|
|||
tags:
|
||||
- ipsilon
|
||||
|
||||
## - name: copy ipsilon configuration
|
||||
## template:
|
||||
## src: "ipsilon.conf"
|
||||
## dest: "/etc/ipsilon/root/ipsilon.conf"
|
||||
## owner: ipsilon
|
||||
## group: ipsilon
|
||||
## mode: 0600
|
||||
## tags:
|
||||
## - ipsilon
|
||||
## - config
|
||||
## notify:
|
||||
## - restart apache
|
||||
##
|
||||
## - name: copy ipsilon admin configuration
|
||||
## template:
|
||||
## src: "configuration.conf"
|
||||
## dest: "/etc/ipsilon/root/configuration.conf"
|
||||
## owner: ipsilon
|
||||
## group: ipsilon
|
||||
## mode: 0600
|
||||
## tags:
|
||||
## - ipsilon
|
||||
## - config
|
||||
## notify:
|
||||
## - restart apache
|
||||
- name: copy ipsilon configuration
|
||||
template:
|
||||
src: "ipsilon.conf.{{ env }}"
|
||||
dest: "/etc/ipsilon/root/ipsilon.conf"
|
||||
owner: ipsilon
|
||||
group: ipsilon
|
||||
mode: 0600
|
||||
tags:
|
||||
- ipsilon
|
||||
- config
|
||||
notify:
|
||||
- restart apache
|
||||
|
||||
- name: copy ipsilon admin configuration
|
||||
template:
|
||||
src: "configuration.conf"
|
||||
dest: "/etc/ipsilon/root/configuration.conf"
|
||||
owner: ipsilon
|
||||
group: ipsilon
|
||||
mode: 0600
|
||||
tags:
|
||||
- ipsilon
|
||||
- config
|
||||
notify:
|
||||
- restart apache
|
||||
|
||||
- name: copy ipsilon OIDC client config
|
||||
copy:
|
||||
|
@ -189,12 +189,13 @@
|
|||
notify:
|
||||
- restart apache
|
||||
|
||||
## - name: copy ipsilon httpd config
|
||||
## template:
|
||||
## src: "httpd.conf.{{ env }}.j2"
|
||||
## dest: /etc/ipsilon/root/idp.conf
|
||||
## tags:
|
||||
## - ipsilon
|
||||
- name: copy ipsilon httpd config
|
||||
template:
|
||||
src: "httpd.conf.{{ env }}.j2"
|
||||
dest: /etc/ipsilon/root/idp.conf
|
||||
tags:
|
||||
- ipsilon
|
||||
- config
|
||||
|
||||
# - name: Create Ipsilon config symlink
|
||||
# file:
|
||||
|
|
|
@ -96,7 +96,7 @@ data:
|
|||
# Ipsilon stuff
|
||||
{{ load_file('httpd.conf.production.j2') | indent() }}
|
||||
ipsilon.conf: |-
|
||||
{{ load_file('ipsilon.conf') | indent() }}
|
||||
{{ load_file('ipsilon.conf.production') | indent() }}
|
||||
configuration.conf: |-
|
||||
{{ load_file('configuration.conf') | indent() }}
|
||||
openidc.static.cfg: |-
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[global]
|
||||
debug = True
|
||||
debug = {{ (env == 'production')|ternary('False', 'True') }}
|
||||
tools.log_request_response.on = False
|
||||
theme_dir = "/usr/share/ipsilon/themes/Fedora"
|
||||
template_dir = "/usr/share/ipsilon/templates"
|
||||
|
@ -24,9 +24,5 @@ tools.sessions.secure = True
|
|||
tools.sessions.locking = 'explicit'
|
||||
|
||||
tools.proxy.on = True
|
||||
{% if env == 'staging' %}
|
||||
tools.proxy.base = "https://id.stg.fedoraproject.org"
|
||||
{% else %}
|
||||
tools.proxy.base = "https://id.fedoraproject.org"
|
||||
{% endif %}
|
||||
tools.proxy.base = "https://id{{ env_suffix }}.fedoraproject.org"
|
||||
|
28
roles/ipsilon/templates/ipsilon.conf.staging
Normal file
28
roles/ipsilon/templates/ipsilon.conf.staging
Normal file
|
@ -0,0 +1,28 @@
|
|||
[global]
|
||||
debug = {{ (env == 'production')|ternary('False', 'True') }}
|
||||
tools.log_request_response.on = False
|
||||
template_dir = "/usr/share/ipsilon/templates"
|
||||
theme_dir = "/usr/share/ipsilon/themes/Fedora"
|
||||
cache_dir = "/var/cache/ipsilon"
|
||||
cleanup_interval = 30
|
||||
db.conn.log = False
|
||||
db.echo = False
|
||||
|
||||
# base.mount = ""
|
||||
base.dir = "/usr/share/ipsilon"
|
||||
admin.config.db = "configfile:///etc/ipsilon/root/configuration.conf"
|
||||
user.prefs.db = "postgresql://{{ ipsilon_db_user }}:{{ ipsilon_db_pass }}@{{ ipsilon_db_host }}/{{ ipsilon_db_prefs_name }}"
|
||||
transactions.db = "postgresql://{{ ipsilon_db_user }}:{{ ipsilon_db_pass }}@{{ ipsilon_db_host }}/{{ ipsilon_db_transactions_name }}"
|
||||
|
||||
tools.sessions.on = True
|
||||
tools.sessions.name = "fedora_ipsilon_session_id"
|
||||
tools.sessions.storage_type = "sql"
|
||||
tools.sessions.storage_dburi = "postgresql://{{ ipsilon_db_user }}:{{ ipsilon_db_pass }}@{{ ipsilon_db_host }}/{{ ipsilon_db_sessions_name }}"
|
||||
tools.sessions.timeout = 15
|
||||
tools.sessions.httponly = True
|
||||
tools.sessions.secure = True
|
||||
tools.sessions.locking = 'explicit'
|
||||
|
||||
tools.proxy.on = True
|
||||
tools.proxy.base = "https://id{{ env_suffix }}.fedoraproject.org"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue