make the default base network match variables.sh
fix SSHKEY usage as is optional to run setup-host.sh Change-Id: I61a0ddfd2fe0415912688742a03a51d9d9b391cc
This commit is contained in:
parent
325076bef6
commit
70c4538671
@ -22,7 +22,7 @@ source functions.rc
|
|||||||
|
|
||||||
# Provide defaults for unset variables
|
# Provide defaults for unset variables
|
||||||
# Set first two octets of network used for containers, storage, etc
|
# Set first two octets of network used for containers, storage, etc
|
||||||
NETWORK_BASE=${NETWORK_BASE:-172.29}
|
NETWORK_BASE=${NETWORK_BASE:-10.29}
|
||||||
|
|
||||||
# Instruct the system do all of the require host setup
|
# Instruct the system do all of the require host setup
|
||||||
SETUP_HOST=${SETUP_HOST:-true}
|
SETUP_HOST=${SETUP_HOST:-true}
|
||||||
|
@ -23,7 +23,7 @@ source functions.rc
|
|||||||
|
|
||||||
# Provide defaults for unset variables
|
# Provide defaults for unset variables
|
||||||
# Set first two octets of network used for containers, storage, etc
|
# Set first two octets of network used for containers, storage, etc
|
||||||
NETWORK_BASE=${NETWORK_BASE:-172.29}
|
NETWORK_BASE=${NETWORK_BASE:-10.29}
|
||||||
|
|
||||||
# Reset the ssh-agent service to remove potential key issues
|
# Reset the ssh-agent service to remove potential key issues
|
||||||
ssh_agent_reset
|
ssh_agent_reset
|
||||||
|
@ -8,7 +8,7 @@ source openrc
|
|||||||
|
|
||||||
# Provide defaults for unset variables
|
# Provide defaults for unset variables
|
||||||
# Set first two octets of network used for containers, storage, etc
|
# Set first two octets of network used for containers, storage, etc
|
||||||
NETWORK_BASE=${NETWORK_BASE:-172.29}
|
NETWORK_BASE=${NETWORK_BASE:-10.29}
|
||||||
|
|
||||||
# Create base flavors for the new deployment
|
# Create base flavors for the new deployment
|
||||||
for flavor in micro tiny mini small medium large xlarge heavy; do
|
for flavor in micro tiny mini small medium large xlarge heavy; do
|
||||||
|
@ -20,6 +20,9 @@ source functions.rc
|
|||||||
# bring in variable definitions if there is a variables.sh file
|
# bring in variable definitions if there is a variables.sh file
|
||||||
[[ -f variables.sh ]] && source variables.sh
|
[[ -f variables.sh ]] && source variables.sh
|
||||||
|
|
||||||
|
# set up ssh key in case setup-infra is not run
|
||||||
|
SSHKEY=${SSHKEY:-$(cat /root/.ssh/id_rsa.pub)}
|
||||||
|
|
||||||
# Use Ansible to install and configure a DHCP server, TFTP server and Apache
|
# Use Ansible to install and configure a DHCP server, TFTP server and Apache
|
||||||
# so we can PXEboot all the VMs
|
# so we can PXEboot all the VMs
|
||||||
ansible-playbook -v -i inventory create_pxeboot_server.yml --extra-vars \
|
ansible-playbook -v -i inventory create_pxeboot_server.yml --extra-vars \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user