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