Skip to content

Commit

Permalink
modified: roles/terraform/templates/esxi-ubuntu.tf.j2
Browse files Browse the repository at this point in the history
	modified:   roles/terraform/templates/fedora-cloud.tpl.j2
	modified:   roles/terraform/templates/libvirt-ubuntu.tf.j2
	modified:   roles/terraform/templates/rhel8-cloud.tpl.j2
	modified:   roles/terraform/templates/rhel9-cloud.tpl.j2
	modified:   roles/terraform/templates/ubuntu-cloud.tpl.j2
  • Loading branch information
djdanielsson committed Mar 1, 2024
1 parent f829f92 commit d080ade
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion roles/terraform/templates/esxi-ubuntu.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "esxi_guest" "{{ each.name }}" {
{% if each.notes is defined -%}
notes = "{{ each.notes }}"
{% endif %}
ovf_source = "https://cloud-images.ubuntu.com/releases/jammy/release/ubuntu-22.04-server-cloudimg-amd64.ova"
ovf_source = "https://cloud-images.ubuntu.com/releases/mantic/release/ubuntu-23.10-server-cloudimg-amd64.ova"
network_interfaces {
virtual_network = "{{ each.network | default('VM Network') }}"
}
Expand Down
2 changes: 0 additions & 2 deletions roles/terraform/templates/fedora-cloud.tpl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ hostname: ${HOSTNAME}
# Write to a log file (useing variables set in terraform) and show the ip on the console.
runcmd:
- date >/root/cloudinit.log
- hostnamectl set-hostname ${HOSTNAME}
- dnf vim git install -y cockpit >>/root/cloudinit.log
- systemctl enable --now cockpit >>/root/cloudinit.log
- echo "Done cloud-init" >>/root/cloudinit.log
- ip a >/dev/tty1
2 changes: 1 addition & 1 deletion roles/terraform/templates/libvirt-ubuntu.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "libvirt_pool" "{{ each.name }}" {
resource "libvirt_volume" "{{ each.name }}-tmp" {
name = "{{ each.name }}-tmp"
pool = libvirt_pool.{{ each.name }}.name
source = "https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.ova"
source = "https://cloud-images.ubuntu.com/releases/mantic/release/ubuntu-23.10-server-cloudimg-amd64.ova"
format = "qcow2"
}

Expand Down
2 changes: 0 additions & 2 deletions roles/terraform/templates/rhel8-cloud.tpl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ hostname: ${HOSTNAME}
# Write to a log file (useing variables set in terraform) and show the ip on the console.
runcmd:
- date >/root/cloudinit.log
- hostnamectl set-hostname ${HOSTNAME}
- dnf vim git install -y cockpit >>/root/cloudinit.log
- systemctl enable --now cockpit >>/root/cloudinit.log
- echo "Done cloud-init" >>/root/cloudinit.log
- ip a >/dev/tty1
2 changes: 0 additions & 2 deletions roles/terraform/templates/rhel9-cloud.tpl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ hostname: ${HOSTNAME}
# Write to a log file (useing variables set in terraform) and show the ip on the console.
runcmd:
- date >/root/cloudinit.log
- hostnamectl set-hostname ${HOSTNAME}
- dnf vim git install -y cockpit >>/root/cloudinit.log
- systemctl enable --now cockpit >>/root/cloudinit.log
- echo "Done cloud-init" >>/root/cloudinit.log
- ip a >/dev/tty1
1 change: 0 additions & 1 deletion roles/terraform/templates/ubuntu-cloud.tpl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ hostname: ${HOSTNAME}
# Write to a log file (useing variables set in terraform) and show the ip on the console.
runcmd:
- date >/root/cloudinit.log
- hostname ${HOSTNAME}
- apt install -y vim git cockpit-system cockpit-networkmanager cockpit-tests cockpit-bridge cockpit cockpit-ws cockpit-dashboard cockpit-sosreport cockpit-packagekit cockpit-doc cockpit-storaged cockpit-pcp cockpit-389-ds >>/root/cloudinit.log
- systemctl enable --now cockpit.service >>/root/cloudinit.log
- echo "Done cloud-init" >>/root/cloudinit.log
Expand Down

0 comments on commit d080ade

Please sign in to comment.