Browse Source

enable local name resolution + enable wildcard on router

master
Nicolas Massé 9 years ago
parent
commit
e579469836
  1. 9
      roles/openshift-postinstall/tasks/main.yml
  2. 2
      roles/openshift-postinstall/templates/wildcard.conf

9
roles/openshift-postinstall/tasks/main.yml

@ -11,3 +11,12 @@
register: oc
failed_when: oc.rc > 0 and 'Error from server (NotFound):' not in oc.stderr
changed_when: oc.rc == 0
- name: Update the router to allow Wildcards
command: oc set env dc/router ROUTER_ALLOW_WILDCARD_ROUTES=true -n default
- name: Update the dnsmasq configuration to reference the wildcard DNS entry
template: src=wildcard.conf dest=/etc/dnsmasq.d/wildcard.conf
- name: Restart the dnsmasq service
service: name=dnsmasq enabled=yes state=restarted

2
roles/openshift-postinstall/templates/wildcard.conf

@ -0,0 +1,2 @@
address=/{{ openshift_master_default_subdomain }}/{{ hostvars[groups['masters'][0]]['ansible_default_ipv4']['address'] }}
Loading…
Cancel
Save