Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Adds task to adjust mtus for systems requiring it
Browse files Browse the repository at this point in the history
Includes:
 - Adjusting interface mtus
 - Modifying /etc/dnsmasq-ironic.conf for overcloud deploys

Change-Id: I333af9f8d5d2ee8a399fa909a9cabfe0bc9d899c
  • Loading branch information
rlandy committed Jul 11, 2016
1 parent c8ab9f2 commit 0c40d0e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
@@ -1,3 +1,6 @@
---
working_dir: /home/stack
step_root_device_size: false
mtu: 1350
mtu_interface:
- eth1
16 changes: 16 additions & 0 deletions tasks/adjust-mtu-dnsmasq-ironic.yml
@@ -0,0 +1,16 @@
- when: mtu is defined
block:

- name: Adjust interface mtus
become: yes
shell: >
ip link set {{ item }} mtu {{ mtu }};
echo "MTU={{ mtu }}" >> /etc/sysconfig/network-scripts/ifcfg-{{ item }}
with_items: "{{ mtu_interface }}"

- name: Modify dnsmasq-ironic.conf
become: yes
shell: >
echo -e "\ndhcp-option-force=26,{{ mtu }}" >> /etc/dnsmasq-ironic.conf;
systemctl restart 'neutron-*'
2 changes: 2 additions & 0 deletions tasks/main.yml
@@ -1,2 +1,4 @@
---
- include: add-disk-size-hint.yml

- include: adjust-mtu-dnsmasq-ironic.yml

0 comments on commit 0c40d0e

Please sign in to comment.