-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample_config.yaml
154 lines (145 loc) · 4.35 KB
/
example_config.yaml
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
151
152
153
154
---
# General settings. They cover main infrastructure that camayoc interacts
# with and camayoc itself.
# Camayoc test framework settings
camayoc: {}
# Quipucords / Discovery server
# Settings below allow you to connect to quipucords development server
# running locally.
# If you run Discovery server locally in container, set the port to 443
# and https to true. Keep ssl-verify as false, unless you've set up the
# certificates.
quipucords_server:
hostname: '127.0.0.1'
https: false
port: 8000
ssl-verify: false
# credentials for logging into the server
username: 'admin'
password: 'CHANGEME'
ssh_keyfile_path: '/home/user/.local/share/quipucords/sshkeyfiles/'
# Quipucords / Discovery CLI
quipucords_cli:
executable: qpc
# We host most of our test machines on a VCenter instance
# and this section contains its URL and the credentials
# needed to log in to it
vcenter:
hostname: OURTEAMVCENTER.com
password: "CHANGETHISPASSWORD"
username: CHANGETHISUSERNAME
# Data-related settings. They cover various entities that camayoc might
# create in Quipucords during test execution. Storing them here allows
# us to simplify scan / report tests, or express requests like "give me
# random working network-type source".
credentials:
- name: root
type: 'network'
# NOTE: When running quipucords in a container, this path
# must be the path that exists in the container.
sshkeyfile: ~/.ssh/id_rsa
username: root
- name: root2
type: 'network'
username: root
password: "mysecretpassword"
- name: 'vcenter'
type: 'vcenter'
password: 'example1'
username: 'username1'
- name: 'sat6'
type: 'satellite'
password: 'CHANGEME'
username: 'CHANGEUSERNAME'
- name: 'OpenShift'
type: 'openshift'
auth_token: 'sha256~XYZabc...'
- name: 'rhacs'
type: 'rhacs'
auth_token: 'these_tend_to_be_very_long'
# Values in "credentials" field can use names present in "credentials" section
# above
sources:
- hosts:
- 'myfavnetwork.com'
credentials:
- root
name: 'myfav'
type: 'network'
- hosts:
- 'my_vcenter.com'
credentials:
- 'vcenter'
name: 'vcenter'
type: 'vcenter'
options:
ssl_cert_verify: false
- hosts:
- 'sat6.com'
credentials:
- 'sat6'
name: 'sat6'
type: 'satellite'
options:
ssl_cert_verify: false
- hosts:
- 'api.example.com'
credentials:
- 'OpenShift'
name: 'OpenShift'
type: 'openshift'
options:
ssl_cert_verify: false
- hosts:
- 'acs-endpoint.acs.mycluster.com'
credentials:
- 'rhacs'
name: 'RHACS'
type: 'rhacs'
options:
ssl_cert_verify: false
# Values in "sources" field can use names present in "sources" section above
scans:
- name: ExampleSat6
sources:
# these refer to the hostnames in the inventory section
- 'sat6'
- name: ExampleWithProducts
sources:
- 'myfav'
- 'vcenter'
expected_data:
jbossamq-rhel-5-vc:
distribution:
# Name of OS should be substring of name found
# with quipucords
name: 'Red Hat Enterprise Linux'
# version should be substring of version found
# in /etc/redhat-release
version: '5.9'
release: ''
is_redhat: true
jbossamq-rhel-6-vc:
distribution:
name: 'Red Hat Enterprise Linux'
version: '6.9'
release: ''
is_redhat: true
- name: OpenShift
sources:
- 'OpenShift'
expected_data:
OpenShift:
cluster_id: '00000000-1111-2222-3333-123456789abc'
version: '4.11.32'
nodes:
- 'master-0.example.com'
- 'master-1.example.com'
- 'master-2.example.com'
- 'worker-0.example.com'
- 'worker-1.example.com'
- 'worker-2.example.com'
- 'worker-3.example.com'
operators:
- 'abc-operator'
- 'xyz-operator'