File tree Expand file tree Collapse file tree 13 files changed +16
-61
lines changed Expand file tree Collapse file tree 13 files changed +16
-61
lines changed Original file line number Diff line number Diff line change 160
160
{
161
161
"type" : " shell" ,
162
162
"inline" : [
163
- " curl --retry 3 - L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
163
+ " curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
164
164
]
165
165
},
166
166
{
229
229
{
230
230
"type" : " shell" ,
231
231
"inline" : [
232
- " region=\" {{user `region`}}\" " ,
233
- " bucket=\" s3.${region}.amazonaws.com\" " ,
234
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
235
- " sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
232
+ " sudo curl https://s3.amazonaws.com/us-east-1-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
236
233
]
237
234
},
238
235
{
Original file line number Diff line number Diff line change 167
167
{
168
168
"type" : " shell" ,
169
169
"inline" : [
170
- " curl --retry 3 - L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
170
+ " curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
171
171
]
172
172
},
173
173
{
238
238
{
239
239
"type" : " shell" ,
240
240
"inline" : [
241
- " region=\" {{user `region`}}\" " ,
242
- " bucket=\" s3.${region}.amazonaws.com\" " ,
243
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
244
- " curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.zip https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
241
+ " wget -O /tmp/aws-cfn-bootstrap-latest.zip https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
245
242
" sudo pip install /tmp/aws-cfn-bootstrap-latest.zip"
246
243
]
247
244
},
248
245
{
249
246
"type" : " shell" ,
250
247
"inline" : [
251
- " region=\" {{user `region`}}\" " ,
252
- " bucket=\" s3.${region}.amazonaws.com\" " ,
253
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
254
- " sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
248
+ " sudo curl https://s3.amazonaws.com/us-east-1-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
255
249
]
256
250
},
257
251
{
Original file line number Diff line number Diff line change 166
166
{
167
167
"type" : " shell" ,
168
168
"inline" : [
169
- " curl --retry 3 - L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
169
+ " curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
170
170
]
171
171
},
172
172
{
235
235
{
236
236
"type" : " shell" ,
237
237
"inline" : [
238
- " region=\" {{user `region`}}\" " ,
239
- " bucket=\" s3.${region}.amazonaws.com\" " ,
240
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
241
- " curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.zip https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
238
+ " wget -O /tmp/aws-cfn-bootstrap-latest.zip https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
242
239
" which pip2" ,
243
240
" if [ $? -eq 0 ]; then sudo pip2 install /tmp/aws-cfn-bootstrap-latest.zip; else sudo pip install /tmp/aws-cfn-bootstrap-latest.zip; fi"
244
241
]
245
242
},
246
243
{
247
244
"type" : " shell" ,
248
245
"inline" : [
249
- " region=\" {{user `region`}}\" " ,
250
- " bucket=\" s3.${region}.amazonaws.com\" " ,
251
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
252
- " sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
246
+ " sudo curl https://s3.amazonaws.com/us-east-1-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
253
247
]
254
248
},
255
249
{
Original file line number Diff line number Diff line change 174
174
{
175
175
"type" : " shell" ,
176
176
"inline" : [
177
- " curl --retry 3 - L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
177
+ " curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
178
178
]
179
179
},
180
180
{
243
243
{
244
244
"type" : " shell" ,
245
245
"inline" : [
246
- " region=\" {{user `region`}}\" " ,
247
- " bucket=\" s3.${region}.amazonaws.com\" " ,
248
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
249
- " curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.zip https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
246
+ " wget -O /tmp/aws-cfn-bootstrap-latest.zip https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
250
247
" sudo pip install /tmp/aws-cfn-bootstrap-latest.zip"
251
248
]
252
249
},
253
250
{
254
251
"type" : " shell" ,
255
252
"inline" : [
256
- " region=\" {{user `region`}}\" " ,
257
- " bucket=\" s3.${region}.amazonaws.com\" " ,
258
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
259
- " sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
253
+ " sudo curl https://s3.amazonaws.com/us-east-1-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
260
254
]
261
255
},
262
256
{
Original file line number Diff line number Diff line change 177
177
{
178
178
"type" : " shell" ,
179
179
"inline" : [
180
- " curl --retry 3 - L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
180
+ " curl -L https://www.chef.io/chef/install.sh | sudo bash -s -- -v {{user `chef_version`}}"
181
181
]
182
182
},
183
183
{
246
246
{
247
247
"type" : " shell" ,
248
248
"inline" : [
249
- " region=\" {{user `region`}}\" " ,
250
- " bucket=\" s3.${region}.amazonaws.com\" " ,
251
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
252
- " curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.zip https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
249
+ " wget -O /tmp/aws-cfn-bootstrap-latest.zip https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.zip" ,
253
250
" sudo pip install /tmp/aws-cfn-bootstrap-latest.zip"
254
251
]
255
252
},
256
253
{
257
254
"type" : " shell" ,
258
255
"inline" : [
259
- " region=\" {{user `region`}}\" " ,
260
- " bucket=\" s3.${region}.amazonaws.com\" " ,
261
- " [[ ${region} =~ ^cn- ]] && bucket=\" s3.${region}.amazonaws.com.cn\" " ,
262
- " sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
256
+ " sudo curl https://s3.amazonaws.com/us-east-1-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
263
257
]
264
258
},
265
259
{
Original file line number Diff line number Diff line change 31
31
remote_file ganglia_tarball do
32
32
source node [ 'cfncluster' ] [ 'ganglia' ] [ 'url' ]
33
33
mode '0644'
34
- retries 3
35
- retry_delay 5
36
34
# TODO: Add version or checksum checks
37
35
not_if { ::File . exist? ( ganglia_tarball ) }
38
36
end
86
84
remote_file ganglia_web_tarball do
87
85
source node [ 'cfncluster' ] [ 'ganglia' ] [ 'web_url' ]
88
86
mode '0644'
89
- retries 3
90
- retry_delay 5
91
87
# TODO: Add version or checksum checks
92
88
not_if { ::File . exist? ( ganglia_web_tarball ) }
93
89
end
Original file line number Diff line number Diff line change 31
31
remote_file nvidia_tmp_runfile do
32
32
source node [ 'cfncluster' ] [ 'nvidia' ] [ 'driver_url' ]
33
33
mode '0755'
34
- retries 3
35
- retry_delay 5
36
34
not_if { ::File . exist? ( nvidia_tmp_runfile ) }
37
35
end
38
36
52
50
remote_file cuda_tmp_runfile do
53
51
source node [ 'cfncluster' ] [ 'nvidia' ] [ 'cuda_url' ]
54
52
mode '0755'
55
- retries 3
56
- retry_delay 5
57
53
not_if { ::File . exist? ( cuda_tmp_runfile ) }
58
54
end
59
55
Original file line number Diff line number Diff line change 40
40
cwd Chef ::Config [ :file_cache_path ]
41
41
code <<-CLI
42
42
source /tmp/proxy.sh
43
- curl --retry 3 - v -L -o aws-parallelcluster.tgz #{ node [ 'cfncluster' ] [ 'custom_awsbatchcli_package' ] }
43
+ curl -v -L -o aws-parallelcluster.tgz #{ node [ 'cfncluster' ] [ 'custom_awsbatchcli_package' ] }
44
44
tar -xzf aws-parallelcluster.tgz
45
45
cd aws-parallelcluster-*
46
46
pip install cli/
Original file line number Diff line number Diff line change 121
121
user 'root'
122
122
group 'root'
123
123
mode '0755'
124
- retries 3
125
- retry_delay 5
126
124
end
127
125
128
126
# Fix dependencies for CentOS 6 (Python 2.6)
140
138
code <<-NODE
141
139
source /tmp/proxy.sh
142
140
pip uninstall --yes aws-parallelcluster-node
143
- curl --retry 3 - v -L -o aws-parallelcluster-node.tgz #{ node [ 'cfncluster' ] [ 'custom_node_package' ] }
141
+ curl -v -L -o aws-parallelcluster-node.tgz #{ node [ 'cfncluster' ] [ 'custom_node_package' ] }
144
142
tar -xzf aws-parallelcluster-node.tgz
145
143
cd aws-parallelcluster-node-*
146
144
/usr/bin/python setup.py install
Original file line number Diff line number Diff line change 21
21
remote_file munge_tarball do
22
22
source node [ 'cfncluster' ] [ 'munge' ] [ 'munge_url' ]
23
23
mode '0644'
24
- retries 3
25
- retry_delay 5
26
24
# TODO: Add version or checksum checks
27
25
not_if { ::File . exist? ( munge_tarball ) }
28
26
end
You can’t perform that action at this time.
0 commit comments