This repository was archived by the owner on Sep 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.yml
93 lines (73 loc) · 3.56 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
# app_name, rpm_name and rpm_folder are standard variables, must be redefined for each role
# # it allows re-usage of tasks
app_name: "Talend-IAM"
rpm_name: "talend-iam"
rpm_folder: "iam"
app_service: "talend-iam"
#####
# Tomcat-selection variables
#####
# This var shows whether we should use talend-tomcat in 'shared' mode (default settings)
app_use_talend_tomcat: "yes" # allowed values are "yes" or "no"
app_tomcat_port: "9080" # tomcat_port is used only if tomcat_setup == "yes" (or when app_use_talend_tomcat == "yes")
# The following variables will be taken in account only if app_use_talend_tomcat == "no"
app_tomcat_home: "/opt/tomcat" # home folder for customer's tomcat
app_tomcat_mode: "direct" # can be one of "direct" or "shared"
app_tomcat_setup: "no" # whether to update customer's tomcat configuration (ports)
#####
# Installation as systemd service
#####
app_install_systemd: "yes" # allowed values "yes" and "no"
##########################
# Internal configuration variables, do not touch this block
##
iam_base_location: "{{ install_prefix + '/iam' }}"
iam_tomcat_location: "{{ install_prefix + '/iam/tomcat' if app_use_talend_tomcat == 'yes' or app_tomcat_mode == 'shared' else app_tomcat_home }}"
iam_config_location: "{{ iam_tomcat_location + '/conf' }}"
iam_clients_location: "{{ iam_tomcat_location + '/clients' }}"
iam_webapps_location: "{{ iam_tomcat_location + '/webapps' }}"
##
# End of internal configuration variables block
##########################
##########################################################################
## Talend-IAM -specific configuration variables
## We will use "iam_" prefix in var names
##########################################################################
#####
# Talend-IAM Configuration
#####
# Tomcat Configuration
iam_tomcat_port: "{{app_tomcat_port}}"
# TAC authentication
# TAC url
iam_tac_url: "http://localhost:8080/org.talend.administrator"
# TAC user and password
iam_tac_user: "[email protected]"
iam_tac_password: "admin"
# IAM configuration
# IAM - hostname to be used in IAM configuration files
iam_hostname: "localhost"
# Language. Supported languages: en (English) | fr (French) | ja (Japanese) | zh (Chinese)
iam_language: "en"
# IAM - TDS post-logout URL
iam_tds_postlogout_url: "http://localhost:19999/"
# IAM - TDP post-logout URL
iam_tdp_postlogout_url: "http://localhost:9999/"
# IAM - MDM post-logout URL
iam_mdm_postlogout_url: "http://localhost:8180/"
########################
# Internal configuration section, do not delete !!!
########################
iam_tds_postlogout_url_lc: "{{ iam_tds_postlogout_url | lower }}"
iam_tdp_postlogout_url_lc: "{{ iam_tdp_postlogout_url | lower | regex_replace( '/$' ) }}"
iam_mdm_postlogout_url_lc: "{{ iam_mdm_postlogout_url | lower }}"
iam_tds_postlogon_port: "{{ iam_tds_postlogout_url_lc | urlsplit('port') }}"
iam_tdp_postlogon_port: "{{ iam_tdp_postlogout_url_lc | urlsplit('port') }}"
iam_mdm_postlogon_port: "{{ iam_mdm_postlogout_url_lc | urlsplit('port') }}"
iam_tds_postlogon_host: "{{ iam_tds_postlogout_url_lc | urlsplit('hostname') }}"
iam_tdp_postlogon_host: "{{ iam_tdp_postlogout_url_lc | urlsplit('hostname') }}"
iam_mdm_postlogon_host: "{{ iam_mdm_postlogout_url_lc | urlsplit('hostname') }}"
iam_tds_postlogon_shorthost: "{{ iam_tds_postlogout_url_lc | urlsplit('hostname') | regex_replace('(.*?)(\\..*)', '\\1' ) }}"
iam_tdp_postlogon_shorthost: "{{ iam_tdp_postlogout_url_lc | urlsplit('hostname') | regex_replace('(.*?)(\\..*)', '\\1' ) }}"
iam_mdm_postlogon_shorthost: "{{ iam_mdm_postlogout_url_lc | urlsplit('hostname') | regex_replace('(.*?)(\\..*)', '\\1' ) }}"