Add network ExtraConfig hook

Adds a post-network hook to execute some tasks before nodes deployment.

This hook is execute one time (not for each node) during network step.
It can be useful to execute scripts or templates before creating nodes.

For example, we can use this hook for :
- Deploy stuff used during the deployment of nodes.
- Deploying network, backup, monitoring infrastructure.

Change-Id: I3e999d73b55c5c27f70f722ec63ec8f2150bb5aa
This commit is contained in:
Pierre Blanc 2016-01-09 12:21:15 -05:00
parent 31b05b17bf
commit 4c7d8732ca
3 changed files with 8 additions and 0 deletions

3
network/extraconfig.yaml Normal file

@ -0,0 +1,3 @@
heat_template_version: 2015-04-30
description: Noop network extra config

@ -21,3 +21,6 @@ resources:
ManagementNetwork:
type: OS::TripleO::Network::Management
NetworkExtraConfig:
type: OS::TripleO::Network::ExtraConfig

@ -63,6 +63,8 @@ resource_registry:
OS::TripleO::Network::Tenant: network/noop.yaml
OS::TripleO::Network::Management: network/noop.yaml
OS::TripleO::Network::ExtraConfig: network/extraconfig.yaml
OS::TripleO::Network::Ports::NetVipMap: network/ports/net_ip_map.yaml
OS::TripleO::Network::Ports::NetIpMap: network/ports/net_ip_map.yaml
OS::TripleO::Network::Ports::NetIpSubnetMap: network/ports/net_ip_subnet_map.yaml