forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
packer_update_centos_base.json
49 lines (49 loc) · 1.25 KB
/
packer_update_centos_base.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
{
"variables" : {
"build_date" : "{{env `BUILD_DATE`}}"
},
"builders" : [
{
"type": "amazon-ebs",
"name" : "CentOS 6",
"region": "us-east-1",
"source_ami": "ami-500d8546",
"instance_type": "t2.micro",
"ssh_username": "centos",
"ssh_pty" : true,
"ami_name": "CentOS 6.x x86_64 - minimal with cloud-init - {{user `build_date`}}-0",
"associate_public_ip_address" : true,
"sriov_support" : true,
"ena_support" : true
},
{
"type": "amazon-ebs",
"name" : "CentOS 7",
"region": "us-east-1",
"source_ami": "ami-ae7bfdb8",
"instance_type": "t2.micro",
"ssh_username": "centos",
"ssh_pty" : true,
"ami_name": "CentOS 7.x x86_64 - minimal with cloud-init - {{user `build_date`}}-0",
"associate_public_ip_address" : true,
"sriov_support" : true,
"ena_support" : true
}
],
"provisioners" : [
{
"type": "file",
"source": "centos6.elrepo.repo",
"destination": "/tmp/centos6.elrepo.repo"
},
{
"type" : "shell",
"expect_disconnect" : true,
"script" : "centos-upgrade-first-stage.sh"
},
{
"type" : "shell",
"script" : "centos-upgrade-second-stage.sh"
}
]
}