
Building on from the previous commit https://review.openstack.org/427869 this adds in TFTP configure role which handles all the pre-seed templates and sets up all the PXEBoot files. Change-Id: Ibdf7bfac9bc2c5b5cabdc79ce8584112b2ae0678
49 lines
2.3 KiB
YAML
49 lines
2.3 KiB
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.
|
|
#
|
|
# name: tftpboot_configure/defaults
|
|
# description: ALL our default variables for tftpboot_configure go in here
|
|
#------------------------------------------------------------------------------
|
|
# Packages - All our required packages we need installing
|
|
#------------------------------------------------------------------------------
|
|
|
|
# - variables -
|
|
tftp_mirror: archive.ubuntu.com # Where will we pull our linux boot environment from
|
|
tftp_proxy: blank # What proxy will we use, if any.
|
|
tftp_distro: [ xenial ] # What distribution will we pull
|
|
tftp_files: [ initrd.gz, linux ]
|
|
|
|
ntp_server: pool.ntp.org
|
|
atftpd_path: /srv/tftp # What is the path for our tftpd
|
|
tftp_source: /srv/tftp_source/ # What is the path where the source pxe config files are placed per server
|
|
|
|
atftp_user: nobody # What user does this environment get set up as
|
|
atftp_group: nogroup # What group does this environment get set up as
|
|
|
|
preseed_password: hackme # Default password placed into pre-seed file
|
|
vm_disk_device: vda # Default disk device used in pre-seed
|
|
vm_net_iface: ens3 # Default interface used in pre-seed
|
|
ssh_key: blank
|
|
|
|
# These below variables rely on apache being set up and is where the preseed is set up
|
|
|
|
preseed_apache_url: pxe # What is the url http://server/THISVARHERE
|
|
preseed_path: /var/www/pxe # What path
|
|
webserver_ip_address: "{{ ansible_default_ipv4.address }}"
|
|
|
|
server_list: # What is our list of servers
|
|
- name: blank
|
|
hwaddr: "aa:aa:aa:aa:aa:aa"
|
|
distro: xenial
|
|
preseed_file: my-preseed-file # Allow a custom preseed on a per server basis
|