commit abfb5661e8c375179ea8d56a2078ff1a61ce9436
parent eaef1e8f7386d2ce889ff4f56b1e0feff79a9526
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Sat, 12 Oct 2024 04:36:09 +0200
feat(mariadb-lxc): fix no-validate
Diffstat:
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,4 @@
vars.json
output*
manifest.json
+**.auto.pkrvars.hcl
diff --git a/mariadb-lxc.pkr.hcl b/mariadb-lxc.pkr.hcl
@@ -33,7 +33,7 @@ variable "mysql_root_password" {
source "lxc" "mariadb" {
config_file = "config/lxc-config"
template_name = "download"
- template_parameters = ["--dist", "Debian_by_maurer", "--release", "Bookworm", "--arch", "armv7l", "--no-validate"]
+ template_parameters = ["--dist", "Debian_by_maurer", "--release", "Bookworm", "--arch", "armv7l"]
}
build {
@@ -54,8 +54,17 @@ build {
script = "scripts/mariadb.sh"
}
- provisioner "shell" {
- inline = ["mysql -e \"GRANT ALL PRIVILEGES on db1.* to 'user1'@'localhost';\""]
- }
+ #provisioner "shell" {
+ # inline = ["mysql -e \"GRANT ALL PRIVILEGES on db1.* to 'user1'@'localhost';\""]
+ #}
}
+
+packer {
+ required_plugins {
+ lxc = {
+ version = ">= 1.0.2"
+ source = "github.com/hashicorp/lxc"
+ }
+ }
+}