Open reedlaw opened 3 years ago
When running from https://github.com/hashicorp/terraform-aws-vault on Amazon Linux 2 I get this error:
==> amazon-linux-2-ami: 2021-01-13 22:43:32 [INFO] [setup-systemd-resolved] Configuring systemd-resolved ==> amazon-linux-2-ami: 2021-01-13 22:43:32 [INFO] [setup-systemd-resolved] Installing dependencies ==> amazon-linux-2-ami: sudo: apt-get: command not found
It's due to a lack of call to has_apt_get or similar function inside setup-systemd-resolved's install_dependencies function:
has_apt_get
setup-systemd-resolved
install_dependencies
function install_dependencies { local -r consul_ip="$1" log_info "Installing dependencies" sudo apt-get update -y echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections sudo apt-get install -y iptables-persistent }
Ah, good catch. Thanks for reporting!
When running from https://github.com/hashicorp/terraform-aws-vault on Amazon Linux 2 I get this error:
It's due to a lack of call to
has_apt_get
or similar function insidesetup-systemd-resolved
'sinstall_dependencies
function: