Skip to content

datamachines/ansible-role-docker-pdns

Repository files navigation

Data Machines Corp.

Ansible Role Docker PowerDns

Deploy PowerDNS, recursor, admin UIs in Docker-compose this ansible module will deploy all neccessary dependency to store and manage powerDNS, they consistsed of

  • powerdns authoritative server
  • powerdns Recursor
  • mysql database
  • powerdns admin WSGI server
  • powerdns admin Ui web server

Installation

install dependencies

  • pip3 install -r requirments.txt

  • Install complementary roles:

ansible-galaxy install -r install_roles.yml

For some version of ansible on MacOs, you might run into cert issue, simply 
ansible-galaxy --ignore-certs install -r install_roles.yml to install role files to ~/.ansible/role folder
  • Setup environment variable for Hashcorp Vault lookup

    note if don't want to use vault to store you password, you could skip this step, and simply comment out lookup in group_var/all.yml and value in the file

    Source the following environment to configure your environment for the connectivity information used by the ansible-modules-hashivault module to communicate with Vault.

#!/usr/bin/env bash  
# Hashicorp vault environment variables to access vault from the lookup plugin  
# .vault-token should be set to vault master token, https://vault_server/ui/vault/secrets/secret/show/vault-tokens  
export VAULT_TOKEN=$(cat ~/.vault-token)  
export VAULT_ADDR=https://$vault_server
export VAULT_SKIP_VERIFY=1  

Using the role

Now you are ready to run the playbook and deploy PowerDNS. define your host in production file , then

ansible-playbook --private-key=key --user=ubuntu   -v site.yml  

Notice: powerdns admin ui is available via http://$ip:8080

to create a admin user, click on "register" on webui. the first user register/created become a admin user. remember to turn off "Allow users to sign up" function in settings->authentication tab after initial registration.

Links

Even though this information can be found inside the project on machine-readable format like in a .json file, it's good to include a summary of most useful links to humans using your project. You can include links like:

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Licensing

All rights reserved.

About

PowerDNS, PowerDNS-recursor, mysql, powerDNS-admin ui in docker-compose format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published