Dmitriy Rabotyagov 3add3ee734 Auto-fix yaml rules
In order to reduce divergance with ansible-lint rules, we apply
auto-fixing of violations.

In current patch we replace all kind of truthy variables with
`true` or `false` values to align with recommendations along with
alignment of used quotes.

Change-Id: I5f7e27158a4bf8f4bf14d4a5e32cc9204441da02
2025-02-12 08:21:19 +01:00

52 lines
1.7 KiB
YAML

---
# Copyright 2021, City Network International AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
galera_init_defaults:
Service:
LimitNOFILE: "{{ galera_file_limits }}"
Restart: on-abort
RestartSec: 5s
Slice: galera.slice
CPUAccounting: true
BlockIOAccounting: true
MemoryAccounting: false
TasksAccounting: true
TimeoutStartSec: "{{ galera_startup_timeout }}"
PrivateDevices: "{{ galera_disable_privatedevices | bool | ternary('false', 'true') }}"
OOMScoreAdjust: "-1000"
_galera_base_users:
- name: "{{ galera_root_user }}"
host: "%"
password: "{{ galera_root_password }}"
priv: "*.*:ALL,GRANT"
state: present
- name: "{{ galera_root_user }}"
host: "localhost"
password: "{{ galera_root_password }}"
priv: "*.*:ALL,GRANT"
state: present
- name: "{{ galera_monitoring_user }}"
host: "%"
password: "{{ galera_monitoring_user_password }}"
priv: "*.*:USAGE"
state: present
- name: "{{ galera_monitoring_user }}"
host: "localhost"
password: "{{ galera_monitoring_user_password }}"
priv: "*.*:USAGE"
state: present
galera_setup_users: "{{ _galera_base_users + galera_additional_users }}"