Convert ipv4 nic-config templates
The ipv4 nic-config templates in tripleo-heat-templates were never updated to use "group: script" and were still using the deprecated "group: os-apply-config". This commit updates the templates. Doing so means they will also work with the config-download deploy mechanism which only supports the "group: script" method. This update allows us to move forward with converting ci jobs that use these templates (such as ovb-ha) to use config-download. Change-Id: If3cc2749c070a9e88a33b8b0643aeef8a97dd181
This commit is contained in:
parent
c74318381c
commit
c3cbce2ba9
@ -79,9 +79,15 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
OsNetConfigImpl:
|
OsNetConfigImpl:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
|
group: script
|
||||||
config:
|
config:
|
||||||
os_net_config:
|
str_replace:
|
||||||
|
template:
|
||||||
|
get_file: ../../../../../network/scripts/run-os-net-config.sh
|
||||||
|
params:
|
||||||
|
$network_config:
|
||||||
network_config:
|
network_config:
|
||||||
- type: interface
|
- type: interface
|
||||||
name: nic1
|
name: nic1
|
||||||
@ -110,8 +116,6 @@ resources:
|
|||||||
use_dhcp: false
|
use_dhcp: false
|
||||||
addresses:
|
addresses:
|
||||||
- ip_netmask: {get_param: StorageMgmtIpSubnet}
|
- ip_netmask: {get_param: StorageMgmtIpSubnet}
|
||||||
group: os-apply-config
|
|
||||||
type: OS::Heat::StructuredConfig
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
OS::stack_id:
|
OS::stack_id:
|
||||||
|
@ -79,12 +79,16 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
OsNetConfigImpl:
|
OsNetConfigImpl:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
|
group: script
|
||||||
config:
|
config:
|
||||||
os_net_config:
|
str_replace:
|
||||||
|
template:
|
||||||
|
get_file: ../../../../../network/scripts/run-os-net-config.sh
|
||||||
|
params:
|
||||||
|
$network_config:
|
||||||
network_config: []
|
network_config: []
|
||||||
group: os-apply-config
|
|
||||||
type: OS::Heat::StructuredConfig
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
OS::stack_id:
|
OS::stack_id:
|
||||||
|
@ -79,9 +79,15 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
OsNetConfigImpl:
|
OsNetConfigImpl:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
|
group: script
|
||||||
config:
|
config:
|
||||||
os_net_config:
|
str_replace:
|
||||||
|
template:
|
||||||
|
get_file: ../../../../../network/scripts/run-os-net-config.sh
|
||||||
|
params:
|
||||||
|
$network_config:
|
||||||
network_config:
|
network_config:
|
||||||
- type: interface
|
- type: interface
|
||||||
name: nic1
|
name: nic1
|
||||||
@ -127,8 +133,6 @@ resources:
|
|||||||
use_dhcp: false
|
use_dhcp: false
|
||||||
addresses:
|
addresses:
|
||||||
- ip_netmask: {get_param: StorageMgmtIpSubnet}
|
- ip_netmask: {get_param: StorageMgmtIpSubnet}
|
||||||
group: os-apply-config
|
|
||||||
type: OS::Heat::StructuredConfig
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
OS::stack_id:
|
OS::stack_id:
|
||||||
|
@ -79,9 +79,15 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
OsNetConfigImpl:
|
OsNetConfigImpl:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
|
group: script
|
||||||
config:
|
config:
|
||||||
os_net_config:
|
str_replace:
|
||||||
|
template:
|
||||||
|
get_file: ../../../../../network/scripts/run-os-net-config.sh
|
||||||
|
params:
|
||||||
|
$network_config:
|
||||||
network_config:
|
network_config:
|
||||||
- type: interface
|
- type: interface
|
||||||
name: nic1
|
name: nic1
|
||||||
@ -139,8 +145,6 @@ resources:
|
|||||||
name: nic6
|
name: nic6
|
||||||
mtu: 1350
|
mtu: 1350
|
||||||
primary: true
|
primary: true
|
||||||
group: os-apply-config
|
|
||||||
type: OS::Heat::StructuredConfig
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
OS::stack_id:
|
OS::stack_id:
|
||||||
|
@ -79,12 +79,16 @@ parameters:
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
OsNetConfigImpl:
|
OsNetConfigImpl:
|
||||||
|
type: OS::Heat::SoftwareConfig
|
||||||
properties:
|
properties:
|
||||||
|
group: script
|
||||||
config:
|
config:
|
||||||
os_net_config:
|
str_replace:
|
||||||
|
template:
|
||||||
|
get_file: ../../../../../network/scripts/run-os-net-config.sh
|
||||||
|
params:
|
||||||
|
$network_config:
|
||||||
network_config: []
|
network_config: []
|
||||||
group: os-apply-config
|
|
||||||
type: OS::Heat::StructuredConfig
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
OS::stack_id:
|
OS::stack_id:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user