diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-11-29 14:18:11 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-11-29 14:18:11 +0000 |
commit | d5211348dbf568c0c52d03e47c6448083d8ac9d2 (patch) | |
tree | 9e17c1b18d20296464eb5160600b8c729c435777 /ci/common | |
parent | 95e443cd1081224cac9ca89846c874d10c6c43da (diff) | |
parent | 2819cb391b3935e244888bdbaeb3b9d7d4310c8e (diff) |
Merge "Import TripleO CI environments from tripleo-ci"
Diffstat (limited to 'ci/common')
-rw-r--r-- | ci/common/net-config-multinode.yaml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/ci/common/net-config-multinode.yaml b/ci/common/net-config-multinode.yaml new file mode 100644 index 00000000..49a06881 --- /dev/null +++ b/ci/common/net-config-multinode.yaml @@ -0,0 +1,64 @@ +heat_template_version: 2015-04-30 + +description: > + Software Config to drive os-net-config for a simple bridge configured + with a static IP address for the ctlplane network. + +parameters: + ControlPlaneIp: + default: '' + description: IP address/subnet on the ctlplane network + type: string + ExternalIpSubnet: + default: '' + description: IP address/subnet on the external network + type: string + InternalApiIpSubnet: + default: '' + description: IP address/subnet on the internal API network + type: string + StorageIpSubnet: + default: '' + description: IP address/subnet on the storage network + type: string + StorageMgmtIpSubnet: + default: '' + description: IP address/subnet on the storage mgmt network + type: string + TenantIpSubnet: + default: '' + description: IP address/subnet on the tenant network + type: string + ManagementIpSubnet: + default: '' + description: IP address/subnet on the management network + type: string + ControlPlaneSubnetCidr: # Override this via parameter_defaults + default: '24' + description: The subnet CIDR of the control plane network. + type: string + +resources: + OsNetConfigImpl: + type: OS::Heat::SoftwareConfig + properties: + group: script + config: + str_replace: + template: | + #!/bin/bash + ip addr add CONTROLPLANEIP/CONTROLPLANESUBNETCIDR dev $bridge_name + params: + CONTROLPLANEIP: {get_param: ControlPlaneIp} + CONTROLPLANESUBNETCIDR: {get_param: ControlPlaneSubnetCidr} + inputs: + - + name: bridge_name + default: br-ex + description: bridge-name + type: String + +outputs: + OS::stack_id: + description: The OsNetConfigImpl resource. + value: {get_resource: OsNetConfigImpl} |