cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.cm.config_example Namespace Reference

Variables

string BACKUP_PATH = '/var/lib/cc1/cm/rrd_backup/'
int CLEANING_PERIOD = 60
string CTX_SSL_CERT = 'ctx.crt'
string CTX_SSL_DIR = '/etc/cc1/cm/ctx'
string CTX_SSL_KEY = 'ctx.key'
dictionary DATABASES
string DNS_DOMAIN = 'localdomain'
string LOG_DIR = '/var/log/cc1/cm/'
string LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
 LOG_LEVEL = logging.DEBUG
 MONITOR_ENABLE = False
 Monitoring Configuration #.
dictionary NOVNC_PORTS
string OSPF_TOKEN = 'RANDOM_OSPF_TOKEN'
string PATH_TO_RRD = '/var/lib/cc1/cm/rrd/'
int PERIOD = 5
string SECRET_KEY = 'CM_SECRET_KEY'
list STATS
int TIME_TO_REMOVE = 60
int TIMEOUT = 30
dictionary USER_QUOTA
string VNC_ADDRESS = '127.0.0.1'
dictionary VNC_PORTS

Variable Documentation

string src.cm.config_example.BACKUP_PATH = '/var/lib/cc1/cm/rrd_backup/'

Definition at line 69 of file config_example.py.

int src.cm.config_example.CLEANING_PERIOD = 60

Definition at line 73 of file config_example.py.

string src.cm.config_example.CTX_SSL_CERT = 'ctx.crt'

Definition at line 93 of file config_example.py.

string src.cm.config_example.CTX_SSL_DIR = '/etc/cc1/cm/ctx'

Definition at line 92 of file config_example.py.

string src.cm.config_example.CTX_SSL_KEY = 'ctx.key'

Definition at line 94 of file config_example.py.

dictionary src.cm.config_example.DATABASES
Initial value:
1 {
2  'default': {
3  'ENGINE': 'django.db.backends.postgresql_psycopg2',
4  'NAME': 'cm', # Or path to database file if using sqlite3.
5 # 'USER': 'cc1', # Not used with sqlite3.
6 # 'PASSWORD': '', # Not used with sqlite3.
7 # 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
8 # 'PORT': '', # Set to empty string for default. Not used with sqlite3.
9  },
10  # Historical database for logs and old virtual machine entries
11  'history': {
12  'ENGINE': 'django.db.backends.postgresql_psycopg2',
13  'NAME': 'cm_history', # Or path to database file if using sqlite3.
14 # 'USER': 'cc1', # Not used with sqlite3.
15 # 'PASSWORD': '', # Not used with sqlite3.
16 # 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
17 # 'PORT': '', # Set to empty string for default. Not used with sqlite3.
18  }
19 }

Definition at line 22 of file config_example.py.

string src.cm.config_example.DNS_DOMAIN = 'localdomain'

Definition at line 46 of file config_example.py.

string src.cm.config_example.LOG_DIR = '/var/log/cc1/cm/'

Definition at line 5 of file config_example.py.

string src.cm.config_example.LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"

Definition at line 11 of file config_example.py.

src.cm.config_example.LOG_LEVEL = logging.DEBUG

Definition at line 8 of file config_example.py.

src.cm.config_example.MONITOR_ENABLE = False

Monitoring Configuration #.

Definition at line 66 of file config_example.py.

dictionary src.cm.config_example.NOVNC_PORTS
Initial value:
1 {
2  'START': 6900,
3  'END': 7899,
4  'EXCLUDE': []
5 }

Definition at line 55 of file config_example.py.

string src.cm.config_example.OSPF_TOKEN = 'RANDOM_OSPF_TOKEN'

Definition at line 43 of file config_example.py.

string src.cm.config_example.PATH_TO_RRD = '/var/lib/cc1/cm/rrd/'

Definition at line 68 of file config_example.py.

int src.cm.config_example.PERIOD = 5

Definition at line 71 of file config_example.py.

string src.cm.config_example.SECRET_KEY = 'CM_SECRET_KEY'

Definition at line 97 of file config_example.py.

list src.cm.config_example.STATS
Initial value:
1 [# [RESOLUTION] [TIME RANGE] [SIZE]
2  [2, 8640], # 2*PERIOD = 10 s 8640*10 = 1 days (864 00s) 675.00 KB
3  [12, 43200], # 12*PERIOD = 1 min 43200*60 = 1 month (2 592 000s) 3.30 MB
4  [60, 8640], # 60*PERIOD = 5 min 8640*300 = 1 month (2 592 000s) 675.00 KB
5  [180, 2880], # 180*PERIOD = 15 min 2880*900 = 1 month (2 592 000s) 225.00 KB
6  [720, 8760], # 720*PERIOD = 1 h 8760*3600 = 1 year (31 536 000s) 684.38 KB
7  [17280, 3650], # 17280*5s = 1 days 3650*86400 = 10.0 years (315 360 000s) 285.16 KB
8  [120960, 521], # 120960*5s = 7 days 521*604800 = 10.0 years (315 100 800s) 40.7 KB
9  ]

Definition at line 81 of file config_example.py.

int src.cm.config_example.TIME_TO_REMOVE = 60

Definition at line 74 of file config_example.py.

int src.cm.config_example.TIMEOUT = 30

Definition at line 67 of file config_example.py.

dictionary src.cm.config_example.USER_QUOTA
Initial value:
1 {
2  'cpu': 20,
3  'memory': 40000, # MB
4  'storage': 40000, # MB
5  'public_ip': 1,
6  'points': 2000
7 }

Definition at line 14 of file config_example.py.

string src.cm.config_example.VNC_ADDRESS = '127.0.0.1'

Definition at line 49 of file config_example.py.

dictionary src.cm.config_example.VNC_PORTS
Initial value:
1 {
2  'START': 5900,
3  'END': 6899,
4  'EXCLUDE': []
5 }

Definition at line 50 of file config_example.py.