-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmiqplaybook.yml
36 lines (36 loc) · 1.57 KB
/
miqplaybook.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
---
- hosts: localhost
connection: local
tasks:
- name: Create a new provider in ManageIQ
manageiq_provider:
name: "{{ provider_name|default(lookup('env', 'PROVIDER_NAME')) }}"
type: 'Openshift'
provider:
auth_key: "{{ lookup('env', 'OPENSHIFT_MANAGEMENT_ADMIN_TOKEN') }}"
hostname: "{{ lookup('env', 'OPENSHIFT_MASTER_HOST') }}"
port: 8443
verify_ssl: true
security_protocol: "ssl-with-validation-custom-ca"
certificate_authority: "{{ lookup('env', 'OPENSHIFT_CA_CRT') }}"
metrics:
auth_key: "{{ lookup('env', 'OPENSHIFT_MANAGEMENT_ADMIN_TOKEN') }}"
role: "{{ metrics_role|default('prometheus') }}"
hostname: "{{ lookup('env', 'OPENSHIFT_HAWKULAR_ROUTE') if lookup('env', 'METRICS_ROLE') == 'hawkular' else lookup('env', 'OPENSHIFT_PROMETHEUS_METRICS_ROUTE') }}"
port: 443
verify_ssl: true
security_protocol: "ssl-with-validation-custom-ca"
certificate_authority: "{{ lookup('env', 'OPENSHIFT_CA_CRT') }}"
alerts:
auth_key: "{{ lookup('env', 'OPENSHIFT_MANAGEMENT_ADMIN_TOKEN') }}"
role: 'prometheus_alerts'
hostname: "{{ lookup('env', 'OPENSHIFT_PROMETHEUS_ALERTS_ROUTE') }}"
port: 443
verify_ssl: true
security_protocol: "ssl-with-validation-custom-ca"
certificate_authority: "{{ lookup('env', 'OPENSHIFT_CA_CRT') }}"
manageiq_connection:
url: "{{ cfme_route|default(lookup('env', 'OPENSHIFT_CFME_ROUTE')) }}"
username: 'admin'
password: 'smartvm'
verify_ssl: false