This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from jdeathe/develop
Release changes for 1.6.0
- Loading branch information
Showing
16 changed files
with
772 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
"variables": { | ||
"build_accelerator": "kvm", | ||
"build_export_format": "qcow2", | ||
"build_iso_checksum": "07b94e6b1a0b0260b94c83d6bb76b26bf7a310dc78d7a9c7432809fb9bc6194a", | ||
"build_iso_checksum_type": "sha256", | ||
"build_iso_filename": "CentOS-7-x86_64-Minimal-2009.iso", | ||
"build_iso_target_path": "isos/x86_64", | ||
"build_name": "CentOS-7.9.2009-x86_64-Minimal-AMI-en_US", | ||
"build_output_directory": "builds", | ||
"build_output_format": "vmdk", | ||
"guest_boot_timeout": "0", | ||
"guest_bootloader_append": "net.ifnames=0 biosdevname=0", | ||
"guest_cpus": "1", | ||
"guest_firewall_disabled": "false", | ||
"guest_hard_disk_size": "4096", | ||
"guest_keyboard": "us", | ||
"guest_language": "en_US.UTF-8", | ||
"guest_lv_root_fstype": "ext4", | ||
"guest_lv_root_mkfsoptions": "-i 4096", | ||
"guest_lv_root_size": "1024", | ||
"guest_lv_swap_size": "0", | ||
"guest_name": "CentOS-7.9.2009-x86_64-Minimal-AMI-en_US", | ||
"guest_partition_boot_fstype": "ext4", | ||
"guest_partition_boot_size": "1024", | ||
"guest_memory": "1024", | ||
"guest_selinux": "permissive", | ||
"guest_timezone": "Etc/UTC", | ||
"guest_vram": "16", | ||
"guest_vg_root_reserved_space": "0", | ||
"ssh_root_password": "centos", | ||
"ssh_user": "centos", | ||
"ssh_user_authorized_keys": "", | ||
"ssh_user_home": "/home/centos", | ||
"ssh_user_password": "centos", | ||
"ssh_user_shell": "/bin/bash", | ||
"ssh_user_sudo": "ALL=(ALL) NOPASSWD:ALL" | ||
}, | ||
"builders": [ | ||
{ | ||
"type": "qemu", | ||
"name": "{{user `build_name`}}", | ||
"accelerator": "{{user `build_accelerator`}}", | ||
"boot_command": [ | ||
"<esc><wait>", | ||
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos-7-minimal.cfg", | ||
" BOOT_TIMEOUT={{user `guest_boot_timeout`}}", | ||
" BOOTLOADER_APPEND=\"{{user `guest_bootloader_append`}}\"", | ||
" BOOTLOADER_THEME=details", | ||
" LANG={{user `guest_language`}}", | ||
" KEYTABLE={{user `guest_keyboard`}}", | ||
" TIMEZONE={{user `guest_timezone`}}", | ||
" ROOTPW={{user `ssh_root_password`}}", | ||
" FIREWALL_DISABLED={{user `guest_firewall_disabled`}}", | ||
" SELINUX={{user `guest_selinux`}}", | ||
" LV_ROOT_FSTYPE={{user `guest_lv_root_fstype`}}", | ||
" LV_ROOT_MKFSOPTIONS=\"{{user `guest_lv_root_mkfsoptions`}}\"", | ||
" LV_ROOT_SIZE={{user `guest_lv_root_size`}}", | ||
" LV_SWAP_SIZE={{user `guest_lv_swap_size`}}", | ||
" PART_BOOT_FSTYPE={{user `guest_partition_boot_fstype`}}", | ||
" PART_BOOT_SIZE={{user `guest_partition_boot_size`}}", | ||
" VG_ROOT_RESERVED_SPACE={{user `guest_vg_root_reserved_space`}}", | ||
"<enter><wait>" | ||
], | ||
"boot_key_interval": "10ms", | ||
"boot_wait": "3s", | ||
"disk_interface": "virtio-scsi", | ||
"disk_discard": "unmap", | ||
"disk_detect_zeroes": "on", | ||
"disk_cache": "unsafe", | ||
"disk_image": false, | ||
"disk_compression": true, | ||
"disk_size": "{{user `guest_hard_disk_size`}}", | ||
"format": "{{user `build_export_format`}}", | ||
"headless": true, | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `build_iso_checksum`}}", | ||
"iso_target_path": "{{user `build_iso_target_path`}}", | ||
"iso_url": "{{user `build_iso_target_path`}}/{{user `build_iso_filename`}}", | ||
"machine_type": "q35", | ||
"memory": "{{user `guest_memory`}}", | ||
"net_device": "virtio-net", | ||
"qemuargs": [ | ||
[ "-global", "virtio-pci.disable-modern=on" ], | ||
[ "-cpu", "host" ] | ||
], | ||
"ssh_username": "root", | ||
"ssh_password": "{{user `ssh_root_password`}}", | ||
"ssh_port": 22, | ||
"ssh_wait_timeout": "10m", | ||
"shutdown_command": "/sbin/shutdown --no-wall -P now", | ||
"shutdown_timeout": "1m", | ||
"vm_name": "{{user `guest_name`}}" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"type": "compress", | ||
"output": "{{user `build_output_directory`}}/{{.BuildName}}.{{user `build_export_format`}}.tar.gz", | ||
"compression_level": 9, | ||
"keep_input_artifact": true | ||
}, | ||
{ | ||
"type": "shell-local", | ||
"execute_command": "chmod +x \"{{.Script}}\"; {{.Vars}} /bin/bash \"{{.Script}}\" {{user `build_output_directory`}} {{user `build_export_format`}} {{user `build_output_format`}}", | ||
"inline_shebang": "/bin/bash -e", | ||
"inline": [ | ||
"if [[ -n ${1} ]] && [[ -n ${2} ]] && [[ -n ${PACKER_BUILD_NAME} ]] && [[ -d output-${PACKER_BUILD_NAME} ]]", | ||
"then", | ||
" echo '--> Moving build artifact.'", | ||
" mv -f output-${PACKER_BUILD_NAME}/${PACKER_BUILD_NAME} ${1}/${PACKER_BUILD_NAME}.${2}", | ||
" printf -- '--> Convert build artifact from %s to %s.\n' ${2} ${3}", | ||
" if [[ ${3} == vmdk ]]", | ||
" then", | ||
" qemu-img convert -f ${2} -O ${3} -o subformat=streamOptimized,compat6 ${1}/${PACKER_BUILD_NAME}.${2} ${1}/${PACKER_BUILD_NAME}.${3}", | ||
" else", | ||
" qemu-img convert -f ${2} -O ${3} ${1}/${PACKER_BUILD_NAME}.${2} ${1}/${PACKER_BUILD_NAME}.${3}", | ||
" fi", | ||
"fi", | ||
"echo '--> Cleanup output directories.'", | ||
"find . -mindepth 1 -maxdepth 1 -type d -name \"output-*\" -exec rm -rf '{}' +" | ||
] | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"type": "file", | ||
"source": "src/etc/systemd/system/grow-root.service", | ||
"destination": "/etc/systemd/system/grow-root.service" | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "chmod +x \"{{.Path}}\"; env {{.Vars}} /bin/bash \"{{.Path}}\"", | ||
"remote_folder": "/var/tmp", | ||
"skip_clean": false, | ||
"environment_vars": [ | ||
"GUEST_LANG={{user `guest_language`}}", | ||
"SSH_USER={{user `ssh_user`}}", | ||
"SSH_USER_AUTHORIZED_KEYS={{user `ssh_user_authorized_keys`}}", | ||
"SSH_USER_HOME={{user `ssh_user_home`}}", | ||
"SSH_USER_PASSWORD={{user `ssh_user_password`}}", | ||
"SSH_USER_SHELL={{user `ssh_user_shell`}}", | ||
"SSH_USER_SUDO={{user `ssh_user_sudo`}}" | ||
], | ||
"scripts": [ | ||
"scripts/install/nfs-utils.sh", | ||
"scripts/install/tuned-virtual-guest.sh", | ||
"scripts/install/cloud-init.sh", | ||
"scripts/install/cloud-utils-growpart.sh", | ||
"scripts/install/systemd-unit-file-grow-root.sh", | ||
"scripts/cloud-init/disable-locale-module.sh", | ||
"scripts/cloud-init/add-datasource-list-aws.sh", | ||
"scripts/cloud-init/add-logging-output.sh", | ||
"scripts/cloud-init/add-preserve-hostname.sh", | ||
"scripts/common/ifcfg-name-to-device.sh", | ||
"scripts/common/sshd-config-non-root-key-auth.sh", | ||
"scripts/common/sudoers-default-not-requiretty.sh", | ||
"scripts/common/ssh-user.sh", | ||
"scripts/common/seal-virtual-guest.sh", | ||
"scripts/common/locale-trim-definitions.sh", | ||
"scripts/common/locale-trim-translations.sh", | ||
"scripts/common/locale-lock-sysconfig.sh", | ||
"scripts/common/purge-documentation.sh", | ||
"scripts/common/purge-desktop-graphics.sh", | ||
"scripts/common/purge-temporary-directories.sh", | ||
"scripts/common/yum-cleanup.sh", | ||
"scripts/common/rpm-rebuild-db.sh", | ||
"scripts/common/stop-and-truncate-logs.sh", | ||
"scripts/common/zero-out-disks.sh", | ||
"scripts/common/lock-root-user.sh" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.