Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove EOL versions and update README #68

Merged
merged 2 commits into from
Oct 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An Ansible role created by the folks behind PowerDNS to setup the [PowerDNS Recu

## Requirements

An Ansible 2.2 or higher installation.
An Ansible 2.7 or higher installation.

## Dependencies

Expand All @@ -32,17 +32,17 @@ By default, the PowerDNS Recursor is installed from the software repositories co
- { role: PowerDNS.pdns_recursor,
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_master }}" }

# Install the PowerDNS Recursor from the '4.1.x' official repository
# Install the PowerDNS Recursor from the '4.3.x' official repository
- hosts: pdns-recursors
roles:
- { role: PowerDNS.pdns_recursor,
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_41 }}" }
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_43 }}" }

# Install the PowerDNS Recursor from the '4.2.x' official repository
# Install the PowerDNS Recursor from the '4.4.x' official repository
- hosts: pdns-recursors
roles:
- { role: PowerDNS.pdns_recursor,
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_42 }}" }
pdns_rec_install_repo: "{{ pdns_rec_powerdns_repo_44 }}" }
```

The examples above, show how to install the PowerDNS Recursor from the official PowerDNS repositories
Expand Down Expand Up @@ -206,6 +206,23 @@ Allow traffic from multiple networks and set some custom ulimits overriding the
- { role: PowerDNS.pdns_recursor }
```

Allow traffic from multiple networks and set some custom ulimits overriding the default systemd service,
but keeping in the default overrides from this role. This is recommended when using PowerDNS 4.3 and up.

```yaml
- hosts: pdns-recursors
vars:
pdns_rec_config:
allow-from:
- "198.51.100.0/24"
- "203.0.113.53/24"
local-address: "203.0.113.53:5300"
pdns_rec_service_overrides: '{{ default_pdns_rec_service_overrides | combine({"LimitNOFILE": 10000})'
roles:
- { role: PowerDNS.pdns_recursor }
```


Forward queries for corp.example.net to a nameserver on localhost and queries for foo.example to other nameservers:

```yaml
Expand Down Expand Up @@ -235,7 +252,7 @@ To test all the scenarios run

To run a custom molecule command

$ tox -e py27-ansible22 -- molecule test -s pdns-rec-42
$ tox -e py36-ansible28 -- molecule test -s pdns-rec-42

## License

Expand Down
18 changes: 0 additions & 18 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,6 @@ pdns_rec_powerdns_repo_master:
yum_debug_symbols_repo_baseurl: "https://repo.powerdns.com/centos/$basearch/$releasever/rec-master/debug"
name: "powerdns-rec-master"

pdns_rec_powerdns_repo_40:
apt_repo_origin: "repo.powerdns.com"
apt_repo: "deb [arch=amd64] https://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-rec-40 main"
gpg_key: "https://repo.powerdns.com/FD380FBB-pub.asc"
gpg_key_id: "9FAAA5577E8FCF62093D036C1B0C6205FD380FBB"
yum_repo_baseurl: "https://repo.powerdns.com/centos/$basearch/$releasever/rec-40"
yum_debug_symbols_repo_baseurl: "https://repo.powerdns.com/centos/$basearch/$releasever/rec-40/debug"
name: "powerdns-rec-40"

pdns_rec_powerdns_repo_41:
apt_repo_origin: "repo.powerdns.com"
apt_repo: "deb [arch=amd64] https://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-rec-41 main"
gpg_key: "https://repo.powerdns.com/FD380FBB-pub.asc"
gpg_key_id: "9FAAA5577E8FCF62093D036C1B0C6205FD380FBB"
yum_repo_baseurl: "https://repo.powerdns.com/centos/$basearch/$releasever/rec-41"
yum_debug_symbols_repo_baseurl: "https://repo.powerdns.com/centos/$basearch/$releasever/rec-41/debug"
name: "powerdns-rec-41"

pdns_rec_powerdns_repo_42:
apt_repo_origin: "repo.powerdns.com"
apt_repo: "deb [arch=amd64] https://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release | lower }}-rec-42 main"
Expand Down