browbeat/ansible/check/roles/neutron/tasks/main.yml
Joe 9830171bf5 MTU Check
Adding a check for MTU.

Change-Id: I2234815251483b2d388d06c24343518ad45db26c
2016-08-05 16:43:31 -04:00

29 lines
930 B
YAML

---
- name: Check nova is configured in neutron config
command: crudini --get /etc/neutron/neutron.conf DEFAULT nova_admin_tenant_id
register: neutron_nova_creds
failed_when: neutron_nova_creds.rc == 1
changed_when: false
ignore_errors: True
- name: Check for rootwrap daemon
command: crudini --get /etc/neutron/neutron.conf agent root_helper_daemon
register: neutron_rootwrap_daemon
failed_when: neutron_rootwrap_daemon.rc == 1
changed_when: false
ignore_errors: True
- name: Check MTU
shell: cat /etc/neutron/dnsmasq-neutron.conf | grep 'dhcp\-option\-force=26'
register: neutron_dnsmasq_mtu
failed_when: neutron_dnsmasq_mtu.rc == 0
changed_when: false
ignore_errors: True
- name: Check Neutron.conf MTU
command: crudini --get /etc/neutron/neutron.conf DEFAULT global_physnet_mtu
register: neutron_conf_mtu
failed_when: neutron_conf_mtu.rc == 0
changed_when: false
ignore_errors: True