ansible/roles/common/vars/systemd.yml
2023-09-25 10:40:20 +02:00

62 lines
3.4 KiB
YAML

# 2023-09-25
# Settings: systemd
---
systemd_root: "/etc/systemd"
systemd_system_root: "{{ systemd_root }}/system"
systemd_journal_root: "{{ systemd_root }}/journald.conf.d"
local_folder_templates: ../templates
ethernet_interface: "{{ ansible_default_ipv4.interface }}"
jumbo_frames: true
ethernet_mtu: 9000
ethernet_txqueuelen: 10000
ethernet_multiqueue: "{{ ansible_facts['processor_nproc'] }}"
systemd_template_journald_service: "{{ local_folder_templates }}/journald_conf.j2"
systemd_container_journald_service: "vm.conf"
systemd_template_ethernet_service: "{{ local_folder_templates }}/ethernet_service.j2"
systemd_container_ethernet_service: "ethernet.service"
systemd_template_multiqueue_service_override: "{{ local_folder_templates }}/multiqueue_service_override.j2"
systemd_container_multiqueue_service_override: "multiqueue.service.d/override.conf"
systemd_template_multiqueue_service: "{{ local_folder_templates }}/multiqueue_service.j2"
systemd_container_multiqueue_service: "multiqueue.service"
systemd_template_vm_service: "{{ local_folder_templates }}/vm_service.j2"
systemd_container_vm_service: "vm.service"
systemd_template_opt_backup_mount: "{{ local_folder_templates }}/opt_backups_mount.j2"
systemd_container_opt_backup_mount: "opt-backups.mount"
systemd_template_opt_work_mount: "{{ local_folder_templates }}/opt_work_mount.j2"
systemd_container_opt_work_mount: "opt-work.mount"
systemd_template_opt_kernels_mount: "{{ local_folder_templates }}/opt_kernels_mount.j2"
systemd_container_opt_kernels_mount: "opt-kernels.mount"
systemd_template_opt_scripts_mount: "{{ local_folder_templates }}/opt_scripts_mount.j2"
systemd_container_opt_scripts_mount: "opt-scripts.mount"
systemd_template_opt_docker_ssl_mount: "{{ local_folder_templates }}/opt_docker_ssl_mount.j2"
systemd_container_opt_docker_ssl_mount: "opt-docker-ssl.mount"
systemd_directories:
- "{{ systemd_system_root }}/multiqueue.service.d"
- "{{ systemd_journal_root }}"
systemd_templates:
- { local: "{{ systemd_template_journald_service }}", remote: "{{ systemd_journal_root }}/{{ systemd_container_journald_service }}" }
- { local: "{{ systemd_template_ethernet_service }}", remote: "{{ systemd_system_root }}/{{ systemd_container_ethernet_service }}" }
- { local: "{{ systemd_template_multiqueue_service_override }}", remote: "{{ systemd_system_root }}/{{ systemd_container_multiqueue_service_override }}" }
- { local: "{{ systemd_template_multiqueue_service }}", remote: "{{ systemd_system_root }}/{{ systemd_container_multiqueue_service }}" }
- { local: "{{ systemd_template_vm_service }}", remote: "{{ systemd_system_root }}/{{ systemd_container_vm_service }}" }
- { local: "{{ systemd_template_opt_backup_mount }}", remote: "{{ systemd_system_root }}/{{ systemd_container_opt_backup_mount }}" }
- { local: "{{ systemd_template_opt_work_mount }}", remote: "{{ systemd_system_root }}/{{ systemd_container_opt_work_mount }}" }
- { local: "{{ systemd_template_opt_kernels_mount }}", remote: "{{ systemd_system_root }}/{{ systemd_container_opt_kernels_mount }}" }
- { local: "{{ systemd_template_opt_scripts_mount }}", remote: "{{ systemd_system_root }}/{{ systemd_container_opt_scripts_mount }}" }
- { local: "{{ systemd_template_opt_docker_ssl_mount }}", remote: "{{ systemd_system_root }}/{{ systemd_container_opt_docker_ssl_mount }}" }