forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault_vars_osp.yml
More file actions
150 lines (136 loc) · 3.92 KB
/
default_vars_osp.yml
File metadata and controls
150 lines (136 loc) · 3.92 KB
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
142
143
144
145
146
147
148
149
150
---
################################################################################
### OSP Environment variables
################################################################################
cloud_provider: osp
ansible_user: cloud-user
remote_user: cloud-user
osp_cluster_dns_server: ddns01.opentlc.com
use_dynamic_dns: true
osp_project_create: true
# Default instance type
__instance_type: 2c2g30d
# Default Image
__image: rhel-server-7.7-update-2
security_groups:
- name: FrontendSG
rules:
- name: FrontHTTPPorts
description: "HTTP Public"
from_port: 80
to_port: 80
protocol: tcp
cidr: "0.0.0.0/0"
rule_type: Ingress
- name: HostSG
rules:
- name: FromFrontendTCP
description: "Allow everything from Frontend"
from_port: 1
to_port: 65535
protocol: tcp
from_group: FrontendSG
rule_type: Ingress
- name: FromFrontendUDP
description: "Allow everything from Frontend"
from_port: 1
to_port: 65535
protocol: udp
from_group: FrontendSG
rule_type: Ingress
# Environment Instances
instances:
- name: "bastion"
count: 1
unique: true
public_dns: true
dns_loadbalancer: true
floating_ip: true
image_id: "{{ bastion_instance_image | default(__image) }}"
flavor:
osp: "{{ bastion_instance_type | default(__instance_type) }}"
security_groups:
- BastionSG
- DefaultSG
tags:
- key: "AnsibleGroup"
value: "bastions"
- key: "ostype"
value: "linux"
- key: "instance_filter"
value: "{{ env_type }}-{{ email }}"
- name: "frontend"
count: "{{ frontend_instance_count | default(1) }}"
public_dns: true
dns_loadbalancer: true
image_id: "{{ frontend_instance_image | default(__image) }}"
flavor:
osp: "{{ frontend_instance_type | default(__instance_type) }}"
tags:
- key: "AnsibleGroup"
value: "frontends"
- key: "ostype"
value: "linux"
- key: "instance_filter"
value: "{{ env_type }}-{{ email }}"
security_groups:
- FrontendSG
- DefaultSG
- name: "app"
count: "{{ app_instance_count | default(2) }}"
public_dns: false
image_id: "{{ app_instance_image | default(__image) }}"
flavor:
osp: "{{ app_instance_type | default(__instance_type) }}"
tags:
- key: "AnsibleGroup"
value: "apps"
- key: "ostype"
value: "rhel"
- key: "instance_filter"
value: "{{ env_type }}-{{ email }}"
key_name: "{{key_name}}"
security_groups:
- HostSG
- DefaultSG
- name: "appdb"
count: "{{ appdb_instance_count | default(1) }}"
public_dns: false
image_id: "{{ appdb_instance_image | default(__image) }}"
flavor:
osp: "{{ appdb_instance_type | default(__instance_type) }}"
tags:
- key: "AnsibleGroup"
value: "appdbs"
- key: "ostype"
value: "rhel"
- key: "instance_filter"
value: "{{ env_type }}-{{ email }}"
key_name: "{{key_name}}"
security_groups:
- HostSG
- DefaultSG
#### OSP ####
# See cloud_providers/osp_default_vars.yml
# See roles-infra/infra-osp-project-create/defaults/main.yml
# Set this to true if you need to create a new project in OpenStack
# This should almost always be set to true for OpenShift installations
# If it is set to false, the {{ osp_project_name }} must already exist and
# should be able to run whatever you are deploying
#osp_project_create: true
# If osp_project_create is set to yes, define those:
# Quotas to set for new project that is created
#quota_num_instances: 15
#quota_num_cores: 72
#quota_memory: 131072 # in MB
#quota_num_volumes: 25
#quota_volumes_gigs: 500
#quota_loadbalancers: #when Octavia is available
#quota_pool: #when Octavia is available
#quota_networks: 3
#quota_subnets: 3
#quota_routers: 3
quota_fip: 7
#quota_sg: 10
#quota_sg_rules: 100
...