Merge pull request #5 from RichieB2B/packer-fix

Improve packer-aws.json
pull/6/head
Tiago Faria 2018-09-19 17:50:18 +01:00 committed by GitHub
commit 733b45c71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -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"
}