blob: 642429dbaadb302b28e71da829e3d412099f460e [file] [log] [blame]
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03001classes:
2- system.linux.network.dynamic_hosts
3- system.linux.system.repo_local.mcp.extra
Martin Polreicha0addcc2018-06-25 11:32:52 +02004- system.linux.system.repo_local.mcp.apt_mirantis.saltstack
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03005- system.linux.system.repo_local.mcp.apt_mirantis.ubuntu
6- system.linux.system.single
7- system.linux.system.single.debian
8- system.rsyslog.client.single
9- system.openssh.server.team.lab
10- system.openssh.server.team.tcpcloud
11- system.openssh.server.team.mcp_qa
12- cluster.virtual-offline-ssl.infra
13- cluster.virtual-offline-ssl.openstack
14parameters:
15 _param:
16 cluster_domain: virtual-offline-ssl.local
17 cluster_name: virtual-offline-ssl
18 salt_minion_ca_host: cfg01.${linux:system:domain}
19 # infra service addresses
20 infra_config_hostname: cfg01
21 infra_config_address: 172.16.10.100
22 local_repos: true
23 local_repo_url: mirror.mcp.mirantis.local.test
24 linux_repo_refresh_db: true
25 aptly_server_address: 10.170.0.226
26 remote_rsyslog_host: 127.0.0.3
27 remote_rsyslog_port: 10514
28 salt:
29 minion:
30 trusted_ca_minions:
31 - cfg01.${linux:system:domain}
32 rsyslog:
33 client:
34 run_user: syslog
35 run_group: adm
36 enabled: true
37 rainerscript:
38 module:
39 imfile: {}
40 input:
41 imfile:
42 nginx:
43 File: "/var/log/nginx/*.log"
44 Tag: "nginx__"
45 Severity: "notice"
46 Facility: "local0"
47 PersistStateInterval: "0"
48 Ruleset: "myapp_logs"
49 apache2:
50 File: "/var/log/apache2/*.log"
51 Tag: "apache2__"
52 Severity: "notice"
53 Facility: "local0"
54 Ruleset: "myapp_logs"
55 PersistStateInterval: "0"
56 rabbitmq:
57 File: "/var/log/rabbitmq/*.log"
58 Tag: "rabbitmq__"
59 Severity: "notice"
60 Facility: "local0"
61 PersistStateInterval: "0"
62 Ruleset: "myapp_logs"
63 template:
64 ImfileFilePath:
65 parameter:
66 type: string
67 string: "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%$.suffix%%msg:::sp-if-no-1st-sp%%msg%\n"
68 ruleset:
69 remote_logs:
70 description: 'action(type="omfwd" Target="${_param:remote_rsyslog_host}" Port="${_param:remote_rsyslog_port}" Protocol="udp" Template="ImfileFilePath")'
71 myapp_logs:
72 description: 'set $.suffix=re_extract($!metadata!filename, "(.*)/([^/]*[^/.log])", 0, 2, "all.log"); call remote_logs'
73 output:
74 remote:
75 somehost.domain:
76 action: "@${_param:remote_rsyslog_host}:${_param:remote_rsyslog_port}"
77 filter: "*.*"
78 enabled: true