diff --git a/setup/operators/installtemplates/ansible-automation-platform.yaml b/setup/operators/installtemplates/ansible-automation-platform.yaml new file mode 100644 index 000000000..9fb1d4c18 --- /dev/null +++ b/setup/operators/installtemplates/ansible-automation-platform.yaml @@ -0,0 +1,28 @@ +apiVersion: template.openshift.io/v1 +kind: Template +metadata: + name: install-ansible-automation-platform +objects: + - apiVersion: v1 + kind: Namespace + metadata: + name: ${AAP_NAMESPACE} + - apiVersion: operators.coreos.com/v1 + kind: OperatorGroup + metadata: + name: aap-operator-group + namespace: ${AAP_NAMESPACE} + - apiVersion: operators.coreos.com/v1alpha1 + kind: Subscription + metadata: + name: aap-operator + namespace: ${AAP_NAMESPACE} + spec: + channel: stable-2.4-cluster-scoped + installPlanApproval: Automatic + name: ansible-automation-platform-operator + source: redhat-operators + sourceNamespace: openshift-marketplace +parameters: + - name: AAP_NAMESPACE + value: ansible-automation-platform diff --git a/setup/operators/operators.go b/setup/operators/operators.go index 4692f9873..1d1a0903c 100644 --- a/setup/operators/operators.go +++ b/setup/operators/operators.go @@ -40,6 +40,7 @@ var Templates = []string{ "serverless-operator.yaml", "web-terminal-operator.yaml", "gitops-primer-template.yaml", + "ansible-automation-platform.yaml", "kiali.yaml", // OSD comes with an operator that creates CSVs in all namespaces so kiali is being used in this case to mimic the behaviour on OCP clusters }