mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
ipatuura01: make it an IPA client
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
# service: HTTP
|
||||
# #host: "ipatuura{{ env_suffix }}.fedoraproject.org"
|
||||
# host: "{{ ansible_fqdn }}"
|
||||
- ipa/client
|
||||
- ipatuura
|
||||
|
||||
pre_tasks:
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
tags:
|
||||
- ipatuura
|
||||
|
||||
- name: Create the configuration directory
|
||||
ansible.builtin.file:
|
||||
path: /etc/ipatuura
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
|
||||
- name: Copy the domain template file
|
||||
ansible.builtin.template:
|
||||
name: domain.json.j2
|
||||
|
||||
@@ -16,6 +16,8 @@ Image=localhost/ipatuura
|
||||
HostName=ipatuura01{{env_suffix}}.{{datacenter}}.fedoraproject.org
|
||||
|
||||
Environment=TZ=UTC
|
||||
Environment=PYTHONPATH=/etc/ipatuura
|
||||
Environment=DJANGO_SETTINGS_MODULE=settings.py
|
||||
PodmanArgs=--privileged
|
||||
|
||||
# Ports
|
||||
@@ -24,6 +26,9 @@ PublishPort=3500:3500
|
||||
PublishPort=81:81
|
||||
PublishPort=443:443
|
||||
|
||||
# Volumes
|
||||
Volume=/etc/ipatuura:/etc/ipatuura:Z
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
1
roles/ipatuura/templates/settings.py.j2
Normal file
1
roles/ipatuura/templates/settings.py.j2
Normal file
@@ -0,0 +1 @@
|
||||
from root.settings import *
|
||||
Reference in New Issue
Block a user