Skip to content

Commit b5e1b43

Browse files
author
Dougal Ballantyne
committed
Removing install_type option
1 parent 75bc305 commit b5e1b43

File tree

10 files changed

+15
-87
lines changed

10 files changed

+15
-87
lines changed

bootstrap/src/scripts/openlava/boot_as_compute

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,13 @@ if [ $RC -ne 0 ]; then
6565
fi
6666
}
6767

68-
function minimal_install () {
68+
function do_install () {
6969
configure_openlava
7070
start_openlava
7171
}
7272

7373
## Main script
74-
case $cfn_install_type in
75-
minimal)
76-
minimal_install
77-
;;
78-
79-
*)
80-
error_exit "Unkown install type: $cfn_install_type"
81-
82-
esac
74+
do_install
8375

8476

8577
script=`basename $0`

bootstrap/src/scripts/openlava/boot_as_master

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,14 @@ if [ $RC -ne 0 ]; then
6767
fi
6868
}
6969

70-
function minimal_install () {
70+
function do_install () {
7171
setup_master_openlava
7272
start_openlava
7373
add_custom_metric
7474
}
7575

7676
## Main script
77-
case $cfn_install_type in
78-
minimal)
79-
minimal_install
80-
;;
81-
82-
*)
83-
error_exit "Unkown install type: $cfn_install_type"
84-
85-
esac
77+
do_install
8678

8779
script=`basename $0`
8880
echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master"

bootstrap/src/scripts/sge/boot_as_compute

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,13 @@ if [ $RC -ne 0 ]; then
5252
fi
5353
}
5454

55-
function minimal_install () {
55+
function do_install () {
5656
mount_nfs
5757
setup_sge_profile
5858
}
5959

6060
## Main script
61-
case $cfn_install_type in
62-
minimal)
63-
minimal_install
64-
;;
65-
66-
*)
67-
error_exit "Unkown install type: $cfn_install_type"
68-
69-
esac
61+
do_install
7062

7163

7264
script=`basename $0`

bootstrap/src/scripts/sge/boot_as_master

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,15 @@ if [ $RC -ne 0 ]; then
7171
fi
7272
}
7373

74-
function minimal_install () {
74+
function do_install () {
7575
setup_master_sge
7676
start_sge
7777
add_master_submit
7878
add_custom_metric
7979
}
8080

8181
## Main script
82-
case $cfn_install_type in
83-
minimal)
84-
minimal_install
85-
;;
86-
87-
*)
88-
error_exit "Unkown install type: $cfn_install_type"
89-
90-
esac
82+
do_install
9183

9284
script=`basename $0`
9385
echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master"

bootstrap/src/scripts/torque/boot_as_compute

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,12 @@ if [ $RC -ne 0 ]; then
5353
fi
5454
}
5555

56-
function minimal_install () {
56+
function do_install () {
5757
setup_torque
5858
}
5959

6060
## Main script
61-
case $cfn_install_type in
62-
minimal)
63-
minimal_install
64-
;;
65-
66-
*)
67-
error_exit "Unkown install type: $cfn_install_type"
68-
69-
esac
61+
do_install
7062

7163

7264
script=`basename $0`

bootstrap/src/scripts/torque/boot_as_master

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,13 @@ if [ $RC -ne 0 ]; then
6262
fi
6363
}
6464

65-
function minimal_install () {
65+
function do_install () {
6666
setup_master_torque
6767
add_custom_metric
6868
}
6969

7070
## Main script
71-
case $cfn_install_type in
72-
minimal)
73-
minimal_install
74-
;;
75-
76-
*)
77-
error_exit "Unkown install type: $cfn_install_type"
78-
79-
esac
71+
do_install
8072

8173
script=`basename $0`
8274
echo "cfncluster: $script - SUCCESS - Booted as cfncluster Master"

cli/cfncluster/cfnconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(self, args):
132132
self.__cluster_options = dict(cluster_user='ClusterUser', compute_instance_type='ComputeInstanceType',
133133
master_instance_type='MasterInstanceType', initial_queue_size='InitialQueueSize',
134134
max_queue_size='MaxQueueSize', maintain_initial_size='MaintainInitialSize',
135-
install_type='InstallType', scheduler='Scheduler', cluster_type='ClusterType',
135+
scheduler='Scheduler', cluster_type='ClusterType',
136136
spot_price='SpotPrice', custom_ami='CustomAMI', pre_install='PreInstallScript',
137137
post_install='PostInstallScript', proxy_server='ProxyServer',
138138
iam_policy='IAMPolicy', placement='Placement', placement_group='PlacementGroup',

cli/cfncluster/examples/config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ key_name = mykey
4242
# Boolean flag to set autoscaling group to maintain initial size and scale back
4343
# (defaults to false for the default template)
4444
#maintain_initial_size = false
45-
# Type of install on instances. "minimal" is just scheduler and
46-
# basic condfig, "full" is VNC + Ganglia as well.
47-
# (defaults to minimal for the default template)
48-
#install_type = minimal
4945
# Cluster scheduler
5046
# (defaults to sge for the default template)
5147
#scheduler = sge

cli/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def read(fname):
2020
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2121

2222
console_scripts = ['cfncluster = cfncluster.cli:main']
23-
version = "0.0.7"
23+
version = "0.0.8"
2424

2525
setup(
2626
name = "cfncluster",

cloudformation/cfncluster.cfn.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,6 @@
186186
"Type" : "String",
187187
"Default" : "NONE"
188188
},
189-
"InstallType" : {
190-
"Description" : "Type of install on instances. \"minimal\" is just scheduler and basic condfig, \"full\" is VNC + Ganglia as well.",
191-
"Type" : "String",
192-
"Default" : "minimal",
193-
"ConstraintDescription" : "must be a supported install type",
194-
"AllowedValues" : [
195-
"minimal",
196-
"full"
197-
]
198-
},
199189
"CustomAMI" : {
200190
"Description" : "ID of a Custom AMI, to use instead of published AMI's",
201191
"Type" : "String",
@@ -1035,12 +1025,7 @@
10351025
"Ref" : "EncryptedEphemeral"
10361026
},
10371027
"\n",
1038-
"cfn_node_type=MasterServer\n",
1039-
"cfn_install_type=",
1040-
{
1041-
"Ref" : "InstallType"
1042-
},
1043-
"\n"
1028+
"cfn_node_type=MasterServer\n"
10441029
]
10451030
]
10461031
},
@@ -1383,11 +1368,6 @@
13831368
{
13841369
"Ref" : "EncryptedEphemeral"
13851370
},
1386-
"\n",
1387-
"cfn_install_type=",
1388-
{
1389-
"Ref" : "InstallType"
1390-
},
13911371
"\n"
13921372
]
13931373
]

0 commit comments

Comments
 (0)