
Building on from the previous commit https://review.openstack.org/427869 this adds in DHCPD role to provide DHCP to the virtual machines which are booting up and point them towards our TFTP server. Change-Id: I73649562096a659dee7227b0cfb84f2c4a4f5ec4
25 lines
817 B
YAML
25 lines
817 B
YAML
---
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# module: dhcpd_install/tasks/configure
|
|
# description: Configure dhcpd_install
|
|
|
|
- name: Create a template in /etc/dhcp/dhcpd.conf
|
|
template:
|
|
src: dhcpd.conf.j2
|
|
dest: /etc/dhcp/dhcpd.conf
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
notify: restart dhcpd
|