updated Ironic role to fix tftp-hpa issues

This change addresses two issues:

1 - the tftpd-hpa package has to be installed on all conductors
    regardless of standalone more or not.
2 - the tftpd-hpa has an issue where is till not function over
    ipv4 unless expressly set. To resolve this issue the default
    configuration file has been changed to lockdown the listen
    address and set the port. This is the related launchpad issue
    for tftp-hpa [0]

[0] - https://bugs.launchpad.net/ubuntu/+source/tftp-hpa/+bug/1448500

Change-Id: I9861de0a0384661a27f0971f77ab340f4c1d59e3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-04-08 16:59:34 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 7e7962ae1f
commit 1cb4962922
4 changed files with 5 additions and 4 deletions

View File

@ -163,10 +163,10 @@ ironic_conductor_apt_packages:
- python-yaml
- open-iscsi
- ipmitool
- tftpd-hpa
ironic_conductor_standalone_apt_packages:
- isc-dhcp-server
- tftpd-hpa
## RabbitMQ info
ironic_rabbitmq_userid: ironic

View File

@ -34,8 +34,8 @@
- tftpd-hpa
- name: Copy in tftpd-hpa config file
copy:
src: tftpd-hpa
template:
src: tftpd-hpa.j2
dest: /etc/default/tftpd-hpa
notify:
- Restart tftpd-hpa

View File

@ -134,6 +134,7 @@ pool_max_size = {{ ironic_wsgi_processes }}
[oslo_policy]
[pxe]
tftp_server = {{ ironic_tftp_server_address }}
[seamicro]

View File

@ -1,4 +1,4 @@
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="[::]:69"
TFTP_ADDRESS="{{ ironic_tftp_server_address }}:69"
TFTP_OPTIONS="-vvvv --map-file /tftpboot/map-file"