blob: 0dade38f76918ae61eb39e366c91077409239b44 [file] [log] [blame]
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00001classes:
2- system.linux.network.dynamic_hosts
3- service.grafana.collector
4- system.heka.log_collector.single
5- system.heka.log_collector.output.telegraf
6- system.linux.system.repo_local.mcp.extra
7- system.linux.system.repo_local.mcp.apt_mirantis.saltstack_2016_3
8- system.linux.system.repo_local.mcp.apt_mirantis.ubuntu
9- system.linux.system.single
10- system.rsyslog.client.single
11- system.prometheus.collector
12- system.telegraf.agent
13- system.openssh.server.team.lab
14- system.openssh.server.team.tcpcloud
15- system.openssh.server.team.mcp_qa
16- cluster.virtual-offline-pike-ovs-dpdk.infra
17- cluster.virtual-offline-pike-ovs-dpdk.openstack
18- cluster.virtual-offline-pike-ovs-dpdk.stacklight
19
20parameters:
21 _param:
22 cluster_domain: virtual-offline-pike-ovs-dpdk.local
23 cluster_name: virtual-offline-pike-ovs-dpdk
24 infra_config_hostname: cfg01
25 local_repos: true
26 local_repo_url: mirror.mcp.mirantis.local.test
27 linux_repo_refresh_db: true
28 aptly_server_address: 10.170.0.226
29 # infra service addresses
30 infra_config_address: 172.16.10.100
31 # openstack service addresses
32 openstack_proxy_address: 172.16.10.121
33 openstack_proxy_node01_address: 172.16.10.121
34 openstack_control_address: 172.16.10.254
35 openstack_control_node01_address: 172.16.10.101
36 openstack_control_node02_address: 172.16.10.102
37 openstack_control_node03_address: 172.16.10.103
38 openstack_gateway_address: 172.16.10.110
39 openstack_database_address: ${_param:openstack_control_address}
40 openstack_message_queue_address: ${_param:openstack_control_address}
41 openstack_message_queue_node01_address: ${_param:openstack_control_node01_address}
42 openstack_message_queue_node02_address: ${_param:openstack_control_node02_address}
43 openstack_message_queue_node03_address: ${_param:openstack_control_node03_address}
44 # stacklight service addresses
45 stacklight_monitor_address: 172.16.10.253
46 stacklight_monitor_node01_address: 172.16.10.107
47 stacklight_monitor_node02_address: 172.16.10.108
48 stacklight_monitor_node03_address: 172.16.10.109
49 stacklight_telemetry_node01_address: ${_param:stacklight_monitor_node01_address}
50 stacklight_log_address: ${_param:stacklight_monitor_address}
51 openstack_gateway_address: 172.16.10.110
52 openstack_gateway_node01_address: ${_param:openstack_gateway_address}
53 stacklight_telemetry_address: ${_param:stacklight_monitor_address}
Oleksii Chupryn71e87862018-03-16 09:57:49 +020054 remote_rsyslog_host: 127.0.0.3
55 remote_rsyslog_port: 10514
56 rsyslog:
57 client:
58 run_user: syslog
59 run_group: adm
60 enabled: true
61 rainerscript:
62 module:
63 imfile: {}
64 input:
65 imfile:
66 nginx:
67 File: "/var/log/nginx/*.log"
68 Tag: "nginx__"
69 Severity: "notice"
70 Facility: "local0"
71 PersistStateInterval: "0"
72 Ruleset: "myapp_logs"
73 apache2:
74 File: "/var/log/apache2/*.log"
75 Tag: "apache2__"
76 Severity: "notice"
77 Facility: "local0"
78 Ruleset: "myapp_logs"
79 PersistStateInterval: "0"
80 rabbitmq:
81 File: "/var/log/rabbitmq/*.log"
82 Tag: "rabbitmq__"
83 Severity: "notice"
84 Facility: "local0"
85 PersistStateInterval: "0"
86 Ruleset: "myapp_logs"
87 template:
88 ImfileFilePath:
89 parameter:
90 type: string
91 string: "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%$.suffix%%msg:::sp-if-no-1st-sp%%msg%\n"
92 ruleset:
93 remote_logs:
94 description: 'action(type="omfwd" Target="${_param:remote_rsyslog_host}" Port="${_param:remote_rsyslog_port}" Protocol="udp" Template="ImfileFilePath")'
95 myapp_logs:
96 description: 'set $.suffix=re_extract($!metadata!filename, "(.*)/([^/]*[^/.log])", 0, 2, "all.log"); call remote_logs'
97 output:
98 remote:
99 somehost.domain:
100 action: "@${_param:remote_rsyslog_host}:${_param:remote_rsyslog_port}"
101 filter: "*.*"
102 enabled: true