blob: c0759e7c3620aeea4f2600427871fa42831bf3d3 [file] [log] [blame]
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +03001classes:
azvyagintsev928d28f2018-09-26 15:58:11 +03002- system.defaults
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +03003- system.linux.network.dynamic_hosts
4- system.linux.system.repo_local.mcp.extra
5- system.linux.system.repo.mcp.apt_mirantis.saltstack
6- system.linux.system.repo.mcp.apt_mirantis.ubuntu
7- system.linux.system.repo_local.mcp.apt_mirantis.openstack
8- system.linux.system.single
9- system.linux.system.single.debian
10- system.watchdog.server
11- system.rsyslog.client.single
12- system.openssh.server.team.lab
13- system.openssh.server.team.tcpcloud
14- system.openssh.server.team.mcp_qa
15- system.auditd.server.ciscat
16- system.salt.minion.single
17- system.rsyslog.client.single
18- cluster.virtual-offline-pike-ovs-dpdk.openstack
19- cluster.virtual-offline-pike-ovs-dpdk.cicd
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000020parameters:
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +030021 _param:
22 cluster_domain: virtual-offline-pike-ovs-dpdk.local
23 cluster_name: virtual-offline-pike-ovs-dpdk
24 infra_config_hostname: cfg01
25 local_repos: true
26 apt_mk_version: proposed
27 openstack_version: pike
28 jenkins_pipelines_branch: '${_param:apt_mk_version}'
29 # new in 2018.7+
30 linux_system_repo_url: http://${_param:local_repo_url}/${_param:apt_mk_version}/
31 #
32 local_repo_url: mirror.mcp.mirantis.local.test
33 linux_repo_refresh_db: true
34 aptly_server_address: 10.170.0.226
35 docker_compose_image: ${_param:aptly_server_address}:5000/compose:1.8.0
36 # infra service addresses
37 infra_config_address: 172.16.10.100
38 # openstack service addresses
39 openstack_proxy_address: 172.16.10.121
40 openstack_proxy_node01_address: 172.16.10.121
41 openstack_control_address: 172.16.10.254
42 openstack_control_node01_address: 172.16.10.101
43 openstack_control_node02_address: 172.16.10.102
44 openstack_control_node03_address: 172.16.10.103
45 openstack_gateway_address: 172.16.10.110
46 openstack_database_address: ${_param:openstack_control_address}
47 openstack_message_queue_address: ${_param:openstack_control_address}
48 openstack_message_queue_node01_address: ${_param:openstack_control_node01_address}
49 openstack_message_queue_node02_address: ${_param:openstack_control_node02_address}
50 openstack_message_queue_node03_address: ${_param:openstack_control_node03_address}
51 glusterfs_node01_address: ${_param:openstack_control_node01_address}
52 glusterfs_node02_address: ${_param:openstack_control_node02_address}
53 glusterfs_node03_address: ${_param:openstack_control_node03_address}
54 openstack_gateway_address: 172.16.10.110
55 openstack_gateway_node01_address: ${_param:openstack_gateway_address}
56 remote_rsyslog_host: 127.0.0.3
57 remote_rsyslog_port: 10514
58 salt_minion_ca_host: ${_param:infra_config_hostname}.${_param:cluster_domain}
59 rsyslog:
60 client:
61 run_user: syslog
62 run_group: adm
63 enabled: true
64 rainerscript:
65 module:
66 imfile: {}
67 input:
68 imfile:
69 nginx:
70 File: "/var/log/nginx/*.log"
71 Tag: "nginx__"
72 Severity: "notice"
73 Facility: "local0"
74 PersistStateInterval: "0"
75 Ruleset: "myapp_logs"
76 apache2:
77 File: "/var/log/apache2/*.log"
78 Tag: "apache2__"
79 Severity: "notice"
80 Facility: "local0"
81 Ruleset: "myapp_logs"
82 PersistStateInterval: "0"
83 rabbitmq:
84 File: "/var/log/rabbitmq/*.log"
85 Tag: "rabbitmq__"
86 Severity: "notice"
87 Facility: "local0"
88 PersistStateInterval: "0"
89 Ruleset: "myapp_logs"
90 template:
91 ImfileFilePath:
92 parameter:
93 type: string
94 string: "<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogtag:1:32%%$.suffix%%msg:::sp-if-no-1st-sp%%msg%\n"
95 ruleset:
96 remote_logs:
97 description: 'action(type="omfwd" Target="${_param:remote_rsyslog_host}" Port="${_param:remote_rsyslog_port}" Protocol="udp" Template="ImfileFilePath")'
98 myapp_logs:
99 description: 'set $.suffix=re_extract($!metadata!filename, "(.*)/([^/]*[^/.log])", 0, 2, "all.log"); call remote_logs'
100 output:
101 remote:
102 somehost.domain:
103 action: "@${_param:remote_rsyslog_host}:${_param:remote_rsyslog_port}"
104 filter: "*.*"
105 enabled: true
106 salt:
107 minion:
108 trusted_ca_minions:
109 - ${_param:salt_minion_ca_host}
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000110 linux:
111 network:
112 host:
113 cfg01:
114 address: ${_param:infra_config_address}
115 names:
116 - ${_param:infra_config_hostname}
117 - ${_param:infra_config_hostname}.${_param:cluster_domain}
118 cfg:
119 address: ${_param:infra_config_address}
120 names:
121 - cfg
122 - cfg.${_param:cluster_domain}