Skip to content

Commit

Permalink
Fix5 missing double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
goffinet committed Oct 18, 2024
1 parent f0147ce commit ae6592a
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 41 deletions.
9 changes: 4 additions & 5 deletions almalinux9.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,13 +47,12 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "testtest
"
}
default = "testtest"
}

variable "ssh_username" {
type = string
default = "root
default = "root"
}

variable "version" {
Expand Down
9 changes: 4 additions & 5 deletions centos9.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,13 +47,12 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "testtest
"
}
default = "testtest"
}

variable "ssh_username" {
type = string
default = "root
default = "root"
}

variable "version" {
Expand Down
9 changes: 4 additions & 5 deletions fedora40.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,13 +47,12 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "testtest
"
}
default = "testtest"
}

variable "ssh_username" {
type = string
default = "root
default = "root"
}

variable "version" {
Expand Down
2 changes: 1 addition & 1 deletion http/almalinux9-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#auth --enableshadow --passalgo=sha512
url --url="https://repo.almalinux.org/almalinux/9.4/isos/x86_64/kickstart/"
Expand Down
2 changes: 1 addition & 1 deletion http/centos9-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#auth --enableshadow --passalgo=sha512
url --url="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os"
Expand Down
2 changes: 1 addition & 1 deletion http/fedora40-kickstart.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#auth --enableshadow --passalgo=sha512
url --url="https://fedora.cu.be/linux/releases/40/Server/x86_64/os/"
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2004/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu2004
username: ubuntu
password: $6$rounds=4096$ZtkvjJfiHVU/SuD8$iwkSpAEcMYTIvDIwxBi1oK5Fp6WG0p1PKfHsh1NHCBt4wn6bTBRsU8HbWY54v8T4PQiM4jdj9eUBTxwA5tcmk1
password: $6$rounds=4096$uv35FUl.TnvkNARV$RtVnAa5T.kJVMDO4Bw6nifGQDNM2Qm35HwL5dxu8/VMKhfCn1NHYtFv6Up.j4Jz9jT.c4iH6IT58NbQxljSeJ1
user-data:
disable_root: false
keyboard:
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2204/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu2204
username: ubuntu
password: $6$rounds=4096$vSLwDGbi1gbxaBZn$NSq/YeafB0orfM587UFPOWHlYMWW3T/rkpKtGCsq3V03GxwgNKl7J/zzDNr54xXFyynEEOfk0yx23HoJXo7Qv0
password: $6$rounds=4096$0wptHenX3wOVRwcG$EW5TDnsDHoMuiZTMfsVNGkK.Vvi7YBNnthAwxZ0ipTQDRDXIXK0RjNyEdI/qpp/EIpkGgf5ALm2zHc6.aslcv.
user-data:
disable_root: false
keyboard:
Expand Down
4 changes: 2 additions & 2 deletions http/ubuntu2404/user-data
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu2404
username: ubuntu
password: $6$rounds=4096$2ExOc1g2ThbWuMJy$/4CUzgN8tNBm.59pebFdyyF4hZoCmVg45CdDpPC0Emp5NE8Y0ePfos8cY/t9Nchxf9/tTUvhPSspwvsGsQ3rn.
password: $6$rounds=4096$zzqe46CqaveQeQiI$1iAFQ70Me6FDKmd9Ztw5tlLfyOAvm.X7P4hOl.XPLmQYejfsxSAgV/g29u/6mfyfhI/RH81yqALCOgHsbYoSv.
user-data:
disable_root: false
keyboard:
Expand Down
10 changes: 5 additions & 5 deletions roles/build-packer-templates/templates/linux.pkr.hcl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "{% if item.type == 'debian' %}{{ item.ssh_password |default(debian.ssh_password) }}
{% elif item.type == 'redhat' %}{{ item.ssh_password |default(redhat.ssh_password) }}
{% endif -%}"
default = {% if item.type == 'debian' %}"{{ item.ssh_password |default(debian.ssh_password) }}"
{% elif item.type == 'redhat' %}"{{ item.ssh_password |default(redhat.ssh_password) }}"
{% endif -%}
}

variable "ssh_username" {
type = string
default = "{% if item.type == 'debian' %}{{ item.ssh_username |default('ubuntu') }}"
{% elif item.type == 'redhat' %}{{ item.ssh_username |default('root') }}
default = {% if item.type == 'debian' %}"{{ item.ssh_username |default('ubuntu') }}"
{% elif item.type == 'redhat' %}"{{ item.ssh_username |default('root') }}"
{% endif -%}
}

Expand Down
7 changes: 3 additions & 4 deletions ubuntu2004.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,9 +47,8 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "ubuntu
"
}
default = "ubuntu"
}

variable "ssh_username" {
type = string
Expand Down
7 changes: 3 additions & 4 deletions ubuntu2204.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,9 +47,8 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "ubuntu
"
}
default = "ubuntu"
}

variable "ssh_username" {
type = string
Expand Down
7 changes: 3 additions & 4 deletions ubuntu2404.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:07:04Z
#Generated by packer-kvm/build-packer-templates.yaml at 2024-10-18T19:11:59Z

variable "config_file" {
type = string
Expand Down Expand Up @@ -47,9 +47,8 @@ variable "ram" {

variable "ssh_password" {
type = string
default = "ubuntu
"
}
default = "ubuntu"
}

variable "ssh_username" {
type = string
Expand Down

0 comments on commit ae6592a

Please sign in to comment.