~ubuntu-branches/ubuntu/saucy/cloud-init/saucy

« back to all changes in this revision

Viewing changes to cloudinit/settings.py

  • Committer: Scott Moser
  • Date: 2012-07-06 21:24:18 UTC
  • mfrom: (1.1.26)
  • Revision ID: smoser@ubuntu.com-20120706212418-zwcpwxsdodi0pms3
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vi: ts=4 expandtab
 
2
#
 
3
#    Copyright (C) 2012 Canonical Ltd.
 
4
#    Copyright (C) 2012 Hewlett-Packard Development Company, L.P.
 
5
#    Copyright (C) 2012 Yahoo! Inc.
 
6
#
 
7
#    Author: Scott Moser <scott.moser@canonical.com>
 
8
#    Author: Juerg Haefliger <juerg.haefliger@hp.com>
 
9
#    Author: Joshua Harlow <harlowja@yahoo-inc.com>
 
10
#
 
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.
 
14
#
 
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.
 
19
#
 
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/>.
 
22
 
 
23
# Set and read for determining the cloud config file location
 
24
CFG_ENV_NAME = "CLOUD_CFG"
 
25
 
 
26
# This is expected to be a yaml formatted file
 
27
CLOUD_CONFIG = '/etc/cloud/cloud.cfg'
 
28
 
 
29
# What u get if no config is provided
 
30
CFG_BUILTIN = {
 
31
    'datasource_list': [
 
32
        'NoCloud',
 
33
        'ConfigDrive',
 
34
        'OVF',
 
35
        'MAAS',
 
36
        'Ec2',
 
37
        'CloudStack'
 
38
    ],
 
39
    'def_log_file': '/var/log/cloud-init.log',
 
40
    'log_cfgs': [],
 
41
    'syslog_fix_perms': 'syslog:adm',
 
42
    'system_info': {
 
43
        'paths': {
 
44
            'cloud_dir': '/var/lib/cloud',
 
45
            'templates_dir': '/etc/cloud/templates/',
 
46
        },
 
47
        'distro': 'ubuntu',
 
48
    },
 
49
}
 
50
 
 
51
# Valid frequencies of handlers/modules
 
52
PER_INSTANCE = "once-per-instance"
 
53
PER_ALWAYS = "always"
 
54
PER_ONCE = "once"
 
55
 
 
56
# Used to sanity check incoming handlers/modules frequencies
 
57
FREQUENCIES = [PER_INSTANCE, PER_ALWAYS, PER_ONCE]