Skip to content

Commit

Permalink
Make cloudinit file ubuntu specific
Browse files Browse the repository at this point in the history
  • Loading branch information
MalloZup committed Oct 17, 2018
1 parent 29efb6e commit 0ddaf11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,11 @@ chpasswd:
expire: False

disable_root: false

# NOTE: This is distro specific.
apt_update: true

# NOTE: this pkg are tested only for ubuntu. For sure other distro have othre pkgs names ...
packages:
- qemu-guest-agent
- salt-minion
- haveged
# this pkg differ in openSUSE
- avahi-daemon


runcmd:
- sed -i '/PermitRootLogin/s/.*/PermitRootLogin yes/' /etc/ssh/sshd_config
- systemctl restart sshd
2 changes: 1 addition & 1 deletion modules/libvirt/host/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "libvirt_volume" "main_disk" {
}

data "template_file" "user_data" {
template = "${file("${path.module}/cloud_init.cfg")}"
template = "${file("${path.module}/cloud_init_ubuntu.cfg")}"
}

resource "libvirt_cloudinit_disk" "minimalconf" {
Expand Down

0 comments on commit 0ddaf11

Please sign in to comment.