From 71e5f55df4a52290a1a344f7002cd0b9141bff9b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Mar 2023 21:38:17 +0100 Subject: [PATCH] chore: remove cloud-init package-update-upgrade-install module --- .dictionary | 1 + README.md | 8 ++++---- rocky-9/data/files/90-hetznercloud.cfg | 1 - rocky-9/server.pkr.hcl | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.dictionary b/.dictionary index 468b869..0e370c0 100644 --- a/.dictionary +++ b/.dictionary @@ -4,3 +4,4 @@ ISOs jktr hcloud-packer-templates Hetzner +VMID diff --git a/README.md b/README.md index ab7af0c..51bd315 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ This project is inspired by [jktr/hcloud-packer-templates](https://github.com/jk **Packer**: -- HashiCorp [Packer](https://www.packer.io/intro/getting-started/install.html) v1.7.7 or higher. -- HashiCorp [Packer Plugin for Hetzner Cloud](https://www.packer.io/plugins/builders/hetzner-cloud) (`hcloud`) v1.0.5 or higher. +- HashiCorp [Packer](https://www.packer.io/intro/getting-started/install.html) +- HashiCorp [Packer Plugin for Hetzner Cloud](https://www.packer.io/plugins/builders/hetzner-cloud) (`hcloud`) Required plugins are automatically downloaded during the `packer init` phase. These plugins are placed in the same directory as your Packer executable `/usr/local/bin` or `$HOME/.packer.d/plugins`. @@ -32,11 +32,11 @@ If required, modify the configuration and scripts files. ## Build -Initialize packer and start a build. +> **Info:** Using the force flag will automatically remove existing _templates_ with a matching name or VMID. ```Shell packer init rocky-9/ -packer build rocky-9/ +packer build -force rocky-9/ ``` ## License diff --git a/rocky-9/data/files/90-hetznercloud.cfg b/rocky-9/data/files/90-hetznercloud.cfg index 82829a4..22bb145 100644 --- a/rocky-9/data/files/90-hetznercloud.cfg +++ b/rocky-9/data/files/90-hetznercloud.cfg @@ -31,7 +31,6 @@ cloud_config_modules: - set-passwords - rh_subscription - yum-add-repo - - package-update-upgrade-install - timezone - puppet - chef diff --git a/rocky-9/server.pkr.hcl b/rocky-9/server.pkr.hcl index 4c62e2d..a0c33a7 100644 --- a/rocky-9/server.pkr.hcl +++ b/rocky-9/server.pkr.hcl @@ -2,7 +2,7 @@ packer { required_version = ">= 1.8.3" required_plugins { hcloud = { - version = ">= 1.0.0" + version = " 1.0.5" source = "github.com/hashicorp/hcloud" } }