/etc/ansible/roles/bird/defaults/main.yml
---
# Copyright 2016, Logan Vig <logan2211@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

bird_package_state: latest

bird_conf_dir: /etc/bird

bird_router_id: "{{ ansible_default_ipv4['address'] }}"

# Force an update of the network facts before building the configuration
# This is useful when protocol auto detection is used, because the network may
# have changed since facts were last gathered if they have been cached a while.
bird_gather_net_facts: true

# Auto-enable bird/bird6 if an ipv4/ipv6 default route is present
# Set to true/false to override auto detection
bird_ipv4_enabled: detect
bird_ipv6_enabled: detect

bird_configs:
  - config_file: "{{ bird_conf_dir }}/bird.conf"
    enabled: "{{ bird_ipv4_enabled }}"
    service: bird
    includes: "{{ bird_ipv4_includes }}"
    filters: "{{ bird_ipv4_filters }}"
    protocols: "{{ bird_ipv4_protocols }}"
  - config_file: "{{ bird_conf_dir }}/bird6.conf"
    enabled: "{{ bird_ipv6_enabled }}"
    service: bird6
    includes: "{{ bird_ipv6_includes }}"
    filters: "{{ bird_ipv6_filters }}"
    protocols: "{{ bird_ipv6_protocols }}"

bird_ipv4_includes: []
bird_ipv4_filters: {}
bird_ipv4_protocols: "{{ bird_default_protocols }}"

bird_ipv6_includes: []
bird_ipv6_filters: {}
bird_ipv6_protocols: "{{ bird_default_protocols }}"

bird_default_protocols:
  kernel: "{{ bird_protocols_kernel }}"
  device: "{{ bird_protocols_device }}"
bird_protocols_kernel: |
  scan time 60;
  import none;
bird_protocols_device: |
  scan time 60;