Set tftp to only listen to the provisioning network

It doesn't need to be listening to all IP's.

Change-Id: Ib51fe69b32533f5d8814cc0529cd79cf93fbac63
This commit is contained in:
Derek Higgins 2017-12-19 10:16:45 +00:00
parent 3848aea06e
commit 7d69b51dbf
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,6 @@ outputs:
merge: true
preserve_properties: true
/var/lib/kolla/config_files/ironic_pxe_tftp.json:
command: /usr/sbin/in.tftpd --foreground --user root --address 0.0.0.0:69 --map-file /var/lib/ironic/tftpboot/map-file /var/lib/ironic/tftpboot
config_files:
- source: "/var/lib/kolla/config_files/src/*"
dest: "/"
@ -79,6 +78,7 @@ outputs:
ironic_pxe_tftp:
start_order: 90
image: &ironic_pxe_image {get_param: DockerIronicPxeImage}
command: ['/bin/bash', '-c', 'BIND_HOST=$(hiera ironic::pxe::tftp_bind_host -c /etc/puppet/hiera.yaml); /usr/sbin/in.tftpd --foreground --user root --address $BIND_HOST:69 --map-file /var/lib/ironic/tftpboot/map-file /var/lib/ironic/tftpboot']
net: host
privileged: false
restart: always

View File

@ -191,6 +191,7 @@ outputs:
# internal_api_uri -> [IP]
# internal_api_subnet - > IP/CIDR
ironic::drivers::pxe::tftp_server: {get_param: [ServiceNetMap, IronicNetwork]}
ironic::pxe::tftp_bind_host: {get_param: [ServiceNetMap, IronicNetwork]}
# NOTE(dtantsur): UEFI only works with iPXE currently for us
ironic::drivers::pxe::uefi_pxe_config_template: '$pybasedir/drivers/modules/ipxe_config.template'
ironic::drivers::pxe::uefi_pxe_bootfile_name: 'ipxe.efi'