summaryrefslogtreecommitdiff
path: root/cloudinit/settings.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-08 17:55:23 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-08 17:55:23 -0700
commit52f6d8473d514a2a1eef86f3ec892d9f873c6da5 (patch)
tree55b548c9c642f2013e87873b071a6569bfe8163d /cloudinit/settings.py
parent14676dd74dbd14ea501bd7ff6875dc5ca54edc4b (diff)
downloadvyos-cloud-init-52f6d8473d514a2a1eef86f3ec892d9f873c6da5.tar.gz
vyos-cloud-init-52f6d8473d514a2a1eef86f3ec892d9f873c6da5.zip
Renamed this, since its more of settings, not all constants.
Diffstat (limited to 'cloudinit/settings.py')
-rw-r--r--cloudinit/settings.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/cloudinit/settings.py b/cloudinit/settings.py
new file mode 100644
index 00000000..830d970d
--- /dev/null
+++ b/cloudinit/settings.py
@@ -0,0 +1,40 @@
+import os
+
+VAR_LIB_DIR = '/var/lib/cloud'
+CUR_INSTANCE_LINK = os.path.join(VAR_LIB_DIR, "instance")
+BOOT_FINISHED = os.path.join(CUR_INSTANCE_LINK, "boot-finished")
+SEED_DIR = os.path.join(VAR_LIB_DIR, "seed")
+
+CFG_ENV_NAME = "CLOUD_CFG"
+CLOUD_CONFIG = '/etc/cloud/cloud.cfg'
+OLD_CLOUD_CONFIG = '/etc/ec2-init/ec2-config.cfg'
+
+CFG_BUILTIN = {
+ 'datasource_list': ['NoCloud',
+ 'ConfigDrive',
+ 'OVF',
+ 'MAAS',
+ 'Ec2',
+ 'CloudStack'],
+ 'def_log_file': '/var/log/cloud-init.log',
+ 'log_cfgs': [],
+ 'syslog_fix_perms': 'syslog:adm'
+}
+
+PATH_MAP = {
+ "handlers": "handlers",
+ "scripts": "scripts",
+ "sem": "sem",
+ "boothooks": "boothooks",
+ "userdata_raw": "user-data.txt",
+ "userdata": "user-data.txt.i",
+ "obj_pkl": "obj.pkl",
+ "cloud_config": "cloud-config.txt",
+ "data": "data",
+}
+
+PER_INSTANCE = "once-per-instance"
+PER_ALWAYS = "always"
+PER_ONCE = "once"
+
+TEMPLATE_DIR = '/etc/cloud/templates/'