tripleo-image-elements/elements/os-net-config
Dan Prince cae4740ee2 os-net-config: add configure_safe_defaults
This patch adds a new configure_safe_defaults function that
is called on EXIT. If the exit code is non-zero the function
executes code to configure DHCP on all active interfaces.

Since DHCP is used to initially bootstrap all TripleO instances
via the provisioning network this should always be a safe default
and allow communication with Heat to persist if an invalid
(breaking) network configuration change is pushed out. This would
facilitate immediate Heat notification of the failure and subsequent
Heat updates to potentially help correct the invalid network
configuration.

Change-Id: Ibccba1ee77aa13c85a78a75d2e6cd179f87d7d16
Depends-on: Ibe0e32bc09979bc68b92a722b2bfa383e77502a9
2015-09-17 21:05:22 -04:00
..
environment.d Add an element to install os-net-config. 2014-09-17 15:01:37 -04:00
install.d/os-net-config-source-install Merge "Update pbr version to match global requirements" 2015-07-02 20:02:16 +00:00
os-apply-config/etc/os-net-config Add an element to install os-net-config. 2014-09-17 15:01:37 -04:00
os-refresh-config/configure.d os-net-config: add configure_safe_defaults 2015-09-17 21:05:22 -04:00
README.md Add an element to install os-net-config. 2014-09-17 15:01:37 -04:00
element-deps os-net-config: use package-installs 2014-11-14 11:00:51 -05:00
package-installs.yaml Migrate os-*-config to package-installs v2 2015-04-30 16:12:40 -04:00
pkg-map Add pkg-map for os-*-config 2015-02-09 17:16:50 +09:00

README.md

Install, configure, and (optionally) run os-net-config.

Installs os-net-config and configures a JSON formatted config file at /etc/os-net-config/config.json. The os-net-config command is only executed if configuration metadata is provided.

Configuration

os_net_config: JSON (or YAML) metadata in the os-net-config format.

Config Examples:

 { "os_net_config":
     { "network_config": [
         {
             "type": "ovs_bridge",
             "name": "br-ctlplane",
             "use_dhcp": "true",
             "primary": "true",
             "members": [
                 {
                     "type": "interface",
                     "name": "em1"
                 }
             ]
         }
     ]}
 }