Add AWS template for Linux box.
This commit is contained in:
parent
3fdaf996ae
commit
f77210b47d
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"builders": [
|
||||
{
|
||||
"type": "amazon-ebs",
|
||||
"region": "us-east-1",
|
||||
"source_ami": "ami-86562dee",
|
||||
"instance_type": "t2.small",
|
||||
"ssh_username": "ubuntu",
|
||||
"ami_name": "metasploitable3-ub1404-{{user `box_version`}}"
|
||||
}
|
||||
],
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "chef-solo",
|
||||
"cookbook_paths": [
|
||||
"{{template_dir}}/../../../chef/cookbooks"
|
||||
],
|
||||
"run_list": [
|
||||
"metasploitable::vm_tools",
|
||||
"metasploitable::users",
|
||||
"metasploitable::mysql",
|
||||
"metasploitable::apache_continuum",
|
||||
"metasploitable::apache",
|
||||
"metasploitable::php_545",
|
||||
"metasploitable::phpmyadmin",
|
||||
"metasploitable::proftpd",
|
||||
"metasploitable::docker",
|
||||
"metasploitable::samba",
|
||||
"metasploitable::sinatra",
|
||||
"metasploitable::unrealircd",
|
||||
"metasploitable::chatbot",
|
||||
"metasploitable::payroll_app",
|
||||
"metasploitable::readme_app",
|
||||
"metasploitable::cups",
|
||||
"metasploitable::drupal",
|
||||
"metasploitable::knockd",
|
||||
"metasploitable::iptables",
|
||||
"metasploitable::flags"
|
||||
]
|
||||
}
|
||||
],
|
||||
"variables": {
|
||||
"iso_url": "http://old-releases.ubuntu.com/releases/14.04.1/ubuntu-14.04.1-server-amd64.iso",
|
||||
"iso_checksum_type": "md5",
|
||||
"iso_checksum": "ca2531b8cd79ea5b778ede3a524779b9",
|
||||
"box_version": "0.1.2"
|
||||
}
|
||||
}
|
|
@ -1,13 +1,5 @@
|
|||
{
|
||||
"builders": [
|
||||
{
|
||||
"type": "amazon-ebs",
|
||||
"region": "us-east-2",
|
||||
"source_ami": "ami-69a1800c",
|
||||
"instance_type": "t2.small",
|
||||
"ssh_username": "ubuntu",
|
||||
"ami_name": "metasploitable3-ub1404-{{user `box_version`}}"
|
||||
},
|
||||
{
|
||||
"type": "vmware-iso",
|
||||
"iso_url": "{{user `iso_url`}}",
|
||||
|
@ -123,18 +115,9 @@
|
|||
}
|
||||
],
|
||||
"post-processors": [
|
||||
{
|
||||
"type": "amazon-import",
|
||||
"region": "us-east-2",
|
||||
"keep_input_artifact": true,
|
||||
"s3_bucket_name": "metasploitable3",
|
||||
"tags": {
|
||||
"Description": "packer amazon-import {{user `box_version`}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "vagrant",
|
||||
"keep_input_artifact": true,
|
||||
"keep_input_artifact": false,
|
||||
"output": "{{template_dir}}/../builds/ubuntu_1404_{{.Provider}}_{{user `box_version`}}.box"
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue