File tree Expand file tree Collapse file tree 11 files changed +372
-0
lines changed Expand file tree Collapse file tree 11 files changed +372
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ This repository consists of additional ansible playbooks for the following:
53531 . Verify IPI day2 operations
54541 . Deploy Openshift Data Foundation operator
55551 . Enabling Kdump
56+ 1 . Deploy Quay Operator
5657
5758## Assumptions:
5859
Original file line number Diff line number Diff line change @@ -556,3 +556,15 @@ update_channel: ""
556556odf_catalogsource_image : " " # Example - quay.io/rhceph-dev/ocs-registry:4.16.3
557557test_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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 1+ ---
2+ - name : Automate Quay operator in OpenShift
3+ hosts : bastion
4+ roles :
5+ - ocp-quay
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments