Skip to content

Commit e191a6f

Browse files
ocp_quay
Signed-off-by: Yashansh-Sharma15 <[email protected]>
1 parent e50ffec commit e191a6f

File tree

11 files changed

+372
-0
lines changed

11 files changed

+372
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ This repository consists of additional ansible playbooks for the following:
5353
1. Verify IPI day2 operations
5454
1. Deploy Openshift Data Foundation operator
5555
1. Enabling Kdump
56+
1. Deploy Quay Operator
5657

5758
## Assumptions:
5859

examples/all.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,3 +556,15 @@ update_channel: ""
556556
odf_catalogsource_image: "" #Example - quay.io/rhceph-dev/ocs-registry:4.16.3
557557
test_pod_image: "quay.io/powercloud/nginx-unprivileged:latest"
558558

559+
# ocp-quay required vars
560+
quay_enabled: false #set to true for quay operator installation
561+
lso_index: "" # provide LSO index image
562+
cluster_upi: true #set to true if using UPI cluster
563+
quay_registry_namespace: "" #Nmaespace for quay-registry
564+
quay_catalogsource_name: "" # CatalogSource Name
565+
quay_catalogsource_image: "" # CatalogSource Image
566+
quay_operator_channel : # Version of Quay to be installed
567+
server_hostname: "" # Hostname for Quayconfig
568+
volume_path: "/dev/disk/by-id/......" #Get the volume path using "ls /dev/disk/by-id/......"
569+
odf_index: " " #Example - quay.io/rhceph-dev/ocs-registry:4.16.3
570+
odf_channel: #Define this to set subscription channel for ODF Operator

examples/ocp_quay_vars.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ocp-quay vars
2+
3+
quay_enabled: false #set to true for quay operator installation
4+
lso_index: "" # provide LSO index image
5+
cluster_upi: true #set to true if using UPI cluster
6+
quay_registry_namespace: "" #Nmaespace for quay-registry
7+
quay_catalogsource_name: "" # CatalogSource Name
8+
quay_catalogsource_image: "" # CatalogSource Image
9+
quay_operator_channel : # Version of Quay to be installed
10+
server_hostname: "" # Hostname for Quayconfig
11+
volume_path: "/dev/disk/by-id/......" #Get the volume path using "ls /dev/disk/by-id/......"
12+
odf_index: " " #Example - quay.io/rhceph-dev/ocs-registry:4.16.3
13+
odf_channel: #Define this to set subscription channel for ODF Operator

playbooks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,6 @@
159159
- import_playbook: ocp-odf-operator.yml
160160
when: odf_enabled is defined and odf_enabled
161161

162+
- import_playbook: ocp-quay.yml
163+
when: quay_enabled is defined and quay_enabled
164+

playbooks/ocp-quay.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- name: Automate Quay operator in OpenShift
3+
hosts: bastion
4+
roles:
5+
- ocp-quay

playbooks/roles/ocp-quay/README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
Quay Automation
3+
=========
4+
5+
This playbook will:
6+
- Install Quay operator
7+
- Install LSO operator
8+
- Install ODF operator
9+
10+
Requirements
11+
------------
12+
13+
- Access to the cluster as a user with the cluster-admin role
14+
- The cluster is in a known good state, without any errors
15+
- OCP secret with name ***podman-secret*** in the default namespace which is used for global secret update and has following keys:
16+
***username***, ***password*** and ***registry***
17+
18+
19+
Role Variables
20+
--------------
21+
| Variable | Required | Default | Comments |
22+
|--------------------------------|----------|-------------|------------------------------------------------|
23+
| quay_enabled | no | false | Set it to true to run this playbook |
24+
| quay_registry_namespace | no | "quay-registry" | Quay registry namespace |
25+
| quay_catalogsource_name | no | | Quay Catalogsource Name |
26+
| quay_catalogsource_image | no | | Quay Catalogsource Image |
27+
| lso_index | no | " " | Index image for LSO operator |
28+
| odf_index | no | " " | Index image for ODF operator |
29+
| odf_channel | no | It uses default channel | It is used to set subscription channel for ODF Operator |
30+
| cluster_upi | no | false | #set to true if using UPI cluster |
31+
| volume_path | no | false | #Get the volume path using "ls /dev/disk/by-id/" |
32+
33+
Dependencies
34+
------------
35+
36+
- Import LSO role
37+
- Import ODF role
38+
39+
Example Playbook
40+
----------------
41+
42+
```
43+
- name: Deploy Quay operator in OpenShift
44+
include_role:
45+
name: ocp-quay
46+
```
47+
48+
License
49+
-------
50+
51+
See LICENCE.txt
52+
53+
Author Information
54+
------------------
55+
56+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ocp-quay vars
2+
3+
quay_enabled: false #set to true for quay operator installation
4+
lso_index: "" # provide LSO index image
5+
cluster_upi: true #set to true if using UPI cluster
6+
quay_registry_namespace: "quay-registry" #Nmaespace for quay-registry
7+
quay_catalogsource_name: "quay-catsrc-zyz" # CatalogSource Name
8+
quay_catalogsource_image: "brew.registry.redhat.io/rh-osbs/iib:1009805" # CatalogSource Image
9+
quay_operator_channel : # Version of Quay to be installed
10+
server_hostname: "quay-registry.apps.xyz.ibm.com" # Hostname for Quayconfig
11+
volume_path: "/dev/disk/by-id/......" #Get the volume path using "ls /dev/disk/by-id/......"
12+
odf_index: " " #Example - quay.io/rhceph-dev/ocs-registry:4.16.3
13+
odf_channel: #Define this to set subscription channel for ODF Operator
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
SERVER_HOSTNAME: "{{ server_hostname }}"
2+
PREFERRED_URL_SCHEME: https
3+
FEATURE_UI_V2: true
4+
FEATURE_UI_V2_REPO_SETTINGS: true
5+
FEATURE_AUTO_PRUNE: true
6+
ROBOTS_DISALLOW: false
7+
BROWSER_API_CALLS_XHR_ONLY: false
8+
SUPER_USERS:
9+
- quay
10+
FEATURE_USER_INITIALIZE: true
11+
FEATURE_QUOTA_MANAGEMENT: true
12+
FEATURE_PROXY_CACHE: true
13+
PERMANENTLY_DELETE_TAGS: true
14+
RESET_CHILD_MANIFEST_EXPIRATION: true
15+
FEATURE_REPO_MIRROR: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: quay.redhat.com/v1
2+
kind: QuayRegistry
3+
metadata:
4+
name: quayreg1
5+
namespace: quay-registry
6+
spec:
7+
configBundleSecret: config-bundle-secret
8+
components:
9+
- kind: clair
10+
managed: true
11+
- kind: quay
12+
managed: true
13+
- kind: postgres
14+
managed: true
15+
overrides:
16+
env:
17+
- name: DEBUGLOG
18+
value: "true"
19+
- kind: redis
20+
managed: true
21+
- kind: horizontalpodautoscaler
22+
managed: true
23+
- kind: objectstorage
24+
managed: true
25+
- kind: route
26+
managed: true
27+
- kind: mirror
28+
managed: false
29+
- kind: monitoring
30+
managed: true
31+
- kind: tls
32+
managed: true
33+
- kind: clairpostgres
34+
managed: true
35+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: quay.redhat.com/v1
2+
kind: QuayRegistry
3+
metadata:
4+
name: quayreg1
5+
namespace: quay-registry
6+
spec:
7+
configBundleSecret: config-bundle-secret

0 commit comments

Comments
 (0)