Ansible role for installing and configuring mesos-dns in the cluster. Can choose either server
(NOT MAINTAINED, at the moment) or client
setup.
Mesos-dns is deployed on Marathon, assuming it is run on Mesos master machine.
Based on https://github.com/mesosphere/mesos-dns/blob/master/contrib/ansible-gce/roles
None.
mesos_dns_install_mode
should beserver
(NOT MAINTAINED, at the moment) orclient
zk
comma separated list of Zookeeper host:port to monitor and detect Mesos masters, used inserver
setupmarathon
defaults to localhost:8080dns_host
used inclient
setup to configure the dns server address
None.
- hosts: [mesos_workers[0]]
sudo: True
roles:
- { role: 'ansible-mesos-dns-server', zk: "{{ groups.mesos_primaries | join(':' + zookeeper_client_port + ',') }}:{{ zookeeper_client_port }}", tags: ['dns-server'] }
- hosts: [mesos_workers]
sudo: True
roles:
- { role: 'ansible-mesos-dns-client', dns_host: "{{ groups.mesos_workers[0] }}", tags: ['dns-client'] }