mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-08-29 11:00
This commit is contained in:
13
roles/linstor_controller/templates/drbd-reactor.toml.j2
Normal file
13
roles/linstor_controller/templates/drbd-reactor.toml.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
[[promoter]]
|
||||
id = "{{ linctl_ha_res }}"
|
||||
|
||||
[promoter.resources.{{ linctl_ha_res }}]
|
||||
start = [
|
||||
{% if linctl_ha_ip is defined %}
|
||||
"ocf:heartbeat:IPaddr2 service_ip cidr_netmask=32 ip={{ linctl_ha_ip }}",
|
||||
{% endif %}
|
||||
"var-lib-linstor.mount",
|
||||
"linstor-controller.service"
|
||||
]
|
||||
stop-services-on-exit = true
|
||||
|
@@ -0,0 +1,2 @@
|
||||
[global]
|
||||
controllers={{ linctl_controllers | join(',') }}
|
16
roles/linstor_controller/templates/linstor.toml.j2
Normal file
16
roles/linstor_controller/templates/linstor.toml.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
[db]
|
||||
user = "linstor"
|
||||
password = "linstor"
|
||||
connection_url = "jdbc:h2:/var/lib/linstor/linstordb"
|
||||
|
||||
[http]
|
||||
enabled = true
|
||||
listen_addr = "0.0.0.0"
|
||||
port = {{ linctl_api_port }}
|
||||
|
||||
[logging]
|
||||
level = "info"
|
||||
linstor_level = "info"
|
||||
rest_access_log_path = "/var/log/linstor-controller/rest-access.log"
|
||||
rest_access_log_mode = "APPEND"
|
||||
|
8
roles/linstor_controller/templates/logrotate.j2
Normal file
8
roles/linstor_controller/templates/logrotate.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/linstor/rest-access.log {
|
||||
daily
|
||||
rotate 180
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
copytruncate
|
||||
}
|
Reference in New Issue
Block a user