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

Commit

Permalink
Ironic: Use generated dnsmasq conf file
Browse files Browse the repository at this point in the history
Current puppet-ironic supports generating config file to run dnsmasq
as tftp server.

This change replaces usage of hiera CLI by the generated file to reduce
usage of deprecated hiera CLI.

Change-Id: Id5c6cf3e41e22ee5275d0fd822b313333bfa1b33
  • Loading branch information
kajinamit committed Mar 10, 2022
1 parent 4dc74ac commit 8813340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployment/ironic/ironic-pxe-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ outputs:
description: Role data for the Ironic PXE role.
value:
service_name: ironic_pxe
config_settings: {}
config_settings:
ironic::pxe::tftp_use_xinetd: false
service_config_settings: {}
# BEGIN DOCKER SETTINGS
puppet_config:
Expand Down Expand Up @@ -93,6 +94,7 @@ outputs:
owner: ironic:ironic
recurse: true
/var/lib/kolla/config_files/ironic_pxe_tftp.json:
command: /usr/sbin/dnsmasq -k --log-facility=/var/log/ironic/dnsmasq.log --user=root --conf-file=/etc/ironic/dnsmasq-tftp-server.conf
config_files:
- source: "/var/lib/kolla/config_files/src/*"
dest: "/"
Expand Down Expand Up @@ -140,7 +142,6 @@ outputs:
ironic_pxe_tftp:
start_order: 90
image: &ironic_pxe_image {get_attr: [RoleParametersValue, value, ContainerIronicPxeImage]}
command: ['/bin/bash', '-c', 'BIND_HOST=$(hiera ironic::pxe::tftp_bind_host -c /etc/puppet/hiera.yaml); /usr/sbin/dnsmasq --keep-in-foreground --log-facility=/var/log/ironic/dnsmasq.log --user=root --conf-file=/dev/null --listen-address=$BIND_HOST --port=0 --enable-tftp --tftp-root=/var/lib/ironic/tftpboot']
net: host
cap_add:
- NET_ADMIN
Expand Down

0 comments on commit 8813340

Please sign in to comment.