Browse Source

Add python3-docker package to vm

master
Antoine 9 months ago
parent
commit
fa07cc9435
Signed by: antoine <antoinroux@hotmail.fr> GPG Key ID: 098FB66FC0475E70
4 changed files with 5 additions and 5 deletions
  1. +2
    -2
      Makefile
  2. +1
    -1
      image/assets/ansible/roles/debian-init/defaults/main.yml
  3. +1
    -1
      image/assets/ansible/roles/debian-init/handlers/main.yml
  4. +1
    -1
      image/assets/hcl/source-debian.pkr.hcl

+ 2
- 2
Makefile View File

@@ -2,10 +2,10 @@

include .env

up-gentoo: imagePackerBuilder image/assets/id_rsa_qemu
gentoo-up: imagePackerBuilder image/assets/id_rsa_qemu
docker-compose up --build -d gentoo_packer

up-debian: imagePackerBuilder image/assets/id_rsa_qemu
debian-up: imagePackerBuilder image/assets/id_rsa_qemu
docker-compose up --build -d debian_packer

exec-gentoo:


+ 1
- 1
image/assets/ansible/roles/debian-init/defaults/main.yml View File

@@ -15,10 +15,10 @@ initial_package:
- htop
- netcat
- traceroute
- python3-docker

initial_service:
- serial-getty@ttyS0.service
- qemu-guest-agent.service

# configure and enable network /etc/network/interface file
enable_network: true

+ 1
- 1
image/assets/ansible/roles/debian-init/handlers/main.yml View File

@@ -13,6 +13,6 @@
become: yes
service:
name: qemu-guest-agent
state: started
# state: started
enabled: yes
when: '"qemu-guest-agent" in initial_package'

+ 1
- 1
image/assets/hcl/source-debian.pkr.hcl View File

@@ -44,5 +44,5 @@ source "qemu" "debian" {
ssh_password = "${var.ssh_password}"
ssh_username = "${var.ssh_username}"
ssh_wait_timeout = "900m"
vm_name = "debian-${var.image_version}_packer.qcow2"
vm_name = "debian-${var.image_version}_${timestamp()}_packer.qcow2"
}

Loading…
Cancel
Save