Update app dev framework with multi-region support
When security rules were applied they were were applied to the environment's Heat stack. Now they are applied to each region's stack application instances belong in. Change-Id: Ia94cf24bcf517af7db57117f86c7b802423f81df
This commit is contained in:
@@ -362,11 +362,26 @@ Methods:
|
|||||||
Contract: $.class(ServerGroup).notNull()
|
Contract: $.class(ServerGroup).notNull()
|
||||||
Body:
|
Body:
|
||||||
- $sr: $this.getSecurityRules()
|
- $sr: $this.getSecurityRules()
|
||||||
- $env: $this.find(std:Environment)
|
- If: $sr
|
||||||
- If: $sr and $env
|
|
||||||
Then:
|
Then:
|
||||||
- $env.securityGroupManager.addGroupIngress($sr)
|
- $regions: $servers.select($.getRegion()).distinct()
|
||||||
- $env.stack.push()
|
- $regions.pselect($this._configureSecurityGroup($, $sr))
|
||||||
|
|
||||||
|
_configureSecurityGroup:
|
||||||
|
Usage: Static
|
||||||
|
Arguments:
|
||||||
|
- region:
|
||||||
|
Contract: $.class(std:CloudRegion).notNull()
|
||||||
|
- rules:
|
||||||
|
Contract:
|
||||||
|
- FromPort: $.int().notNull()
|
||||||
|
ToPort: $.int().notNull()
|
||||||
|
IpProtocol: $.string().notNull()
|
||||||
|
External: $.bool().notNull()
|
||||||
|
Ethertype: $.string().check($ in list(null, 'IPv4', 'IPv6'))
|
||||||
|
Body:
|
||||||
|
- $region.securityGroupManager.addGroupIngress($rules)
|
||||||
|
- $region.stack.push()
|
||||||
|
|
||||||
getSecurityRules:
|
getSecurityRules:
|
||||||
Body:
|
Body:
|
||||||
|
Reference in New Issue
Block a user