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

Feat: Add Alpine Linux support #222

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ galaxy_info:
license: BSD
min_ansible_version: 2.7
platforms:
- name: Alpine
versions:
- any
- name: ArchLinux
versions:
- any
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

- name: Install BIND
package:
pkg: "{{ item }}"
name: "{{ item }}"
state: present
become: yes
with_items:
Expand Down
2 changes: 2 additions & 0 deletions templates/etc_named.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ logging {
{% endif %}
};

{% if bind_default_zone_files is defined %}
{% for file in bind_default_zone_files %}
include "{{ file }}";
{% endfor %}
{% endif %}
{% for file in bind_extra_include_files %}
include "{{ file }}";
{% endfor %}
Expand Down
30 changes: 30 additions & 0 deletions vars/Alpine.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Distro specific variables for Alpine
---
bind_default_python_version: '3'
bind_packages:
- py3-netaddr
- py3-dnspython
- bind
- bind-tools

bind_service: named

# Main config file
bind_config: /etc/bind/named.conf

# Directory with run-time stuff
bind_dir: /var/bind
bind_conf_dir: /etc/bind
auth_file: auth_transfer.conf
bind_auth_file: "{{ bind_conf_dir }}/{{ auth_file }}"

bind_owner: named
bind_group: named

bind_bindkeys_file: "/etc/named/managed-keys.bind"
bind_pid_file: "/run/named/named.pid"
bind_session_keyfile: "/run/named/session.key"

# Custom location for zone files
bind_zone_dir: "{{ bind_dir }}"
bind_secondary_dir: "{{ bind_dir }}"
Loading