Compare commits
5 Commits
Redhat8-K8
...
Ubuntu2204
Author | SHA1 | Date | |
---|---|---|---|
95c2f7a54e | |||
f6b0c7556d | |||
ab4826d135 | |||
0cdb7fb129 | |||
c05b9bf0f5 |
20
.drone.yml
20
.drone.yml
@ -6,9 +6,6 @@ volumes:
|
|||||||
- name: output
|
- name: output
|
||||||
claim:
|
claim:
|
||||||
name: flexvolsmb-drone-output
|
name: flexvolsmb-drone-output
|
||||||
- name: scratch
|
|
||||||
claim:
|
|
||||||
name: flexvolsmb-drone-scratch
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Debugging information
|
- name: Debugging information
|
||||||
@ -25,28 +22,17 @@ steps:
|
|||||||
- |
|
- |
|
||||||
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
|
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
|
||||||
mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
||||||
jq '.repo_username="'"$REPO_USERNAME"'" | .repo_password="'"$REPO_PASSWORD"'"' --null-input > /tmp/extra_vars.json
|
|
||||||
- |
|
- |
|
||||||
make deps-ova
|
make deps-ova
|
||||||
- |
|
- |
|
||||||
make build-node-ova-vsphere-rhel-8
|
make build-node-ova-vsphere-ubuntu-2204
|
||||||
- |
|
- |
|
||||||
mv -fv ./output/**/*.ova /output
|
mv -fv ./output/**/*.ova /output
|
||||||
environment:
|
environment:
|
||||||
IB_OVFTOOL: true
|
|
||||||
IB_OVFTOOL_ARGS: --allowExtraConfig
|
|
||||||
PACKER_FLAGS: -on-error=ask
|
|
||||||
PACKER_VAR_FILES: /tmp/extra_vars.json
|
|
||||||
REPO_USERNAME:
|
|
||||||
from_secret: repo_username
|
|
||||||
REPO_PASSWORD:
|
|
||||||
from_secret: repo_password
|
|
||||||
RHSM_USER:
|
|
||||||
from_secret: rhsm_username
|
|
||||||
RHSM_PASS:
|
|
||||||
from_secret: rhsm_password
|
|
||||||
VSPHERE_PASSWORD:
|
VSPHERE_PASSWORD:
|
||||||
from_secret: vsphere_password
|
from_secret: vsphere_password
|
||||||
|
IB_OVFTOOL: true
|
||||||
|
IB_OVFTOOL_ARGS: --allowExtraConfig
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
path: /output
|
path: /output
|
||||||
|
0
ansible/roles/custom/tasks/main.yml
Normal file
0
ansible/roles/custom/tasks/main.yml
Normal file
@ -43,3 +43,11 @@
|
|||||||
- { src: files/etc/networkd-dispatcher/routable.d/20-chrony.j2, dest: /etc/networkd-dispatcher/routable.d/20-chrony }
|
- { src: files/etc/networkd-dispatcher/routable.d/20-chrony.j2, dest: /etc/networkd-dispatcher/routable.d/20-chrony }
|
||||||
- { src: files/etc/networkd-dispatcher/off.d/20-chrony.j2, dest: /etc/networkd-dispatcher/off.d/20-chrony }
|
- { src: files/etc/networkd-dispatcher/off.d/20-chrony.j2, dest: /etc/networkd-dispatcher/off.d/20-chrony }
|
||||||
- { src: files/etc/networkd-dispatcher/no-carrier.d/20-chrony.j2, dest: /etc/networkd-dispatcher/no-carrier.d/20-chrony }
|
- { src: files/etc/networkd-dispatcher/no-carrier.d/20-chrony.j2, dest: /etc/networkd-dispatcher/no-carrier.d/20-chrony }
|
||||||
|
|
||||||
|
- name: Create cloud-init datasource config file
|
||||||
|
copy:
|
||||||
|
dest: /etc/cloud/ds-identify.cfg
|
||||||
|
force: true
|
||||||
|
content: |
|
||||||
|
datasource: VMware
|
||||||
|
when: ansible_distribution_version is version('22.04', '>=')
|
||||||
|
@ -93,3 +93,15 @@
|
|||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: /etc/udev/rules.d/70-persistent-net.rules
|
path: /etc/udev/rules.d/70-persistent-net.rules
|
||||||
|
|
||||||
|
- name: Removing subiquity disable cloud-init networking config
|
||||||
|
file:
|
||||||
|
path: /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg
|
||||||
|
state: absent
|
||||||
|
when: ansible_distribution_version is version('22.04', '>=')
|
||||||
|
|
||||||
|
- name: Removing 99-installer.cfg which sets the cloud-init datasource to None
|
||||||
|
file:
|
||||||
|
path: /etc/cloud/cloud.cfg.d/99-installer.cfg
|
||||||
|
state: absent
|
||||||
|
when: ansible_distribution_version is version('22.04', '>=')
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"additional_registry_images_list": "ghcr.io/kube-vip/kube-vip:v0.5.5",
|
"additional_registry_images_list": "ghcr.io/kube-vip/kube-vip:v0.5.5",
|
||||||
"additional_url_images": "false",
|
"additional_url_images": "false",
|
||||||
"additional_url_images_list": "",
|
"additional_url_images_list": "",
|
||||||
"load_additional_components": "true"
|
"load_additional_components": "false"
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"build_target": "virt",
|
"build_target": "virt",
|
||||||
"disable_public_repos": "false",
|
"disable_public_repos": "false",
|
||||||
"extra_debs": "",
|
"extra_debs": "nfs-common open-iscsi",
|
||||||
"extra_repos": "",
|
"extra_repos": "",
|
||||||
"extra_rpms": "iscsi-initiator-utils ca-certificates",
|
"extra_rpms": "",
|
||||||
"firstboot_custom_roles_post": "",
|
"firstboot_custom_roles_post": "",
|
||||||
"firstboot_custom_roles_pre": "",
|
"firstboot_custom_roles_pre": "",
|
||||||
"http_proxy": "",
|
"http_proxy": "",
|
||||||
|
@ -188,8 +188,8 @@
|
|||||||
],
|
],
|
||||||
"boot_wait": "{{user `boot_wait`}}",
|
"boot_wait": "{{user `boot_wait`}}",
|
||||||
"cluster": "{{user `cluster`}}",
|
"cluster": "{{user `cluster`}}",
|
||||||
"cd_files": ["{{user `http_directory`}}"],
|
"cd_files": ["{{user `cd_file_path`}}/meta-data", "{{user `cd_file_path`}}/user-data"],
|
||||||
"cd_label": "OEMDRV",
|
"cd_label": "cidata",
|
||||||
"communicator": "ssh",
|
"communicator": "ssh",
|
||||||
"convert_to_template": "{{user `convert_to_template`}}",
|
"convert_to_template": "{{user `convert_to_template`}}",
|
||||||
"cpu_cores": "{{user `cpu_cores`}}",
|
"cpu_cores": "{{user `cpu_cores`}}",
|
||||||
@ -221,7 +221,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"password": "{{user `password`}}",
|
"password": "{{user `password`}}",
|
||||||
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c '{{user `shutdown_command`}}'",
|
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c 'usermod -L {{user `ssh_username`}} && {{user `shutdown_command`}}'",
|
||||||
"ssh_password": "{{user `ssh_password`}}",
|
"ssh_password": "{{user `ssh_password`}}",
|
||||||
"ssh_timeout": "4h",
|
"ssh_timeout": "4h",
|
||||||
"ssh_username": "{{user `ssh_username`}}",
|
"ssh_username": "{{user `ssh_username`}}",
|
||||||
@ -359,8 +359,7 @@
|
|||||||
"--extra-vars",
|
"--extra-vars",
|
||||||
"{{user `ansible_user_vars`}}",
|
"{{user `ansible_user_vars`}}",
|
||||||
"--scp-extra-args",
|
"--scp-extra-args",
|
||||||
"{{user `ansible_scp_extra_args`}}",
|
"{{user `ansible_scp_extra_args`}}"
|
||||||
"-vvvvv"
|
|
||||||
],
|
],
|
||||||
"playbook_file": "./ansible/firstboot.yml",
|
"playbook_file": "./ansible/firstboot.yml",
|
||||||
"type": "ansible",
|
"type": "ansible",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"boot_command_prefix": "<up><tab> text inst.ks=",
|
"boot_command_prefix": "<up><tab> text inst.ks=",
|
||||||
"boot_command_suffix": "packer/ova/linux/{{user `distro_name`}}/http/8/ks.cfg<enter><wait>",
|
"boot_command_suffix": "/8/ks.cfg<enter><wait>",
|
||||||
"boot_media_path": "cdrom:",
|
"boot_media_path": "http://{{ .HTTPIP }}:{{ .HTTPPort }}",
|
||||||
"build_name": "rhel-8",
|
"build_name": "rhel-8",
|
||||||
"distro_arch": "amd64",
|
"distro_arch": "amd64",
|
||||||
"distro_name": "rhel",
|
"distro_name": "rhel",
|
||||||
@ -9,9 +9,9 @@
|
|||||||
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8",
|
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8",
|
||||||
"guest_os_type": "rhel8-64",
|
"guest_os_type": "rhel8-64",
|
||||||
"http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/",
|
"http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/",
|
||||||
"iso_checksum": "517ABCC67EE3B7212F57E180F5D30BE3E8269E7A99E127A3399B7935C7E00A09",
|
"iso_checksum": "48f955712454c32718dcde858dea5aca574376a1d7a4b0ed6908ac0b85597811",
|
||||||
"iso_checksum_type": "sha256",
|
"iso_checksum_type": "sha256",
|
||||||
"iso_url": "https://{{ user `repo_username` }}:{{ user `repo_password` }}@sn.itch.fyi/Repository/iso/Redhat/rhel-8.8-x86_64-dvd.iso",
|
"iso_url": "file:///rhel-8.4-x86_64-dvd.iso",
|
||||||
"os_display_name": "RHEL 8",
|
"os_display_name": "RHEL 8",
|
||||||
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm",
|
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm",
|
||||||
"shutdown_command": "shutdown -P now",
|
"shutdown_command": "shutdown -P now",
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
"distro_name": "ubuntu",
|
"distro_name": "ubuntu",
|
||||||
"distro_version": "22.04",
|
"distro_version": "22.04",
|
||||||
"guest_os_type": "ubuntu-64",
|
"guest_os_type": "ubuntu-64",
|
||||||
"iso_checksum": "10f19c5b2b8d6db711582e0e27f5116296c34fe4b313ba45f9b201a5007056cb",
|
"iso_checksum": "5e38b55d57d94ff029719342357325ed3bda38fa80054f9330dc789cd2d43931",
|
||||||
"iso_checksum_type": "sha256",
|
"iso_checksum_type": "sha256",
|
||||||
"iso_url": "https://releases.ubuntu.com/22.04/ubuntu-22.04.1-live-server-amd64.iso",
|
"iso_url": "https://releases.ubuntu.com/jammy/ubuntu-22.04.2-live-server-amd64.iso",
|
||||||
"os_display_name": "Ubuntu 22.04",
|
"os_display_name": "Ubuntu 22.04",
|
||||||
"shutdown_command": "shutdown -P now",
|
"shutdown_command": "shutdown -P now",
|
||||||
"vsphere_guest_os_type": "ubuntu64Guest"
|
"vsphere_guest_os_type": "ubuntu64Guest"
|
||||||
|
Reference in New Issue
Block a user