https://github.com/codekow/vmware-baremetal
Nest Bare Metal in VMware
https://github.com/codekow/vmware-baremetal
openshift vbmc vmware-vsphere vsbmc
Last synced: about 1 year ago
JSON representation
Nest Bare Metal in VMware
- Host: GitHub
- URL: https://github.com/codekow/vmware-baremetal
- Owner: codekow
- Created: 2022-02-12T02:02:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T03:36:28.000Z (about 2 years ago)
- Last Synced: 2025-02-13T18:49:38.354Z (over 1 year ago)
- Topics: openshift, vbmc, vmware-vsphere, vsbmc
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bare Metal Node on VCenter
This repository is used to deploy emulated bare metal nodes using vsbmc in VMware VCenter.
Edit the following as appropriate:
- [inventory](inventory)
- [vcenter_vars.yml](vcenter_vars_example.yml) - rename / modify the example with login info, etc
## Quickstart Setup
```
# 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
```
## Ansible Commands
```
# 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
```
## VMware Notes
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
```
### Admin Account
`hacks/vsphere_roles.sh` is available to help automate the creation of vCenter roles with a vCenter administrator account.
### Installer Account
Assign the following roles to the vCenter account being used to install OpenShift at various levels in vCenter listed below.
### Precreated virtual machine folder in vSphere vCenter
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`
## References
- [Ansible - community.vmware.vmware_guest](https://docs.ansible.com/ansible/2.10/modules/vmware_guest_module.html)
- [Virtual BMC for Vsphere](https://github.com/kurokobo/virtualbmc-for-vsphere)
- [CentOS 8 - Cloud Images](https://cloud.centos.org/centos/8-stream/x86_64/images)