Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 1 | classes: |
| 2 | - system.linux.network.dynamic_hosts |
| 3 | - system.linux.system.repo_local.mcp.extra |
azvyagintsev | 98cba95 | 2018-07-13 12:40:53 +0300 | [diff] [blame^] | 4 | - system.linux.system.repo.mcp.apt_mirantis.saltstack |
| 5 | - system.linux.system.repo.mcp.apt_mirantis.ubuntu |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 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 |
| 14 | parameters: |
| 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 |
azvyagintsev | 98cba95 | 2018-07-13 12:40:53 +0300 | [diff] [blame^] | 23 | # new in 2018.7+ |
| 24 | linux_system_repo_url: http://${_param:local_repo_url}/${_param:apt_mk_version}/ |
| 25 | # |
Tatyana Leontovich | 4f9d1a9 | 2018-03-28 15:36:40 +0300 | [diff] [blame] | 26 | local_repo_url: mirror.mcp.mirantis.local.test |
| 27 | linux_repo_refresh_db: true |
| 28 | aptly_server_address: 10.170.0.226 |
| 29 | remote_rsyslog_host: 127.0.0.3 |
| 30 | remote_rsyslog_port: 10514 |
| 31 | salt: |
| 32 | minion: |
| 33 | trusted_ca_minions: |
| 34 | - cfg01.${linux:system:domain} |
| 35 | rsyslog: |
| 36 | client: |
| 37 | run_user: syslog |
| 38 | run_group: adm |
| 39 | enabled: true |
| 40 | rainerscript: |
| 41 | module: |
| 42 | imfile: {} |
| 43 | input: |
| 44 | imfile: |
| 45 | nginx: |
| 46 | File: "/var/log/nginx/*.log" |
| 47 | Tag: "nginx__" |
| 48 | Severity: "notice" |
| 49 | Facility: "local0" |
| 50 | PersistStateInterval: "0" |
| 51 | Ruleset: "myapp_logs" |
| 52 | apache2: |
| 53 | File: "/var/log/apache2/*.log" |
| 54 | Tag: "apache2__" |
| 55 | Severity: "notice" |
| 56 | Facility: "local0" |
| 57 | Ruleset: "myapp_logs" |
| 58 | PersistStateInterval: "0" |
| 59 | rabbitmq: |
| 60 | File: "/var/log/rabbitmq/*.log" |
| 61 | Tag: "rabbitmq__" |
| 62 | Severity: "notice" |
| 63 | Facility: "local0" |
| 64 | PersistStateInterval: "0" |
| 65 | Ruleset: "myapp_logs" |
| 66 | template: |
| 67 | ImfileFilePath: |
| 68 | parameter: |
| 69 | type: string |
| 70 | string: "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%$.suffix%%msg:::sp-if-no-1st-sp%%msg%\n" |
| 71 | ruleset: |
| 72 | remote_logs: |
| 73 | description: 'action(type="omfwd" Target="${_param:remote_rsyslog_host}" Port="${_param:remote_rsyslog_port}" Protocol="udp" Template="ImfileFilePath")' |
| 74 | myapp_logs: |
| 75 | description: 'set $.suffix=re_extract($!metadata!filename, "(.*)/([^/]*[^/.log])", 0, 2, "all.log"); call remote_logs' |
| 76 | output: |
| 77 | remote: |
| 78 | somehost.domain: |
| 79 | action: "@${_param:remote_rsyslog_host}:${_param:remote_rsyslog_port}" |
| 80 | filter: "*.*" |
| 81 | enabled: true |