|
39 | 39 | "MaxValue" : "1000", |
40 | 40 | "Description" : "Number of worker nodes in the Swarm (1-1000)." |
41 | 41 | }, |
| 42 | + "WorkerDiskSize" : { |
| 43 | + "Type" : "Number", |
| 44 | + "Default" : "20", |
| 45 | + "MinValue" : "20", |
| 46 | + "MaxValue" : "1024", |
| 47 | + "Description" : "Size of Workers's EBS volume in GiB" |
| 48 | + }, |
| 49 | + "WorkerDiskType" : { |
| 50 | + "Type" : "String", |
| 51 | + "Default" : "standard", |
| 52 | + "AllowedValues" : ["standard", "gp2"], |
| 53 | + "Description" : "Worker EBS volume type" |
| 54 | + }, |
42 | 55 | "ManagerSize" : { |
43 | 56 | "Type" : "Number", |
44 | 57 | "Default" : "3", |
|
50 | 63 | "Default" : "no", |
51 | 64 | "AllowedValues" : ["no", "yes"], |
52 | 65 | "Description" : "Cleans up unused images, containers, networks and volumes" |
| 66 | + }, |
| 67 | + "ManagerDiskSize" : { |
| 68 | + "Type" : "Number", |
| 69 | + "Default" : "20", |
| 70 | + "MinValue" : "20", |
| 71 | + "MaxValue" : "1024", |
| 72 | + "Description" : "Size of Manager's EBS volume in GiB" |
| 73 | + }, |
| 74 | + "ManagerDiskType" : { |
| 75 | + "Type" : "String", |
| 76 | + "Default" : "standard", |
| 77 | + "AllowedValues" : ["standard", "gp2"], |
| 78 | + "Description" : "Manager EBS volume type" |
53 | 79 | } |
54 | 80 |
|
55 | 81 | }, |
|
61 | 87 | "Parameters" : [ "ManagerSize", "ClusterSize" ] |
62 | 88 | }, |
63 | 89 | { |
64 | | - "Label" : { "default":"Swarm Properties" }, |
65 | | - "Parameters" : [ "ManagerInstanceType", "InstanceType", "KeyName", "EnableSystemPrune" ] |
| 90 | + "Label" : { "default" : "Swarm Properties" }, |
| 91 | + "Parameters" : [ "KeyName", "EnableSystemPrune" ] |
| 92 | + }, |
| 93 | + { |
| 94 | + "Label" : { "default":"Swarm Manager Properties" }, |
| 95 | + "Parameters" : [ "ManagerInstanceType", "ManagerDiskSize", "ManagerDiskType" ] |
| 96 | + }, |
| 97 | + { |
| 98 | + "Label" : { "default":"Swarm Worker Properties" }, |
| 99 | + "Parameters" : [ "InstanceType", "WorkerDiskSize", "WorkerDiskType" ] |
66 | 100 | } |
67 | 101 | ], |
68 | 102 | "ParameterLabels" : { |
|
71 | 105 | "InstanceType" : { "default" : "Agent worker instance type?" }, |
72 | 106 | "ManagerInstanceType" : { "default" : "Swarm manager instance type?" }, |
73 | 107 | "KeyName" : { "default" : "Which SSH key to use?" }, |
74 | | - "EnableSystemPrune": {"default" : "Enable daily resource cleanup?"} |
| 108 | + "EnableSystemPrune": {"default" : "Enable daily resource cleanup?"}, |
| 109 | + "WorkerDiskSize" : { "default" : "Worker ELB size?" }, |
| 110 | + "WorkerDiskType" : { "default" : "Worker EBS volume type" }, |
| 111 | + "ManagerDiskSize" : { "default" : "Manager EBS size?" }, |
| 112 | + "ManagerDiskType" : { "default" : "Manager EBS volume type" } |
75 | 113 | } |
76 | 114 | } |
77 | 115 | }, |
|
545 | 583 | "Type": "AWS::AutoScaling::LaunchConfiguration", |
546 | 584 | "Properties": { |
547 | 585 | "InstanceType": {"Ref" : "ManagerInstanceType"}, |
| 586 | + "BlockDeviceMappings" : [ { |
| 587 | + "DeviceName" : "/dev/xvdb", |
| 588 | + "Ebs" : { |
| 589 | + "VolumeSize" : { "Ref" : "ManagerDiskSize" }, |
| 590 | + "VolumeType" : { "Ref" : "ManagerDiskType" } |
| 591 | + } |
| 592 | + }], |
548 | 593 | "IamInstanceProfile" : { "Ref" : "ProxyInstanceProfile" }, |
549 | 594 | "KeyName": { |
550 | 595 | "Ref": "KeyName" |
|
697 | 742 | "Type": "AWS::AutoScaling::LaunchConfiguration", |
698 | 743 | "Properties": { |
699 | 744 | "InstanceType": {"Ref" : "InstanceType"}, |
| 745 | + "BlockDeviceMappings" : [ { |
| 746 | + "DeviceName" : "/dev/xvdb", |
| 747 | + "Ebs" : { |
| 748 | + "VolumeSize" : { "Ref" : "WorkerDiskSize" }, |
| 749 | + "VolumeType" : { "Ref" : "WorkerDiskType" } |
| 750 | + } |
| 751 | + }], |
700 | 752 | "IamInstanceProfile" : { "Ref" : "ProxyInstanceProfile" }, |
701 | 753 | "KeyName": { |
702 | 754 | "Ref": "KeyName" |
|
0 commit comments