Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 17, 2023
1 parent 4aeab3f commit 2b23f05
Show file tree
Hide file tree
Showing 7 changed files with 334 additions and 13 deletions.
166 changes: 166 additions & 0 deletions ansible-ipi-install/cloud13_ocpinventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"nodes": [
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:f4:15:9c",
"b4:96:91:f4:15:9d",
"b8:3f:d2:24:4b:d8",
"b8:3f:d2:24:4b:d9",
"00:62:0b:28:90:31"
],
"memory": "1024",
"name": "d19-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-d19-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:f4:1b:cc",
"b4:96:91:f4:1b:cd",
"b8:3f:d2:23:e3:a0",
"b8:3f:d2:23:e3:a1",
"84:16:0c:b4:8b:c1"
],
"memory": "1024",
"name": "d19-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-d19-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:f4:16:6c",
"b4:96:91:f4:16:6d",
"b8:3f:d2:24:5d:28",
"b8:3f:d2:24:5d:29",
"00:62:0b:26:32:91"
],
"memory": "1024",
"name": "d19-h28-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-d19-h28-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e5:7e",
"b4:96:91:cc:e5:7f",
"08:c0:eb:35:0c:e2",
"08:c0:eb:35:0c:e3",
"5c:6f:69:56:a5:e1"
],
"memory": "1024",
"name": "e29-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:d1:f7:da",
"b4:96:91:d1:f7:db",
"08:c0:eb:35:16:12",
"08:c0:eb:35:16:13",
"5c:6f:69:57:b8:51"
],
"memory": "1024",
"name": "e29-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e7:ec",
"b4:96:91:cc:e7:ed",
"08:c0:eb:35:14:f6",
"08:c0:eb:35:14:f7",
"5c:6f:69:56:f9:a1"
],
"memory": "1024",
"name": "e29-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e6:14",
"b4:96:91:cc:e6:15",
"08:c0:eb:ad:1d:90",
"08:c0:eb:ad:1d:91",
"5c:6f:69:57:50:e1"
],
"memory": "1024",
"name": "e29-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cb:f2:2a",
"b4:96:91:cb:f2:2b",
"08:c0:eb:ad:1e:5c",
"08:c0:eb:ad:1e:5d",
"5c:6f:69:75:c5:81"
],
"memory": "1024",
"name": "e31-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e31-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:d3:58:60",
"b4:96:91:d3:58:61",
"08:c0:eb:ad:3e:d0",
"08:c0:eb:ad:3e:d1",
"5c:6f:69:57:5d:21"
],
"memory": "1024",
"name": "e31-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e31-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
}
]
}
7 changes: 7 additions & 0 deletions ansible-ipi-install/doit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Usage: doit LABEL

LOG=$1-$(date "+%Y-%m-%d-%T").log

ansible-playbook --skip-tags bootorder -i inventory/jetski/hosts playbook-jetski.yml 2>&1 | tee -a deploy-$LOG


