|
3 | 3 | # |
4 | 4 | - hosts: localhost |
5 | 5 | gather_facts: true |
| 6 | + pre_tasks: |
| 7 | + - include_vars: |
| 8 | + dir: mylyn_vars |
| 9 | + extensions: |
| 10 | + - json |
6 | 11 | tasks: |
7 | 12 | - name: include global mode |
8 | 13 | ansible.builtin.include_tasks: |
|
16 | 21 | # |
17 | 22 | # start all non admin Docker Nodes |
18 | 23 | # |
19 | | -- hosts: "{{ hostvars['localhost'].setup_noadmin_vm_list }}" |
| 24 | +- hosts: "{{ hostvars['localhost'].mylyn_noadmin_vm_hosts }}" |
20 | 25 | gather_facts: true |
| 26 | + pre_tasks: |
| 27 | + - include_vars: |
| 28 | + dir: mylyn_vars |
| 29 | + extensions: |
| 30 | + - json |
21 | 31 | vars: |
22 | 32 | rootca_name: "{{ hostvars['localhost'].rootca_server_name }}" |
23 | 33 | tasks: |
|
29 | 39 | - name: debug distribution |
30 | 40 | debug: |
31 | 41 | msg: "{{ ansible_facts['distribution'] +'/' + ansible_facts['architecture'] + ' on ' + hostvars['localhost'].localhostPlatform }}" |
| 42 | + - name: debug mylyn_service_domain |
| 43 | + debug: |
| 44 | + msg: "{{ hostvars['localhost'].mylyn_service_domain }}" |
32 | 45 | # |
33 | 46 | # 1) install Docker Swarm Leader (if needed) |
34 | 47 | # 2) stop all Docker Services / Container |
35 | 48 | # |
36 | | -- hosts: "{{ hostvars['localhost'].prim_install_server_name }}" |
| 49 | +- hosts: "{{ hostvars['localhost'].mylyn_service_vm_name }}" |
37 | 50 | gather_facts: false |
| 51 | + pre_tasks: |
| 52 | + - include_vars: |
| 53 | + dir: mylyn_vars |
| 54 | + extensions: |
| 55 | + - json |
38 | 56 | vars: |
39 | | - swarm_master_name: "{{ hostvars['localhost'].prim_install_server_name }}" |
| 57 | + swarm_master_name: "{{ hostvars['localhost'].mylyn_service_vm_name }}" |
40 | 58 | roles: |
41 | 59 | - role: swarm_delete |
42 | 60 | when: ((hostvars['localhost'].docker_swarm_recreate | bool == true) or (hostvars['localhost'].docker_mode_global == "container")) |
|
51 | 69 | # |
52 | 70 | # cleanup all docker instances |
53 | 71 | # |
54 | | -- hosts: "{{ hostvars['localhost'].setup_noadmin_vm_list }}" |
| 72 | +- hosts: "{{ hostvars['localhost'].mylyn_noadmin_vm_hosts }}" |
55 | 73 | gather_facts: true |
| 74 | + pre_tasks: |
| 75 | + - include_vars: |
| 76 | + dir: mylyn_vars |
| 77 | + extensions: |
| 78 | + - json |
56 | 79 | vars: |
57 | 80 | rootca_name: "{{ hostvars['localhost'].rootca_server_name }}" |
58 | 81 | roles: |
|
63 | 86 | # Services installieren |
64 | 87 | # install Docker Services / Container |
65 | 88 | # |
66 | | -- hosts: "{{ hostvars['localhost'].prim_install_server_name }}" |
| 89 | +- hosts: "{{ hostvars['localhost'].mylyn_service_vm_name }}" |
67 | 90 | gather_facts: false |
68 | 91 | pre_tasks: |
69 | 92 | - include_vars: |
70 | 93 | dir: mylyn_vars |
71 | 94 | extensions: |
72 | 95 | - json |
73 | 96 | vars: |
74 | | - swarm_master_name: "{{ hostvars['localhost'].prim_install_server_name }}" |
| 97 | + swarm_master_name: "{{ hostvars['localhost'].mylyn_service_vm_name }}" |
75 | 98 | docker_mode: "{{ hostvars['localhost'].docker_mode_global }}" |
76 | 99 | roles: |
77 | 100 | - role: traeefik |
78 | 101 | vars: |
79 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
| 102 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
80 | 103 | - role: socket-proxy |
81 | 104 | - role: mylyn_idx |
82 | 105 | vars: |
83 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
84 | | - remote_domain_name: "{{ hostvars['localhost'].remote_domain }}" |
| 106 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
85 | 107 | - role: artifactory |
86 | 108 | tags: |
87 | 109 | - artifactory |
88 | 110 | vars: |
89 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
90 | | -# remote_domain_name: "{{ hostvars['localhost'].remote_domain }}" |
| 111 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
91 | 112 | - role: gitlab |
92 | 113 | tags: |
93 | 114 | - gitlab |
94 | 115 | vars: |
95 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
| 116 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
96 | 117 | gitlabImageVersion: "16.11.1" |
97 | | - gitlabHostURL: "gitlab.{{ hostvars['localhost'].local_domain }}" |
| 118 | + gitlabHostURL: "gitlab.{{ hostvars['localhost'].mylyn_service_domain }}" |
98 | 119 | - role: jenkins |
99 | 120 | tags: |
100 | 121 | - jenkins |
101 | 122 | vars: |
102 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
103 | | - remote_domain_name: "{{ hostvars['localhost'].remote_domain }}" |
| 123 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
104 | 124 | jenkins_instances: |
105 | 125 | # - { servmame: "jenkins-2_303_3", port1: 8081, port2: 50001, data_dir: "jenkins-2.303.3", image_tag: "jenkins/jenkins:2.303.3-lts-jdk11", extra_info: '' } |
106 | 126 | # - { servmame: "jenkins-1_651_1", port1: 8084, port2: 50004, data_dir: "jenkins-2.303.3", image_tag: "jenkins:1.651.1", extra_info: '"' } |
|
110 | 130 | tags: |
111 | 131 | - bugzilla |
112 | 132 | vars: |
113 | | - common_domain_name: "{{ hostvars['localhost'].local_domain }}" |
114 | | - remote_domain_name: "{{ hostvars['localhost'].remote_domain }}" |
| 133 | + common_domain_name: "{{ hostvars['localhost'].mylyn_service_domain }}" |
115 | 134 | bugzilla_instances: |
116 | 135 | - { git_branch: "release-4.4.13", servmame: "bugzilla-4_4", port1: 8090, port2: 8490, image_tag: "4.4", extra_info: '"default": "true"' } |
117 | 136 | # - { git_branch: "release-4.4.13", servmame: "bugzilla-4_4-custom-wf", port1: 8091, port2: 8491, image_tag: "4.4-custom_wf", extra_info: '"custom_wf":"true"' } |
118 | 137 | # - { git_branch: "release-4.4.13", servmame: "bugzilla-4_4-custom-wf-and-status", port1: 8092, port2: 8492, image_tag: "4.4-custom_wf_a_s", extra_info: '"custom_wf_and_status":"true"' } |
119 | 138 | # - { git_branch: "release-4.4.13", servmame: "bugzilla-4_4-bugaliases", port1: 8093, port2: 8493, image_tag: "4.4-bugaliases", extra_info: '"use_bug_alias":"true"' } |
120 | 139 | # - { git_branch: "5.2", servmame: "bugzilla-5_2", port1: 8094, port2: 8494, image_tag: "5.2", extra_info: '' } |
121 | | -# - { git_branch: "5.2", servmame: "bugzilla-5_2-rest", port1: 8095, port2: 8495, image_tag: "5.2-rest", extra_info: '"rest_enabled":"true", "default": "true", "testdataVersion": "Version1"' } |
122 | | -# - { git_branch: "5.2", servmame: "bugzilla-5_2-rest-api", port1: 8096, port2: 8496, image_tag: "5.2-rest-api", extra_info: '"rest_enabled": "true", "api_key_enabled": "true", "testdataVersion": "Version1"' } |
| 140 | + - { git_branch: "5.2", servmame: "bugzilla-5_2-rest", port1: 8095, port2: 8495, image_tag: "5.2-rest", extra_info: '"rest_enabled":"true", "default": "true", "testdataVersion": "Version1"' } |
| 141 | + - { git_branch: "5.2", servmame: "bugzilla-5_2-rest-api", port1: 8096, port2: 8496, image_tag: "5.2-rest-api", extra_info: '"rest_enabled": "true", "api_key_enabled": "true", "testdataVersion": "Version1"' } |
0 commit comments