Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from Koma-Andrea/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
thekoma authored May 20, 2020
2 parents e46a7da + 3f34906 commit 3fd71d5
Show file tree
Hide file tree
Showing 13 changed files with 401 additions and 15 deletions.
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ ocp_vm_create_vm: True # Enable/Disable this portion of role
ocp_vm_install_client: True # Enable/Disable this portion of role
ocp_vm_power_state: poweredon
dns_fail_is_not_fatal: False # Ignore all DNS checks (You should nod ignore this kind of errors)
ptr_fail_is_not_fatal: True # Using iPXE PTR should not be a problem.
ptr_fail_is_not_fatal: False # Using iPXE PTR should not be a problem.
lb_fail_is_not_fatal: False # Using iPXE PTR should not be a problem.

checks_only: False # Do the Checks and exit

Expand Down
118 changes: 118 additions & 0 deletions docs/examples/inventory/inventory-rhcos-grub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# ansible-configured
---
# defaults file for ocp_vm
haproxy:
hosts:
bastion.ocp.mydomain.local
webserver:
hosts:
bastion.ocp.mydomain.local
all:
vars:

enable_reservation: False # Don't want to reserve CPU for now
cpu_biggest: 2100 # 2.1GHZ

vcenter:
host: vcenter.mydomain.local
user: [email protected]
password: 'FILLME'
datacenter: Datacenter01
folder: OCP
validate_certs: no
datastore: "DATASTORE"

ocp_installer:
basedomain: mydomain.local
clustername: ocp
pullsecret: 'FILLME'
sshkey: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
install_type: rhcos # fedoracos | rhcos
clients: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
installer: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz
install_method: grub
template: "rhcos-4.4.3-x86_64-vmware.x86_64"

hosts_defaults:
network:
name: VM Network
mask: 255.255.255.0
gw: 192.168.0.1
dns:
- 192.168.0.2
- 192.168.1.2
- 192.168.1.3
generic:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: other4xLinux64Guest
ignition: none
nested_virt: True
master:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: master.ign
nested_virt: True

bootstrap:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: bootstrap.ign
nested_virt: True

worker:
memory_mb: 8192
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 8192
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: worker.ign
nested_virt: True



vm_hosts:
- hostname: bootstrap.ocp.mydomain.local
annotation: bootstrap
type: bootstrap
network:
ip: 192.168.0.187
- hostname: master1.ocp.mydomain.local
type: master
network:
ip: 192.168.0.180
- hostname: master2.ocp.mydomain.local
type: master
network:
ip: 192.168.0.181
- hostname: master3.ocp.mydomain.local
type: master
network:
ip: 192.168.0.182
- hostname: worker1.ocp.mydomain.local
type: worker
network:
ip: 192.168.0.183



121 changes: 121 additions & 0 deletions docs/examples/inventory/inventory-rhcos-netinstall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# ansible-configured
---
# defaults file for ocp_vm
haproxy:
hosts:
bastion.ocp.mydomain.local
webserver:
hosts:
bastion.ocp.mydomain.local
all:
vars:

enable_reservation: False # Don't want to reserve CPU for now
cpu_biggest: 2100 # 2.1GHZ

vcenter:
host: vcenter.mydomain.local
user: [email protected]
password: 'FILLME'
datacenter: Datacenter01
folder: OCP
validate_certs: no
datastore: "DATASTORE"

ocp_installer:
basedomain: mydomain.local
clustername: ocp
pullsecret: 'FILLME'
sshkey: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
install_type: rhcos # fedoracos | rhcos
kernel: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/latest/rhcos-4.4.3-x86_64-installer-kernel-x86_64
initrd: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/latest/rhcos-4.4.3-x86_64-installer-initramfs.x86_64.img
coreos_image: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/latest/rhcos-4.4.3-x86_64-metal.x86_64.raw.gz
clients: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
installer: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz
coreos_sha256: https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.4/latest/sha256sum.txt
install_method: netinstall

hosts_defaults:
network:
name: VM Network
mask: 255.255.255.0
gw: 192.168.0.1
dns:
- 192.168.0.2
- 192.168.1.2
- 192.168.1.3
generic:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: other4xLinux64Guest
ignition: none
nested_virt: True
master:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: master.ign
nested_virt: True

bootstrap:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: bootstrap.ign
nested_virt: True

worker:
memory_mb: 8192
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 8192
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: worker.ign
nested_virt: True



vm_hosts:
- hostname: bootstrap.ocp.mydomain.local
annotation: bootstrap
type: bootstrap
network:
ip: 192.168.0.187
- hostname: master1.ocp.mydomain.local
type: master
network:
ip: 192.168.0.180
- hostname: master2.ocp.mydomain.local
type: master
network:
ip: 192.168.0.181
- hostname: master3.ocp.mydomain.local
type: master
network:
ip: 192.168.0.182
- hostname: worker1.ocp.mydomain.local
type: worker
network:
ip: 192.168.0.183



115 changes: 115 additions & 0 deletions docs/examples/inventory/inventory-rhcos-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# ansible-configured
---
# defaults file for ocp_vm
haproxy:
hosts:
bastion.ocp.mydomain.local
all:
vars:

enable_reservation: False # Don't want to reserve CPU for now
cpu_biggest: 2100 # 2.1GHZ

vcenter:
host: vcenter.mydomain.local
user: [email protected]
password: 'FILLME'
datacenter: Datacenter01
folder: OCP
validate_certs: no
datastore: "DATASTORE"

ocp_installer:
basedomain: mydomain.local
clustername: ocp
pullsecret: 'FILLME'
sshkey: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
install_type: rhcos # fedoracos | rhcos
clients: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
installer: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-install-linux.tar.gz
install_method: template
template: "rhcos-4.4.3-x86_64-vmware.x86_64"

hosts_defaults:
network:
name: VM Network
mask: 255.255.255.0
gw: 192.168.0.1
dns:
- 192.168.0.2
- 192.168.1.2
- 192.168.1.3
generic:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: other4xLinux64Guest
ignition: none
nested_virt: True
master:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: master.ign
nested_virt: True

bootstrap:
memory_mb: 16384
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 16384
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: bootstrap.ign
nested_virt: True

worker:
memory_mb: 8192
num_cpus: 4
num_cpu_cores_per_socket: 1
mem_limit: 8192
mem_reservation: 0
disk: 120
memory_reservation_lock: False
guest_id: coreos64Guest
ignition: worker.ign
nested_virt: True



vm_hosts:
- hostname: bootstrap.ocp.mydomain.local
annotation: bootstrap
type: bootstrap
network:
ip: 192.168.0.187
- hostname: master1.ocp.mydomain.local
type: master
network:
ip: 192.168.0.180
- hostname: master2.ocp.mydomain.local
type: master
network:
ip: 192.168.0.181
- hostname: master3.ocp.mydomain.local
type: master
network:
ip: 192.168.0.182
- hostname: worker1.ocp.mydomain.local
type: worker
network:
ip: 192.168.0.183



5 changes: 5 additions & 0 deletions docs/examples/playbook/create_infra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- hosts: all
remote_user: root
roles:
- openshift4_vmware_infra_provisioner
14 changes: 14 additions & 0 deletions docs/examples/playbook/recreate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- hosts: all
vars:
ocp_vm_cleanup: True
remote_user: root
roles:
- openshift4_vmware_infra_provisioner

- hosts: all
vars:
ocp_vm_cleanup: False
remote_user: root
roles:
- openshift4_vmware_infra_provisioner
Loading

0 comments on commit 3fd71d5

Please sign in to comment.