forked from siamaksade/openshift-demos-ansible
-
Notifications
You must be signed in to change notification settings - Fork 1
/
msa-cicd-eap-min.yml
63 lines (57 loc) · 2.31 KB
/
msa-cicd-eap-min.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
---
- name: Deploy Coolstore Microservices Demo - CI/CD with JBoss EAP
hosts: localhost
gather_facts: false
run_once: true
vars_files:
- demo_vars/msa-cicd-eap/all
tasks:
- include_role:
name: common
- import_role:
name: openshift_gogs
vars:
project_name: "{{ project_cicd }}"
project_display_name: "{{ project_cicd_name }}"
project_desc: "{{ project_cicd_desc }}"
project_annotations: "demo=demo-modern-arch-{{ project_suffix }}"
gogs_route: "gogs-{{ project_cicd }}.{{ apps_hostname_suffix }}"
- import_role:
name: openshift_nexus
vars:
project_name: "{{ project_cicd }}"
when: >
maven_mirror_url is not defined or
maven_mirror_url is none or
maven_mirror_url|trim() == ""
- import_role:
name: openshift_jenkins
vars:
project_name: "{{ project_cicd }}"
jenkins_image_tag: "v3.7"
- import_role:
name: openshift_workshopper
vars:
project_name: "{{ project_cicd }}"
workshopper_yaml: demo-cicd-eap-full.yml
workshopper_env_vars:
PROJECT_SUFFIX: "{{ project_suffix }}"
GOGS_URL: http://gogs-{{ project_cicd }}.{{ apps_hostname_suffix }}
GOGS_DEV_REPO_URL_PREFIX: http://gogs-{{ project_cicd }}.{{ apps_hostname_suffix }}/{{ gogs_user }}/coolstore-microservice
JENKINS_URL: http://jenkins-{{ project_prod }}.{{ apps_hostname_suffix }}
COOLSTORE_WEB_PROD_URL: http://web-ui-{{ project_prod }}.{{ apps_hostname_suffix }}
HYSTRIX_PROD_URL: http://hystrix-dashboard-{{ project_prod }}.{{ apps_hostname_suffix }}
GOGS_DEV_USER: "{{ gogs_user }}"
GOGS_DEV_PASSWORD: "{{ gogs_password }}"
GOGS_REVIEWER_USER: "{{ gogs_admin_user }}"
GOGS_REVIEWER_PASSWORD: "{{ gogs_admin_password }}"
when: deploy_guides
- import_role:
name: openshift_coolstore
vars:
project_annotations: "demo=demo-msa-cicd-eap-{{ project_suffix }}"
hostname_suffix: "{{ apps_hostname_suffix }}"
gogs_hostname: "gogs-{{ project_cicd }}.{{ apps_hostname_suffix }}"
prune_deployments_selector: "comp-required!=true,app!=inventory"
prune_builds_selector: "comp-required!=true,app!=inventory"
disable_stage_project: true