This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import eventlet | |
eventlet.monkey_patch(os=False) | |
import logging | |
from oslo.config import cfg | |
from oslo import messaging | |
logging.basicConfig(level=logging.DEBUG) |
os-refresh-config uses dib-run-parts to run scripts in a pre-defined set of directories. Its intended purpose is to quiesce (pre-configure.d), configure (configure.d), migrate (migration.d), and then activate (post-configure.d) a configuration on first boot or in response to Heat Metadata changes.
To cause a script to be run on every os-refresh-config run, install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
os-collect-config | |
================= | |
Collect configuration from cloud metadata sources. | |
# What does it do? | |
It collects data from defined configuration sources and runs a defined hook whenever the metadata has changed. |