From 8678a7ca565bea61f49704fb60d6897400c0302b Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Wed, 19 Sep 2018 17:00:59 +0200 Subject: [PATCH] Remove unneeded packer statements --- dev/packer-aws.json | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dev/packer-aws.json b/dev/packer-aws.json index b936065..7680ae3 100644 --- a/dev/packer-aws.json +++ b/dev/packer-aws.json @@ -6,8 +6,6 @@ }, "builders": [{ "type": "amazon-ebs", - "access_key": "{{user `aws_access_key`}}", - "secret_key": "{{user `aws_secret_key`}}", "region": "eu-west-1", "ami_groups": "all", "source_ami_filter": { @@ -31,14 +29,7 @@ "provisioners": [ { "type": "shell", - "execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", - "inline":[ - "echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers" - ] - }, - { - "type": "shell", - "execute_command" : "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'", + "execute_command" : "{{ .Vars }} sudo -E sh '{{ .Path }}'", "script": "/home/ubuntu/misp/bootstrap", "pause_before": "10s" }