This repository has been archived by the owner on Feb 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsnapteld.conf
103 lines (81 loc) · 4.05 KB
/
snapteld.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# log_level for the snap daemon. Supported values are
# 1 - Debug, 2 - Info, 3 - Warning, 4 - Error, 5 - Fatal.
# Default value is 3.
log_level: 3
# log_path sets the path for logs for the snap daemon. By
# default snapteld prints all logs to stdout. Any provided
# path will send snapteld logs to a file called snapteld.log in
# the provided directory.
# log_path: /var/log/snap
# Gomaxprocs sets the number of cores to use on the system
# for snapteld to use. Default for gomaxprocs is 1
gomaxprocs: 1
# Control sections for configuration settings for the plugin
# control module of snapteld.
control:
# auto_discover_path sets a directory to auto load plugins on the start
# of the snap daemon
auto_discover_path: /opt/snap/plugins:/opt/snap/tasks_startup
# cache_expiration sets the time interval for the plugin cache to use before
# expiring collection results from collect plugins. Default value is 500ms
# cache_expiration: 500ms
# max_running_plugins sets the size of the available plugin pool for each
# plugin loaded in the system. Default value is 3
# max_running_plugins: 3
# keyring_paths sets the directory(s) to search for keyring files for signed
# plugins. This can be a comma separated list of directories
# keyring_paths: /etc/snap/keyrings
# plugin_trust_level sets the plugin trust level for snapteld. The default state
# for plugin trust level is enabled (1). When enabled, only signed plugins that can
# be verified will be loaded into snapteld. Signatures are verifed from
# keyring files specided in keyring_path. Plugin trust can be disabled (0) which
# will allow loading of all plugins whether signed or not. The warning state allows
# for loading of signed and unsigned plugins. Warning messages will be displayed if
# an unsigned plugin is loaded. Any signed plugins that can not be verified will
# not be loaded. Valid values are 0 - Off, 1 - Enabled, 2 - Warning
plugin_trust_level: 0
plugin_load_timeout: 60
# plugins section contains plugin config settings that will be applied for
# plugins across tasks.
# plugins:
# scheduler configuration settings contains all settings for scheduler
# module
# scheduler:
# work_manager_queue_size sets the size of the worker queue inside snapteld scheduler.
# Default value is 25.
# work_manager_queue_size: 25
# work_manager_pool_size sets the size of the worker pool inside snapteld scheduler.
# Default value is 4.
# work_manager_pool_size: 4
# rest sections contains all the configuration items for the REST API server.
restapi:
# enable controls enabling or disabling the REST API for snapteld. Default value is enabled.
enable: true
# https enables HTTPS for the REST API. If no default certificate and key are provided, then
# the REST API will generate a private and public key to use for communication. Default
# value is false
# https: false
# rest_auth enables authentication for the REST API. Default value is false
# rest_auth: false
# rest_auth_password sets the password to use for the REST API. Currently user and password
# combinations are not supported.
# rest_auth_password: changeme
# rest_certificate is the path to the certificate to use for REST API when HTTPS is also enabled.
# rest_certificate: /etc/snap/cert.pem
# rest_key is the path to the private key for the certificate in use by the REST API
# when HTTPs is enabled.
# rest_key: /etc/snap/cert.key
# port sets the port to start the REST API server on. Default is 8181
port: 8181
# tribe section contains all configuration items for the tribe module
# tribe:
# enable controls enabling tribe for the snapteld instance. Default value is false.
# enable: false
# bind_addr sets the IP address for tribe to bind.
# bind_addr: 127.0.0.1
# bind_port sets the port for tribe to listen on. Default value is 6000
# bind_port: 6000
# name sets the name to use for this snapteld instance in the tribe
# membership. Default value defaults to local hostname of the system.
# name: localhost
# seed sets the snapteld instance to use as the seed for tribe communications