Skip to content

Commit 0cec11d

Browse files
committed
Add knife params support to EC2 controller provisioner
1 parent 8912540 commit 0cec11d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

contrib/ec2/provision-ec2-controller.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env bash
22
#
3-
# Usage: ./provision-ec2-controller.sh <region>
3+
# Usage: ./provision-ec2-controller.sh <region> <knife params>
44
#
55

66
if [ -z $1 ]; then
7-
echo usage: $0 [region]
7+
echo usage: $0 [region] [knife params]
88
exit 1
99
fi
1010

@@ -128,7 +128,8 @@ knife ec2 server create \
128128
--identity-file $ssh_key_path \
129129
--node-name $node_name \
130130
--ebs-size $ebs_size \
131-
--run-list $run_list
131+
--run-list $run_list \
132+
${@//$region/}
132133
set +x
133134

134135
# Need Chef admin permission in order to add and remove nodes and clients

0 commit comments

Comments
 (0)