summaryrefslogtreecommitdiff
path: root/cloudinit/settings.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-15 17:56:10 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-15 17:56:10 -0700
commit0743caf836d14e12d980c9e02b77e9358a61fcc4 (patch)
treedfb8f6bbc3f032d98a082d3551333c1ad5968d1a /cloudinit/settings.py
parent34e3285163a3a4a4455dedf81987cc90e089fad7 (diff)
downloadvyos-cloud-init-0743caf836d14e12d980c9e02b77e9358a61fcc4.tar.gz
vyos-cloud-init-0743caf836d14e12d980c9e02b77e9358a61fcc4.zip
Add more comments around what the settings mean, add in a list that can be used to check if user provided frequencies are actually valid or not
Diffstat (limited to 'cloudinit/settings.py')
-rw-r--r--cloudinit/settings.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cloudinit/settings.py b/cloudinit/settings.py
index f58c4b52..8a1eaeb3 100644
--- a/cloudinit/settings.py
+++ b/cloudinit/settings.py
@@ -20,10 +20,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# Set and read for determining the cloud config file location
CFG_ENV_NAME = "CLOUD_CFG"
+
+# This is expected to be a yaml formatted file
CLOUD_CONFIG = '/etc/cloud/cloud.cfg'
+
+# This legacy format is expected to be readable by
+# configobj, see http://pypi.python.org/pypi/configobj
OLD_CLOUD_CONFIG = '/etc/ec2-init/ec2-config.cfg'
+# What u get if no config is provided
CFG_BUILTIN = {
'datasource_list': [
'NoCloud',
@@ -45,7 +52,10 @@ CFG_BUILTIN = {
},
}
+# Valid frequencies of handlers/modules
PER_INSTANCE = "once-per-instance"
PER_ALWAYS = "always"
PER_ONCE = "once"
+# Used to sanity check incoming handlers/modules frequencies
+FREQUENCIES = [PER_INSTANCE, PER_ALWAYS, PER_ONCE]