File tree 2 files changed +25
-5
lines changed
2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 3
3
"PACKER_OS_FLAVOUR" : " ubuntu" ,
4
4
"PACKER_BOX_NAME" : " ubuntu-14.04.4-server-amd64" ,
5
5
"AWS_ACCESS_KEY_ID" : " {{env `AWS_ACCESS_KEY_ID`}}" ,
6
- "AWS_SECRET_ACCESS_KEY" : " {{env `AWS_SECRET_ACCESS_KEY`}}"
6
+ "AWS_SECRET_ACCESS_KEY" : " {{env `AWS_SECRET_ACCESS_KEY`}}" ,
7
+ "DIGITALOCEAN_API_TOKEN" : " {{env `DIGITALOCEAN_API_TOKEN`}}"
7
8
},
8
9
"builders" : [
9
10
{
73
74
"image_name" : " application-ubuntu-1404-{{timestamp}}" ,
74
75
"machine_type" : " n1-standard-1" ,
75
76
"ssh_username" : " ubuntu"
77
+ },
78
+ {
79
+ "type" : " digitalocean" ,
80
+ "api_token" : " {{ user `DIGITALOCEAN_API_TOKEN` }}" ,
81
+ "image" : " ubuntu-14-04-x64" ,
82
+ "region" : " tor1" ,
83
+ "size" : " 512mb" ,
84
+ "droplet_name" : " udacity-devops" ,
85
+ "private_networking" : true
76
86
}
77
87
],
78
88
106
116
[
107
117
{
108
118
"type" : " vagrant" ,
109
- "except" : [" googlecompute" ],
119
+ "except" : [" googlecompute" , " digitalocean " ],
110
120
"compression_level" : " 9" ,
111
121
"output" : " {{.Provider}}/{{ user `PACKER_BOX_NAME` }}-appserver_{{.Provider}}.box"
112
122
}
Original file line number Diff line number Diff line change 3
3
"PACKER_OS_FLAVOUR" : " ubuntu" ,
4
4
"PACKER_BOX_NAME" : " ubuntu-14.04.4-server-amd64" ,
5
5
"AWS_ACCESS_KEY_ID" : " {{env `AWS_ACCESS_KEY_ID`}}" ,
6
- "AWS_SECRET_ACCESS_KEY" : " {{env `AWS_SECRET_ACCESS_KEY`}}"
6
+ "AWS_SECRET_ACCESS_KEY" : " {{env `AWS_SECRET_ACCESS_KEY`}}" ,
7
+ "DIGITALOCEAN_API_TOKEN" : " {{env `DIGITALOCEAN_API_TOKEN`}}"
7
8
},
8
9
"builders" : [
9
10
{
73
74
"image_name" : " control-ubuntu-1404-{{timestamp}}" ,
74
75
"machine_type" : " n1-standard-1" ,
75
76
"ssh_username" : " ubuntu"
76
- }
77
+ },
78
+ {
79
+ "type" : " digitalocean" ,
80
+ "api_token" : " {{ user `DIGITALOCEAN_API_TOKEN` }}" ,
81
+ "image" : " ubuntu-14-04-x64" ,
82
+ "region" : " tor1" ,
83
+ "size" : " 512mb" ,
84
+ "droplet_name" : " udacity-devops" ,
85
+ "private_networking" : true
86
+ }
77
87
],
78
88
"provisioners" : [
79
89
{
112
122
[
113
123
{
114
124
"type" : " vagrant" ,
115
- "except" : [" googlecompute" ],
125
+ "except" : [" googlecompute" , " digitalocean " ],
116
126
"compression_level" : " 9" ,
117
127
"output" : " ../output/{{.Provider}}/control-{{ user `PACKER_BOX_NAME` }}.box"
118
128
}
You can’t perform that action at this time.
0 commit comments