dataset/seed/host-systemd-machined/dictionaries/21_machined.yml

222 lines
4.2 KiB
YAML
Raw Normal View History

2024-10-01 13:18:45 +02:00
---
version: 1.1
host_install_dir:
type: unix_filename
provider: global:host_install_dir
hidden: true
host_name:
type: domainname
hidden: true
provider: global:server_name
module_name:
hidden: true
provider: global:module_name
tls_server:
type: domainname
provider: global:tls_server
hidden: true
systemd_zone_filename:
type: unix_filename
hidden: true
multi: true
default:
jinja: |-
{%- for zone in general.zones.zone_name %}
/etc/systemd/network/70-container-{{ zone }}.network %}
{%- endfor -%}
systemd_netzone_filename:
type: unix_filename
hidden: true
multi: true
default:
jinja: |-
{%- for zone in general.zones.zone_name %}
/etc/systemd/network/70-container-{{ zone }}.netdev" %}
{%- endfor -%}
vm_swappiness: 60 # Ajustement de la mémoire virtuelle
host_packages:
hidden: true
default:
- systemd-container
- dnf
- jq
- debootstrap
- htop
- iotop
- man
- gettext
- patch
- unzip
- mlocate
- xz-utils
- iptables
- curl
- tree
- tshark
- vim
- python3-pytest
- python3-yaml
- python3-ldap
- python3-dnspython
- python3-dulwich
- python3-psycopg2
- python3-redis
- python3-imaplib2
- python3-pymysql
host_removed_packages:
hidden: true
default:
- resolvconf
base:
time_zone:
description: Time zone
supplier: Host:time_zone
default: Europe/Paris
network:
output_interface: null # Nom de l'interface de sortie
interfaces:
type: leadership
interface_names: [] # Nom de l'interface
interface_type:
description: Type de la carte
default: dhcp
choices:
- dhcp
- ipv4
interface_ip:
type: cidr
description: IP au format CIDR de l'interface
disabled:
variable: _.interface_type
when_not: ipv4
first_interface:
type: boolean
hidden: true
default:
jinja: >-
{%- if index == 0 -%}
true
{%- else -%}
false
{%- endif -%}
params:
index:
type: index
interface_gateway:
type: ip
description: IP de la route par défaut
disabled:
jinja: >-
{%- if _.interface_type != 'ipv4' or not _.first_interface -%}
disabled
{%- endif -%}
description: >-
if it's not the first interface or the address is automatcly
set via DHCP or not the first interface
interface_domain_name_servers:
type: ip
description: IP des serveurs DNS
multi: true
disabled:
jinja: >-
{%- if _.interface_type != 'ipv4' or not _.first_interface -%}
disabled
{%- endif -%}
description: >-
if it's not the first interface or the address is automatcly
set via DHCP or not the first interface
host_network_filename:
type: unix_filename
multi: true
hidden: true
default:
jinja: |-
{%- for interface in _.interfaces.interface_names %}
/etc/systemd/network/80-{{ interface }}.network
{% endfor %}
zones:
type: leadership
zone_name:
hidden: true
default:
jinja: |-
{%- for zone in zones %}
{{ zone }}
{%- endfor -%}
params:
zones:
information: zones
zone_cidr:
type: cidr
hidden: true
default:
jinja: >-
{{ zones | get_zones_info("cidr", zone_name=_.zone_name) }}
params:
zones:
information: zones
vector:
server_address:
type: domainname
hidden: true
supplier: Vector
mandatory: false
ip_address:
type: ip
hidden: true
supplier: Vector:address
disabled:
variable: _.server_address
when: null
default:
jinja: >-
{{ zones | get_ip(_.server_address) }}
params:
zones:
information: zones
prometheus:
server_address:
type: domainname
hidden: true
supplier: Prometheus
mandatory: false
ip_address:
type: ip
hidden: true
default:
jinja: >-
{{ zones | get_ip(_.server_address) }}
params:
zones:
information: zones