35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright 2013 Mirantis, Inc.
|
|
#
|
|
# 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.
|
|
|
|
#
|
|
# This script can be used as a handly utility to provide master node with the internet access
|
|
# It configures network interface inside the VM which is mapped to VirtualBox NAT adapter, and
|
|
# also configures default gateway.
|
|
#
|
|
# Typically, you would use this script after time after rebooting VirtualBox VM with the master node.
|
|
|
|
# Include the handy functions to operate VMs and track ISO installation progress
|
|
source ./config.sh
|
|
source ./functions/vm.sh
|
|
source ./functions/product.sh
|
|
|
|
# Master node name
|
|
name="${vm_name_prefix}master"
|
|
|
|
# Enable outbound network/internet access for the machine
|
|
enable_outbound_network_for_product_vm $vm_master_ip $vm_master_username $vm_master_password "$vm_master_prompt" 3 $vm_master_nat_gateway
|
|
|