12 changes: 6 additions & 6 deletions ansible-ipi-install/group_vars/all.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Your allocation name/number in the shared labs
cloud_name: cloud00
cloud_name: cloud13
# Lab name, typically can be alias or scale
lab_name: scale
# Default root password to your nodes in the lab allocation so that keys can be added automatically for ansible to run
ansible_ssh_pass: password
ansible_ssh_pass: 100yard-
# Location of the private key of the user running the ansible playbook, leave default
ansible_ssh_key: "{{ ansible_user_dir }}/.ssh/id_rsa"
# The version of the openshift-installer, undefined or empty results in the playbook failing with error message.
# Values accepted: 'latest-4.3', 'latest-4.4', explicit version i.e. 4.3.0-0.nightly-2019-12-09-035405
# For reference, https://amd64.ocp.releases.ci.openshift.org/ and https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/
version: "4.4.4"
version: "4.14.3"
# Enter whether the build should use 'dev' (nightly builds) or 'ga' for Generally Available version of OpenShift
# Empty value results in playbook failing with error message.
build: "ga"
# Your pull secret, as is. https://cloud.redhat.com/openshift/install (Do not add any quotes)
pullsecret:
pullsecret: {"auths":{"cloud.openshift.com":{"auth":"b3BlbnNoaWZ0LXJlbGVhc2UtZGV2K29jbV9hY2Nlc3NfMThiM2E5NjEyM2Q5NGFlOGI3YmM4OTA4YTdkOTQwYTM6NFlYQTFESTUzVEM3SVBKQVgxTTlBSEs3RDBTUTFLOU5SMzAxUDlESUNTQ1hYUU83UEZLMDhWNllUWUY1UVI0VQ==","email":"[email protected]"},"quay.io":{"auth":"b3BlbnNoaWZ0LXJlbGVhc2UtZGV2K29jbV9hY2Nlc3NfMThiM2E5NjEyM2Q5NGFlOGI3YmM4OTA4YTdkOTQwYTM6NFlYQTFESTUzVEM3SVBKQVgxTTlBSEs3RDBTUTFLOU5SMzAxUDlESUNTQ1hYUU83UEZLMDhWNllUWUY1UVI0VQ==","email":"[email protected]"},"registry.connect.redhat.com":{"auth":"fHVoYy0xaW4wakhHM01uTXdDUEZxUVJydUxZZlFXa3k6ZXlKaGJHY2lPaUpTVXpVeE1pSjkuZXlKemRXSWlPaUl3TlRRek5UUmpZVGs1TW1ZME4yUTBZVGN6WkRrd01qTmpNakJrTkRreU5TSjkuYzJ4WmlXS3kyczc3cGdxQkpzdGJGbnE2aEpfSFFDWDV2TW42TzR3cXZlWTh4YXBBaFlOV3l5ZmlQVTFQejhNVHBuQUpHZVd0V1J0cjZYT3VzMVhQa3phdmhtbkwwZDBSY2NSUTI3alQwNEU2UDVGcTAwTVF4cm9WRFhDVU9ZTnhPYjN0cFFGZ3paeFNJSkhQVzFqT3ZNa2FzUThkc1ZDSHN0V0JSRmJMQkdfdExVSS1pN0NJUWl6WjlMY2xRTWoycTFYNzlsdkR5RGg3UnNVSWdGVGNVNmFFT0xwOWE5WXhxaGdnT0puYkgwZFkzNHBZWGxaNDJTdnZOSlQyd2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kgwZFkzNHBZWGxaNDJTdnZOSlQyd2RFMTJJM0VYUVd0dWNPV1hQVEVoVXpIWExEUUZsZEItOE56SkZPQWtsbUZfb1YtT1JpMzBkMGd6d1drTk44c2t0LXo0cW5USjlaYTJMZVN6LWE1QmN6M3d2elpQN1lNN2QzWDBaRzFhX0FKZTlvT205bzNBRlNNc1FXdWNfbW44V2ZWYTM2NWZMcWhMWmpIaUVQQzNDMURVb24yeEw3cUxOLUo0N0ZFYThrTnVRV050ckEyc0pjay1qSnFpNmpIcUdldlRQd08xTHd1Vi1lR0k2d3pMOVBDNEN6bFAyYVU5WUU2ZUNGR0s3MVB2TjBMSklBVFBsWFI4R3A1MFk1b280T0VCYXNDcjYxVUJjZEhVNVQxWExKRFc0MjdVN3EtM1hvSEcwMUYtdF8zTkI0My1LSEozOGJ0MzdPeTd1U0VBSWZQYXk3c1JUYzNCV21aT1FhcHlqZkVfeEU1dktVZlhrWEkxNGkwamxmdUZlcDBnX3RzWWx4TTkxQWdreWVsRkFiNm1BV2MyWVcxRzFXSzBQb1YwWkJjZDdjWlRqRVJnc1U2T1YtdHB5OUc5R0E=","email":"[email protected]"}}}
# This variable is used to point to the foreman server that is used to reimage nodes. This variables is useful in two cases
# 1. When the first node in your allocation (provisioning host) is not having RHEL 8.1 OS, it is automatically rebuilt with
# RHEL 8.1 as the OCP installer expects the provisioning host to be RHEL 8.1. In some other cases, maybe when you have an
Expand All @@ -41,9 +41,9 @@ rebuild_provisioner: false
# Update this variable to scale up your existing cluster, provided lab allocation is sufficient to scale up to this count.
# If not mentioned for a scale up execution, it includes all node available in the inventory `ocpnondeployednodeinv.json`
# If mentioned, this value should be final worker count and cannot be less than existing worker_count.
worker_count: 0
worker_count: 4
# set to true to deploy with jumbo frames
jumbo_mtu: false
jumbo_mtu: true
# set to true only if you requested a public routable VLAN for your cloud in scale lab
routable_api: false

