Skip to content

Instantly share code, notes, and snippets.

@chriswayg
chriswayg / Packer_crash_when_cancelling_Proxmox_builder.md
Created August 27, 2019 17:23
Packer crash when cancelling Proxmox builder
  • debian-10.0.0-x86_64-proxmox.json
{
    "description": "Build Debian 10.0 (buster) x86_64 Proxmox template",
    "variables": {
        "prox_vm_id": "33000",
        "prox_vm_name": "deb10-packer",
        "prox_vm_description": "Debian 10.0 x86_64 Proxmox template built with packer",
        "vm_hostname": "debian10",
        "prox_username": "root@pam",
@chriswayg
chriswayg / create-cloud-template.sh
Last active May 1, 2024 20:47
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@chriswayg
chriswayg / Ubuntu_Debian_Cloud_images_in_Proxmox.md
Last active May 4, 2024 00:19
Ubuntu and Debian Cloud images in Proxmox
@chriswayg
chriswayg / ansible-role-test.sh
Last active April 28, 2020 11:35 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)