3
# Copyright (C) 2012 Canonical Ltd.
4
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P.
5
# Copyright (C) 2012 Yahoo! Inc.
7
# Author: Scott Moser <scott.moser@canonical.com>
8
# Author: Juerg Haefliger <juerg.haefliger@hp.com>
9
# Author: Joshua Harlow <harlowja@yahoo-inc.com>
11
# This program is free software: you can redistribute it and/or modify
12
# it under the terms of the GNU General Public License version 3, as
13
# published by the Free Software Foundation.
15
# This program is distributed in the hope that it will be useful,
16
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
# GNU General Public License for more details.
20
# You should have received a copy of the GNU General Public License
21
# along with this program. If not, see <http://www.gnu.org/licenses/>.
23
# Set and read for determining the cloud config file location
24
CFG_ENV_NAME = "CLOUD_CFG"
26
# This is expected to be a yaml formatted file
27
CLOUD_CONFIG = '/etc/cloud/cloud.cfg'
29
# What u get if no config is provided
39
'def_log_file': '/var/log/cloud-init.log',
41
'syslog_fix_perms': 'syslog:adm',
44
'cloud_dir': '/var/lib/cloud',
45
'templates_dir': '/etc/cloud/templates/',
51
# Valid frequencies of handlers/modules
52
PER_INSTANCE = "once-per-instance"
56
# Used to sanity check incoming handlers/modules frequencies
57
FREQUENCIES = [PER_INSTANCE, PER_ALWAYS, PER_ONCE]