blob: cbbe7e6c850e90ad6e07ced75d595edb5c0b6f12 [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
azvyagintsev98cba952018-07-13 12:40:53 +03004- system.linux.system.repo.mcp.apt_mirantis.saltstack
5- system.linux.system.repo.mcp.apt_mirantis.ubuntu
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03006- 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
Tatyana Leontovicheed679c2018-07-23 16:29:36 +030012- system.auditd.server.ciscat
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030013- cluster.virtual-offline-ssl.infra
14- cluster.virtual-offline-ssl.openstack
15parameters:
16 _param:
17 cluster_domain: virtual-offline-ssl.local
18 cluster_name: virtual-offline-ssl
19 salt_minion_ca_host: cfg01.${linux:system:domain}
20 # infra service addresses
21 infra_config_hostname: cfg01
22 infra_config_address: 172.16.10.100
23 local_repos: true
azvyagintsev98cba952018-07-13 12:40:53 +030024 # new in 2018.7+
25 linux_system_repo_url: http://${_param:local_repo_url}/${_param:apt_mk_version}/
26 #
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030027 local_repo_url: mirror.mcp.mirantis.local.test
28 linux_repo_refresh_db: true
29 aptly_server_address: 10.170.0.226
30 remote_rsyslog_host: 127.0.0.3
31 remote_rsyslog_port: 10514
32 salt:
33 minion:
34 trusted_ca_minions:
35 - cfg01.${linux:system:domain}
36 rsyslog:
37 client:
38 run_user: syslog
39 run_group: adm
40 enabled: true
41 rainerscript:
42 module:
43 imfile: {}
44 input:
45 imfile:
46 nginx:
47 File: "/var/log/nginx/*.log"
48 Tag: "nginx__"
49 Severity: "notice"
50 Facility: "local0"
51 PersistStateInterval: "0"
52 Ruleset: "myapp_logs"
53 apache2:
54 File: "/var/log/apache2/*.log"
55 Tag: "apache2__"
56 Severity: "notice"
57 Facility: "local0"
58 Ruleset: "myapp_logs"
59 PersistStateInterval: "0"
60 rabbitmq:
61 File: "/var/log/rabbitmq/*.log"
62 Tag: "rabbitmq__"
63 Severity: "notice"
64 Facility: "local0"
65 PersistStateInterval: "0"
66 Ruleset: "myapp_logs"
67 template:
68 ImfileFilePath:
69 parameter:
70 type: string
71 string: "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%$.suffix%%msg:::sp-if-no-1st-sp%%msg%\n"
72 ruleset:
73 remote_logs:
74 description: 'action(type="omfwd" Target="${_param:remote_rsyslog_host}" Port="${_param:remote_rsyslog_port}" Protocol="udp" Template="ImfileFilePath")'
75 myapp_logs:
76 description: 'set $.suffix=re_extract($!metadata!filename, "(.*)/([^/]*[^/.log])", 0, 2, "all.log"); call remote_logs'
77 output:
78 remote:
79 somehost.domain:
80 action: "@${_param:remote_rsyslog_host}:${_param:remote_rsyslog_port}"
81 filter: "*.*"
82 enabled: true