1import os
2
3PUPPETDB_HOST = 'localhost'
4PUPPETDB_PORT = 8080
5PUPPETDB_PROTO = None
6PUPPETDB_SSL_VERIFY = True
7PUPPETDB_KEY = None
8PUPPETDB_CERT = None
9PUPPETDB_TIMEOUT = 20
10DEFAULT_ENVIRONMENT = 'production'
11SECRET_KEY = os.urandom(24)
12DEV_LISTEN_HOST = '127.0.0.1'
13DEV_LISTEN_PORT = 5000
14DEV_COFFEE_LOCATION = 'coffee'
15UNRESPONSIVE_HOURS = 2
16ENABLE_QUERY = True
17# Uncomment to restrict the enabled PuppetDB endpoints in the query page.
18# ENABLED_QUERY_ENDPOINTS = ['facts', 'nodes']
19LOCALISE_TIMESTAMP = True
20LOGLEVEL = 'info'
21NORMAL_TABLE_COUNT = 100
22LITTLE_TABLE_COUNT = 10
23TABLE_COUNT_SELECTOR = [10, 20, 50, 100, 500]
24DISPLAYED_METRICS = ['resources.total',
25                     'events.failure',
26                     'events.success',
27                     'resources.skipped',
28                     'events.noop']
29OFFLINE_MODE = False
30ENABLE_CATALOG = False
31OVERVIEW_FILTER = None
32PAGE_TITLE = "Puppetboard"
33GRAPH_TYPE = 'pie'
34GRAPH_FACTS = ['architecture',
35               'clientversion',
36               'domain',
37               'lsbcodename',
38               'lsbdistcodename',
39               'lsbdistid',
40               'lsbdistrelease',
41               'lsbmajdistrelease',
42               'netmask',
43               'osfamily',
44               'puppetversion',
45               'processorcount']
46INVENTORY_FACTS = [('Hostname', 'fqdn'),
47                   ('IP Address', 'ipaddress'),
48                   ('OS', 'lsbdistdescription'),
49                   ('Architecture', 'hardwaremodel'),
50                   ('Kernel Version', 'kernelrelease'),
51                   ('Puppet Version', 'puppetversion'), ]
52REFRESH_RATE = 30
53DAILY_REPORTS_CHART_ENABLED = True
54DAILY_REPORTS_CHART_DAYS = 8
55WITH_EVENT_NUMBERS = True
56