hardcode chrooted bind variables
The current chroot-bind.sh is legacy code that cannot be migrated without a proper understanding of it's historical context. This context might still apply and this script is still used on a variety of new and old machines. By hardcoding the paths when the user requests a chroot, we limit possible breakage.
This commit is contained in:
parent
5008b79ef5
commit
cf8cca745e
|
@ -2,7 +2,8 @@
|
||||||
bind_recursive_server: False
|
bind_recursive_server: False
|
||||||
bind_authoritative_server: True
|
bind_authoritative_server: True
|
||||||
bind_chroot_set: True
|
bind_chroot_set: True
|
||||||
bind_chroot_path: /var/chroot-bind
|
# Until chroot-bind.sh is migrated to ansible, we hardcode the chroot paths.
|
||||||
|
#bind_chroot_path: /var/chroot-bind
|
||||||
bind_systemd_service_path: /etc/systemd/system/bind9.service
|
bind_systemd_service_path: /etc/systemd/system/bind9.service
|
||||||
bind_statistics_file: /var/run/named.stats
|
bind_statistics_file: /var/run/named.stats
|
||||||
bind_log_file: /var/log/bind.log
|
bind_log_file: /var/log/bind.log
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
# Until chroot-bind.sh is migrated to ansible, we hardcode the chroot paths.
|
||||||
|
- name: set chroot variables
|
||||||
|
set_fact:
|
||||||
|
bind_log_file: /var/log/bind.log
|
||||||
|
bind_query_file: /var/log/bind_queries.log
|
||||||
|
bind_cache_dir: /var/cache/bind
|
||||||
|
bind_statistics_file: /var/run/named.stats
|
||||||
|
bind_chroot_path: /var/chroot-bind
|
||||||
|
when: bind_chroot_set
|
||||||
|
|
||||||
- name: package are installed
|
- name: package are installed
|
||||||
apt:
|
apt:
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
|
|
Loading…
Reference in a new issue