Skip to content

cptmorgan-rh/fcos-coredns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoreDNS on Fedora CoreOS in VMware with Static IP

Description


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.

Quickstart

Start by editing the group_vars/all.yml file:

  • Set the vCenter variables

    1. IP/Host Name of vCenter
    2. vCenter Network
    3. Datastore name
    4. Datacenter name
    5. username and passwords of vCenter Account
    6. Absoluate folder path - e.g /DataCenter/vm/Folder/
    7. VM Power state after being deployed
  • Configure your Fedora CoreOS URL and govc version.

    1. Set the Fedora CoreOS stream version. stable is the default
  • Configure your CoreDNS VM Settings

    1. VM and Host Name
    2. IP Addr, Gateway, Net Mask, DNS
    3. Number of CPUs
    4. Amount of Memory in MB
    5. Size of the HDD in GBs
  • Configure your A Records

    1. Ex: - { name: "server1", ipaddr: "10.0.0.1" }
  • Configure your CNAME Records if required

    1. Ex: - { name: "www", alias: "server1" }

Infrastructure Prerequisites

  1. vSphere ESXi and vCenter 6.7 or 7.0 installed.
  2. A datacenter created with a vSphere host added to it and a datastore exists that has adequate capacity.
  3. Ansible (preferably latest) on the machine where this repo is cloned.
    1. Before you install Ansible, install the epel-release, run yum -y install epel-release

USAGE

Run Deploy Playbook

# Deploy the Lab and all components
ansible-playbook deploy-coredns.yml

deploy-aio-lab.yml Extra Variables

skip_ova=true - Skips downloading and deploying the OVA if previous deployed to vCenter. redeploy=true - Deletes existing CoreDNS vm

Expected Outcome

  1. Necessary Linux packages installed for the installation
  2. Necessary folders [bin, downloads] created
  3. govc downloaded and extracted
  4. FCOS ova downloaded to the downloads folder
  5. CoreDNS VM is created in the designated folder and (in state of) poweredon

AUTHOR

Morgan Peterman

About

This is an Ansible Playbook that will deploy a CoreDNS Container into a Fedora CoreOS Server on VMware with a Static IP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages