Ansible playbook to create roles in vCenter with privileges to install an OCP cluster using IPI mode
ansible-galaxy collection install community.vmware
python3 -m pip install pyVim PyVmomi| FROM registry.fedoraproject.org/fedora-minimal:latest | |
| WORKDIR /content | |
| RUN microdnf -y install cmake make git /usr/bin/python3 python3-pyyaml \ | |
| python3-jinja2 openscap-utils python3-setuptools \ | |
| jq vim scap-security-guide python3-pip python3-pygithub.noarch && \ | |
| python3 -m pip install --upgrade pip && \ | |
| python3 -m pip install --no-cache sh && \ | |
| rm -rf /var/cache/yum /var/cache/dnf |
| kind: DevWorkspace | |
| apiVersion: workspace.devfile.io/v1alpha2 | |
| metadata: | |
| name: code-latest | |
| spec: | |
| started: true | |
| template: | |
| attributes: | |
| .continue/config.json: | | |
| { |
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: basic-thin-pvc | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | |
| storage: 5Gi |
| apiVersion: v1 | |
| additionalTrustBundlePolicy: Always | |
| baseDomain: mydomain.com | |
| #credentialsMode: Mint | |
| controlPlane: | |
| hyperthreading: Enabled | |
| name: master | |
| platform: | |
| aws: | |
| # zones: # typically derived from the subnets listed later in the file |
| apiVersion: ols.openshift.io/v1alpha1 | |
| kind: OLSConfig | |
| metadata: | |
| name: cluster | |
| spec: | |
| llm: | |
| providers: | |
| - credentialsSecretRef: | |
| name: credentials | |
| models: |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: Template for creating a disconnected VPC in up to 3 AZs | |
| Parameters: | |
| VpcCidr: | |
| AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-4]))$ | |
| ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24. | |
| Default: 10.0.0.0/16 | |
| Description: CIDR block for VPC. |
| schemaVersion: 2.1.0 | |
| metadata: | |
| name: codeassist-images | |
| attributes: | |
| controller.devfile.io/storage-type: ephemeral | |
| controller.devfile.io/scc: container-build | |
| .continue/config.json: | | |
| { | |
| "allowAnonymousTelemetry": false, | |
| "models": [ |
| # enable network | |
| nmcli con show | |
| nmcli con up enp1s0 | |
| mkdir /mnt/tmpfs | |
| mount -o size=8G -t tmpfs none /mnt/tmpfs | |
| # Enable subscription | |
| subscription-manager register | |
| # or copy in /etc/yum.repos.d files for satellite to base system |