-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdeploy.yml
141 lines (105 loc) · 3.87 KB
/
deploy.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
# This "deploy.yml" playbook is used to deploy the components, it requires the infrastructure deployed with "site.yml"
#
# Use the provided deploy.sh script to deploy a single component
#
# To deploy all components in one go, set "tarball_location" to the directory where the tarballls to be deployed are stored. E.g.
# ansible-playbook .../Stepup-Deploy/deploy.yml -i .../inventory -e tarball_location=`pwd`
- hosts: all
run_once: true
tasks:
- name: Require Ansible 2
assert:
that: ansible_version.major == 2
- name: Intall Stepup-Gateway
hosts: stepup-gateway
become: True
tags: stepup-gateway
roles:
- stepup-gateway
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-Gateway-2.2.0-20161018092553Z-bc6bbf8e2006d15cbe883d8045724cdb1166e759.tar.bz2"
component_name: gateway
component_vhost_name: "{{ gateway_vhost_name }}"
# Do not change, use component_info instead
deploy_assetic: yes
- name: Install Stepup-middleware
hosts: stepup-middleware
become: True
tags: stepup-middleware
roles:
- stepup-middleware
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-Middleware-2.0.2-20160810101855Z-d8d88d778ea30379b606cbca58d9634ff0541b42.tar.bz2"
component_name: middleware
component_vhost_name: "{{ middleware_vhost_name }}"
- name: Install Stepup-SelfService
hosts: stepup-selfservice
become: True
tags: stepup-selfservice
roles:
- stepup-selfservice
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-SelfService-2.2.0-20161018092804Z-8792083b95fe2e073318ba68e4f92329249673ad.tar.bz2"
component_name: selfservice
component_vhost_name: "{{ selfservice_vhost_name }}"
# Do not change, use component_info instead
deploy_assetic: yes
- name: Install Stepup-RA
hosts: stepup-ra
become: True
tags: stepup-ra
roles:
- stepup-ra
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-RA-2.2.0-20161018093029Z-8dc3497ba0fc70701abeb1c890b6956a80ca24e9.tar.bz2"
component_name: ra
component_vhost_name: "{{ ra_vhost_name }}"
# Do not change, use component_info instead
deploy_assetic: yes
- name: Install Stepup-tiqr IDP
hosts: stepup-tiqr
become: True
tags: stepup-tiqr
roles:
- stepup-tiqr
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-tiqr-1.1.3-20160708120851Z-e5d8000f03e81f780cab77a439a86db6e0b37ad8.tar.bz2"
component_name: tiqr
component_vhost_name: "{{ tiqr_vhost_name }}"
- name: Install Stepup-Keyserver
hosts: stepup-keyserver
become: True
tags: oath-service-php
roles:
- stepup-keyserver
vars:
component_tarball_name: "{{ tarball_location }}/oath-service-php-1.0.1-20150723081351Z-56c990e62b4ba64ac755ca99093c9e8fce3e8fe9.tar.bz2"
component_name: keyserver
component_vhost_name: "{{ keyserver_vhost_name }}"
- name: Install Stepup-Azure-MFA IDP
hosts: stepup-azuremfa
become: True
tags: stepup-azure-mfa
roles:
- stepup-azure-mfa
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-Azure-MFA-0.2.6-20191223115638Z-74c9b883a2f21aa1702eb01eaa978fd934221a1c.tar.bz2"
component_name: azuremfa
component_vhost_name: "{{ azuremfa_vhost_name }}"
# Do not change, use component_info instead
deploy_symfony_version: 4
- name: Install Stepup-Webauthn IDP
hosts: stepup-webauthn
become: True
tags: stepup-webauthn
roles:
- stepup-webauthn
vars:
component_tarball_name: "{{ tarball_location }}/Stepup-Webauthn-feature_build-artifacts-20200124121812Z-617b85bcf44851711208518a1362935173c3d57d.tar.bz2"
component_name: webauthn
component_vhost_name: "{{ webauthn_vhost_name }}"
# Do not change, use component_info instead
deploy_symfony_version: 4
- import_playbook: deploy-dev.yml
when: develop | default(false)