This repository is used to deploy emulated bare metal nodes using vsbmc in VMware VCenter.
Edit the following as appropriate:
- inventory
- vcenter_vars.yml - rename / modify the example with login info, etc
# activate python env
python -m venv venv
. venv/bin/activate
# everything below is a one time setup
# this installs ansible in your virtualenv
# setup ansible
pip install -U pip
pip install -r requirements.txt
# install collection
ansible-galaxy collection install -r ansible-galaxy.yml
# deploy all the things
ansible-playbook playbooks/main.yml -e @vcenter_vars.yml
# deploy only bare metal emulated vms
ansible-playbook playbooks/playbooks/deploy_vmware_baremetal.yml -e @vcenter_vars.yml
Assumption: Two vCenter Accounts
- Admin Account
- Installer Account (w/ roles assigned)
Script to setup roles in vCenter
# setup vmware roles (optional)
. hacks/vsphere_roles.sh
vsphere_create_roles
hacks/vsphere_roles.sh
is available to help automate the creation of vCenter roles with a vCenter administrator account.
Assign the following roles to the vCenter account being used to install OpenShift at various levels in vCenter listed below.
Role Name | Propagate | Entity |
---|---|---|
openshift-vcenter-level | False | vCenter |
ReadOnly | False | Datacenter |
openshift-cluster-level | True | Cluster |
openshift-datastore-level | False | Datastore |
ReadOnly | False | Switch |
openshift-portgroup-level | False | Port Group |
ReadOnly | True | Virtual Machine folder (Top Level) |
openshift-folder-level | True | Virtual Machine folder |
In a cascading (nested) folder organization you will need "Read-only
" permissions
with "Propagate to children
" from the top folder level.
Example Service Account: OCPInstaller