Role - kubeinit_bind

Role Documentation

Welcome to the “kubeinit_bind” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “kubeinit_bind” role.

# All variables intended for modification should be placed in this file.

# All variables within this role should have a prefix of "kubeinit_bind_"
kubeinit_bind_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
kubeinit_bind_hide_sensitive_logs: true

kubeinit_bind_packages_aux: "{% if ( kubeinit_inventory_cluster_distro == 'rke' or\
  \ kubeinit_inventory_cluster_distro == 'cdk' ) %} bind9, bind9utils {% else %} bind,\
  \ bind-utils {% endif %}"
kubeinit_bind_packages: "{{ kubeinit_bind_packages_aux.split(',') }}"
kubeinit_bind_config_folder: "{% if ( kubeinit_inventory_cluster_distro == 'rke' or\
  \ kubeinit_inventory_cluster_distro == 'cdk' ) %}bind{% else %}named{% endif %}"
kubeinit_bind_service_name: "{% if ( kubeinit_inventory_cluster_distro == 'rke' or\
  \ kubeinit_inventory_cluster_distro == 'cdk' ) %}bind9{% else %}named{% endif %}"

Role Variables: main.yml

null
...

Molecule Scenarios

Molecule is being used to test the “kubeinit_bind” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: docker
Example default playbook
- name: Converge
  hosts: all
  # roles:
  #   - role: "kubeinit_bind"
  tasks:
  - name: Message for "kubeinit_bind"
    debug:
      msg: Finishing molecule for "kubeinit_bind"