Skip to content

Instantly share code, notes, and snippets.

Using docker-machine with Photon Platform

The purpose of this repository is to help automate the initial configuration of Tenants, Projects, Quota's, Networks, Images, Clusters (Harbor and Kubernetes). You can modify any of the variables to fit your deployment and environment.

Environment requirements:

compute:
hypervisors:
vlab-esx-80:
hostname: "vlab-esx-80.vballin.com"
ipaddress: "192.168.79.80"
dns: "192.168.64.101"
credential:
username: "root"
password: "netmanftw"
vlab-esx-90:
# ESX Start Host deployment Settings
$ESXIP = "192.168.79.120"
$ESXUser = "root"
$ESXPWD = "VMware1!"
# VCSA Configuration
$VCSACDDrive = "D:\"
$SSODomainName = "vballin.com"
$VCNAME = "vlab-vcsa"
$VCUser = "Administrator@$SSODomainName"
photon cluster show 70fe8e6a-2aa0-467c-9219-a111530c21bc
Cluster ID: 70fe8e6a-2aa0-467c-9219-a111530c21bc
Name: habor01
State: READY
Type: HARBOR
Worker count: 0
Extended Properties: map[netmask:255.255.255.0 dns:192.168.110.10 master_ip:192.168.110.20 ca_cert:-----BEGIN CERTIFICATE-----
MIIFzzCCA7egAwIBAgIJAKFFEoupMchdMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNV
BAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRIwEAYDVQQHDAlQYWxvIEFsdG8x
DzANBgNVBAoMBlZNd2FyZTEbMBkGA1UECwwSVk13YXJlIEVuZ2luZWVyaW5nMRgw
hosts:
- address_ranges: 192.168.79.80
username: root
password: netmanftw
usage_tags:
- MGMT
- CLOUD
metadata:
MANAGEMENT_DATASTORE: vLab-NFS-DS-SSD
MANAGEMENT_PORTGROUP: mgmt-net
#asterisk docker file for unraid 6
FROM phusion/baseimage:0.9.17
MAINTAINER marc brown <marc@22walker.co.uk> v0.0.2
# Set correct environment variables.
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
ENV ASTERISKUSER asterisk
ENV ASTERISKVER 13
ENV FREEPBXVER 13.0
hosts:
- metadata:
MANAGEMENT_DATASTORE: datastore1
MANAGEMENT_PORTGROUP: VM Network
MANAGEMENT_NETWORK_NETMASK: 255.255.255.0
MANAGEMENT_NETWORK_DNS_SERVER: 10.113.61.110
MANAGEMENT_NETWORK_GATEWAY: 192.168.110.1
MANAGEMENT_VM_IPS: 192.168.110.20
address_ranges: 192.168.110.4
username: root
# Setup array with hosts
$computehosts = @(
"10.172.156.85",
"10.172.156.84",
"10.172.156.89"
);
$mgmthost2 = "10.172.156.86"
$mgmthost3 = "10.172.156.91"
############################################
# Configuration Settings #
############################################
$switchName="NSBU-SE-VIO-VDS"
$promiscuous=$true
$forgedTransmits=$true
$macChanges=$true
###################################################
# Shouldn't need to edit anything below this line #