Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 1 | classes: |
azvyagintsev | 928d28f | 2018-09-26 15:58:11 +0300 | [diff] [blame] | 2 | - system.defaults |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 3 | - system.linux.network.dynamic_hosts |
azvyagintsev | 03e26b1 | 2018-10-22 16:34:31 +0300 | [diff] [blame] | 4 | - system.linux.system.repo.mcp.apt_mirantis.extra |
azvyagintsev | 98cba95 | 2018-07-13 12:40:53 +0300 | [diff] [blame] | 5 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
| 6 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 7 | - 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 Leontovich | eed679c | 2018-07-23 16:29:36 +0300 | [diff] [blame] | 13 | - system.auditd.server.ciscat |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 14 | - cluster.virtual-offline-ssl.infra |
| 15 | - cluster.virtual-offline-ssl.openstack |
| 16 | parameters: |
| 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 |
azvyagintsev | 98cba95 | 2018-07-13 12:40:53 +0300 | [diff] [blame] | 25 | # new in 2018.7+ |
| 26 | linux_system_repo_url: http://${_param:local_repo_url}/${_param:apt_mk_version}/ |
| 27 | # |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 28 | 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 |