forked from opstree/spring3hibernate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker_build.json
49 lines (43 loc) · 1.3 KB
/
packer_build.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `access_key`}}",
"secret_key": "{{user `secret_key`}}",
"region": "{{user `region`}}",
"source_ami": "{{user `source_ami`}}",
"instance_type": "{{user `instance_type`}}",
"ssh_username": "{{user `ssh_username`}}",
"ami_name": "{{user `ami_name`}}-{{timestamp}}",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}}",
"security_group_id": "{{user `security_group_id`}}",
"skip_region_validation": true,
"associate_public_ip_address": true,
"tags": {
"Name": "{{user `ami_name`}}-{{timestamp}}",
"Os_hardening" : "true",
"Environment": "global",
"Owner": "devops",
"Type": "golden"
}
}
],
"provisioners": [
{
"type": "shell",
"inline": ["sleep 30"]
},
{
"type": "file",
"source": "linux_hardening",
"destination": "/tmp/linux_hardening"
},
{
"type": "ansible-local",
"galaxy_command": "ansible-galaxy",
"galaxy_file": "linux_hardening/requirements.yml",
"playbook_file": "linux_hardening/playbook.yml"
}
]
}