mirror of https://github.com/MISP/misp-cloud
commit
733b45c71c
|
@ -6,8 +6,6 @@
|
||||||
},
|
},
|
||||||
"builders": [{
|
"builders": [{
|
||||||
"type": "amazon-ebs",
|
"type": "amazon-ebs",
|
||||||
"access_key": "{{user `aws_access_key`}}",
|
|
||||||
"secret_key": "{{user `aws_secret_key`}}",
|
|
||||||
"region": "eu-west-1",
|
"region": "eu-west-1",
|
||||||
"ami_groups": "all",
|
"ami_groups": "all",
|
||||||
"source_ami_filter": {
|
"source_ami_filter": {
|
||||||
|
@ -31,14 +29,7 @@
|
||||||
"provisioners": [
|
"provisioners": [
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
|
"execute_command" : "{{ .Vars }} sudo -E 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 }}'",
|
|
||||||
"script": "/home/ubuntu/misp/bootstrap",
|
"script": "/home/ubuntu/misp/bootstrap",
|
||||||
"pause_before": "10s"
|
"pause_before": "10s"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue