Skip to content

Commit 8dbcf62

Browse files
committed
Merge branch 'dynamic-placement-groups' into develop
2 parents 436afe3 + 6c8a645 commit 8dbcf62

File tree

4 files changed

+46
-4
lines changed

4 files changed

+46
-4
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
CHANGELOG
33
=========
44

5+
1.1.0
6+
=====
7+
* feature:``cfncluster``: Support for dynamic placement groups
8+
59
1.0.1
610
=====
711
* bugfix:``cfncluster-node``: Fix for nodes being disabled when maintain_initial_size is true

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 = "1.0.1"
23+
version = "1.1.0"
2424
requires = ['boto>=2.39']
2525

2626
if sys.version_info[:2] == (2, 6):

cloudformation/cfncluster.cfn.json

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,21 @@
804804
},
805805
"NONE"
806806
]
807+
},
808+
"CreatePlacementGroup" : {
809+
"Fn::And" : [
810+
{
811+
"Fn::Equals" : [
812+
{
813+
"Ref" : "PlacementGroup"
814+
},
815+
"DYNAMIC"
816+
]
817+
},
818+
{
819+
"Condition" : "UsePlacementGroup"
820+
}
821+
]
807822
}
808823
},
809824
"Mappings" : {
@@ -1635,7 +1650,15 @@
16351650
"Fn::If" : [
16361651
"UseClusterPlacement",
16371652
{
1638-
"Ref" : "PlacementGroup"
1653+
"Fn::If" : [
1654+
"CreatePlacementGroup",
1655+
{
1656+
"Ref" : "DynamicPlacementGroup"
1657+
},
1658+
{
1659+
"Ref" : "PlacementGroup"
1660+
}
1661+
]
16391662
},
16401663
{
16411664
"Ref" : "AWS::NoValue"
@@ -2079,7 +2102,15 @@
20792102
"Fn::If" : [
20802103
"UsePlacementGroup",
20812104
{
2082-
"Ref" : "PlacementGroup"
2105+
"Fn::If" : [
2106+
"CreatePlacementGroup",
2107+
{
2108+
"Ref" : "DynamicPlacementGroup"
2109+
},
2110+
{
2111+
"Ref" : "PlacementGroup"
2112+
}
2113+
]
20832114
},
20842115
{
20852116
"Ref" : "AWS::NoValue"
@@ -3038,6 +3069,13 @@
30383069
}
30393070
},
30403071
"Condition" : "MasterPublicIp"
3072+
},
3073+
"DynamicPlacementGroup" : {
3074+
"Type" : "AWS::EC2::PlacementGroup",
3075+
"Properties" : {
3076+
"Strategy" : "cluster"
3077+
},
3078+
"Condition" : "CreatePlacementGroup"
30413079
}
30423080
},
30433081
"Outputs" : {

docs/source/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Defaults to NONE for the default template. ::
227227

228228
placement_group
229229
"""""""""""""""
230-
Cluster placement group. This placement group must already exist.
230+
Cluster placement group. The can be one of three values: NONE, DYNAMIC and an existing placement group name. When DYNAMIC is set, a unique placement group will be created as part of the cluster and deleted when the cluster is deleted.
231231

232232
Defaults to NONE for the default template. ::
233233

0 commit comments

Comments
 (0)