forked from freeipa-pr-ci2/freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workshop: Update docs and support default cloud image
Update instructions on how to build images starting with Fedora 34 using kickstart files used by Fedora to build its cloud images. Change vagrant provisioning steps to support both prebuilt and default cloud images, removing the burden of maintaining boxes up-to-date, but also providing a way to build fresh images without external packer templates. Signed-off-by: Armando Neto <[email protected]> Reviewed-By: Florence Blanc-Renaud <[email protected]> Reviewed-By: Rob Crittenden <[email protected]>
- Loading branch information
1 parent
33327b2
commit 584952b
Showing
12 changed files
with
181 additions
and
103 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
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
This file was deleted.
Oops, something went wrong.
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
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,77 @@ | ||
{ | ||
"builders": [{ | ||
"type": "qemu", | ||
"iso_url": "{{user `iso_url`}}", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"output_directory": "output-{{user `box_name`}}-x86_64-{{build_type}}", | ||
"vm_name": "packer-{{user `box_name`}}-x86_64", | ||
"disk_size": "{{user `disk_size`}}", | ||
"headless": "{{user `headless`}}", | ||
"http_directory": ".", | ||
"boot_wait": "5s", | ||
"boot_command": [ | ||
"<tab> ", | ||
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/anaconda-ks.cfg ", | ||
"biosdevname=0 ", | ||
"net.ifnames=0 ", | ||
"<enter>" | ||
], | ||
"ssh_timeout": "{{user `ssh_timeout`}}", | ||
"ssh_username": "vagrant", | ||
"ssh_password": "vagrant", | ||
"shutdown_command": "sudo systemctl poweroff", | ||
"qemuargs": [ | ||
["-m", "{{user `memory`}}"], | ||
["-smp", "{{user `cpus`}}"] | ||
] | ||
}, { | ||
"type": "virtualbox-iso", | ||
"guest_os_type": "Fedora_64", | ||
"iso_url": "{{user `iso_url`}}", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"output_directory": "output-{{user `box_name`}}-x86_64-{{build_type}}", | ||
"vm_name": "packer-{{user `box_name`}}-x86_64", | ||
"disk_size": "{{user `disk_size`}}", | ||
"headless": "{{user `headless`}}", | ||
"http_directory": ".", | ||
"boot_wait": "5s", | ||
"boot_command": [ | ||
"<tab> ", | ||
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/anaconda-ks.cfg ", | ||
"biosdevname=0 ", | ||
"net.ifnames=0 ", | ||
"<enter>" | ||
], | ||
"ssh_timeout": "{{user `ssh_timeout`}}", | ||
"ssh_username": "vagrant", | ||
"ssh_password": "vagrant", | ||
"shutdown_command": "sudo systemctl poweroff", | ||
"vboxmanage": [ | ||
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"], | ||
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"] | ||
] | ||
}], | ||
"provisioners": [{ | ||
"type": "shell", | ||
"scripts": [ | ||
"workshop-install-packages.sh" | ||
] | ||
}], | ||
"post-processors": [{ | ||
"type": "vagrant", | ||
"compression_level": "{{user `compression_level`}}", | ||
"output": "{{user `box_name`}}-x86_64-{{.Provider}}.box" | ||
}], | ||
"variables": { | ||
"box_name": "fedora-34", | ||
"iso_url": "{{user `mirror`}}/releases/34/Server/x86_64/iso/Fedora-Server-netinst-x86_64-34-1.2.iso", | ||
"iso_checksum": "file:{{user `mirror`}}/releases/34/Server/x86_64/iso/Fedora-Server-34-1.2-x86_64-CHECKSUM", | ||
"compression_level": "9", | ||
"cpus": "1", | ||
"disk_size": "40000", | ||
"headless": "false", | ||
"memory": "1024", | ||
"mirror": "http://download.fedoraproject.org/pub/fedora/linux", | ||
"ssh_timeout": "60m" | ||
} | ||
} |
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,3 @@ | ||
#!/bin/bash | ||
sudo dnf install -y freeipa-server freeipa-server-dns sssd-dbus mod_lookup_identity mod_authnz_pam haveged nmap-ncat nano pamtester bash-completion | ||
sudo dnf clean all |
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.