The goal of this repository is to provide a simple, reproducible way to deploy CoreDNS on a Fedora CoreOS server inside of VMware with Static IPs. Currently this repository supports setting A Records and CNAME records.
Start by editing the group_vars/all.yml
file:
-
Set the vCenter variables
- IP/Host Name of vCenter
- vCenter Network
- Datastore name
- Datacenter name
- username and passwords of vCenter Account
- Absoluate folder path - e.g /DataCenter/vm/Folder/
- VM Power state after being deployed
-
Configure your Fedora CoreOS URL and govc version.
- Set the Fedora CoreOS stream version.
stable
is the default
- Set the Fedora CoreOS stream version.
-
Configure your CoreDNS VM Settings
- VM and Host Name
- IP Addr, Gateway, Net Mask, DNS
- Number of CPUs
- Amount of Memory in MB
- Size of the HDD in GBs
-
Configure your A Records
- Ex: - { name: "server1", ipaddr: "10.0.0.1" }
-
Configure your CNAME Records if required
- Ex: - { name: "www", alias: "server1" }
- vSphere ESXi and vCenter 6.7 or 7.0 installed.
- A datacenter created with a vSphere host added to it and a datastore exists that has adequate capacity.
- Ansible (preferably latest) on the machine where this repo is cloned.
- Before you install Ansible, install the
epel-release
, runyum -y install epel-release
- Before you install Ansible, install the
# Deploy the Lab and all components
ansible-playbook deploy-coredns.yml
skip_ova=true
- Skips downloading and deploying the OVA if previous deployed to vCenter.
redeploy=true
- Deletes existing CoreDNS vm
- Necessary Linux packages installed for the installation
- Necessary folders [bin, downloads] created
- govc downloaded and extracted
- FCOS ova downloaded to the downloads folder
- CoreDNS VM is created in the designated folder and (in state of) poweredon
Morgan Peterman