ansible/roles/common/vars/systemd.yml

63 lines
3.3 KiB
YAML

# 2023-09-26
# 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 }}"
nproc_default: "/etc/default/nproc"
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_nproc_service: "{{ local_folder_templates }}/nproc_service.j2"
systemd_container_nproc_service: "nproc.service"
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_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_nproc_service }}", remote: "{{ systemd_system_root }}/{{ systemd_container_nproc_service }}" }
- { 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 }}" }