Skip to content

Commit

Permalink
automated url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemons-redhat committed Oct 16, 2023
1 parent 79d77ed commit 342bf82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions openshift/gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
retries: 10
delay: 30

- name: Grab url for Gitlab spec
ansible.builtin.set_fact:
cluster_domain: "apps{{ lookup('ansible.builtin.env', 'K8S_AUTH_HOST') | regex_search('\\.[^:]*') }}"
when: cluster_domain is undefined

- name: Deploy a GitLab instance
redhat.openshift.k8s:
state: present
Expand Down
10 changes: 0 additions & 10 deletions openshift/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,3 @@ controller_templates:
notification_templates_error: Telemetry
credentials:
- "OpenShift Credential"
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: Enter the base domain for your cluster
default: 'Example: apps.cluster-123ab.123ab.sandbox987.opentlc.com'
type: text
variable: cluster_domain
required: true

0 comments on commit 342bf82

Please sign in to comment.