Expand Down
10 changes: 5 additions & 5 deletions ansible-ipi-install/inventory/jetski/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ prov_ip=172.22.0.3
#webserver_caching_port=8080

# (Optional) Enable IPv6 addressing instead of IPv4 addressing on both provisioning and baremetal network
ipv6_enabled=False
ipv6_enabled=True

# (Optional) When ipv6_enabled is set to True, but want IPv4 addressing on provisioning network
# Default is false.
#ipv4_provisioning=True
ipv4_provisioning=True

# (Optional) When ipv6_enabled is set to True, but want IPv4 addressing on baremetal network
#ipv4_baremetal=True
ipv4_baremetal=False

# (Optional) When ipv6_enabled is set to True, but want dual-stack for baremetal network
# Only one of ipv4_baremetal and dualstack_baremetal can be true
#dualstack_baremetal=False
dualstack_baremetal=True

# (Optional) A list of clock servers to be used in chrony by the masters and workers
clock_servers=["clock.redhat.com"]
Expand Down Expand Up @@ -110,7 +110,7 @@ redfish_inspection=false
ovn_hybird_plugin=true

# (Optional) Enable local gateway mode with OVN
ovn_local_gateway=true
ovn_local_gateway=True

# (Optional) Enable SCTP in the cluster
sctp=false
Expand Down
148 changes: 148 additions & 0 deletions ansible-ipi-install/ocpinv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"nodes": [
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:d3:58:60",
"b4:96:91:d3:58:61",
"08:c0:eb:ad:3e:d0",
"08:c0:eb:ad:3e:d1",
"5c:6f:69:57:5d:21"
],
"memory": "1024",
"name": "e31-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e31-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:d1:f7:da",
"b4:96:91:d1:f7:db",
"08:c0:eb:35:16:12",
"08:c0:eb:35:16:13",
"5c:6f:69:57:b8:51"
],
"memory": "1024",
"name": "e29-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h23-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e7:ec",
"b4:96:91:cc:e7:ed",
"08:c0:eb:35:14:f6",
"08:c0:eb:35:14:f7",
"5c:6f:69:56:f9:a1"
],
"memory": "1024",
"name": "e29-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h25-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e5:7e",
"b4:96:91:cc:e5:7f",
"08:c0:eb:35:0c:e2",
"08:c0:eb:35:0c:e3",
"5c:6f:69:56:a5:e1"
],
"memory": "1024",
"name": "e29-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:f4:1b:cc",
"b4:96:91:f4:1b:cd",
"b8:3f:d2:23:e3:a0",
"b8:3f:d2:23:e3:a1",
"84:16:0c:b4:8b:c1"
],
"memory": "1024",
"name": "d19-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-d19-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:f4:16:6c",
"b4:96:91:f4:16:6d",
"b8:3f:d2:24:5d:28",
"b8:3f:d2:24:5d:29",
"00:62:0b:26:32:91"
],
"memory": "1024",
"name": "d19-h28-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-d19-h28-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cc:e6:14",
"b4:96:91:cc:e6:15",
"08:c0:eb:ad:1d:90",
"08:c0:eb:ad:1d:91",
"5c:6f:69:57:50:e1"
],
"memory": "1024",
"name": "e29-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e29-h26-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
},
{
"arch": "x86_64",
"cpu": "2",
"disk": "20",
"mac": [
"b4:96:91:cb:f2:2a",
"b4:96:91:cb:f2:2b",
"08:c0:eb:ad:1e:5c",
"08:c0:eb:ad:1e:5d",
"5c:6f:69:75:c5:81"
],
"memory": "1024",
"name": "e31-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_addr": "mgmt-e31-h22-000-r650.rdu2.scalelab.redhat.com",
"pm_password": "rdu2@3039",
"pm_type": "pxe_ipmitool",
"pm_user": "quads"
}
]
}
Loading

0 comments on commit 2b23f05

Please sign in to comment.