---

# ---
# vars used by roles/network_interfaces
# ---


# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
network_manage_devices: True

# Should the interfaces be reloaded after config change?
network_interface_reload: False

network_interface_path: /etc/network/interfaces.d
network_interface_required_packages:
  - vlan
  - bridge-utils
  - ifmetric
  - ifupdown
  - ifenslave


network_interfaces:

  - device: eno1np0
    # use only once per device (for the first device entry)
    headline: eno1 - LAN

    # auto & allow are only used for the first device entry
    allow: [] # array of allow-[stanzas] eg. allow-hotplug
    auto: true

    family: inet
    method: static
    description:
    address: 192.168.222.10
    netmask: 24
    gateway: 192.168.222.254

    # optional dns settings nameservers: []
    #
    #    nameservers:
    #      - 194.150.168.168  # dns.as250.net
    #      - 91.239.100.100   # anycast.censurfridns.dk
    #    search: warenform.de
    #
    #nameservers:
    #  - 192.168.222.1
    #search: blkr.netz


# ---
# vars used by roles/ansible_dependencies
# ---


# ---
# vars used by roles/ansible_user
# ---


# ---
# vars used by roles/common/tasks/basic.yml
# ---


# ---
# vars used by roles/common/tasks/sshd.yml
# ---

# ---
# vars used by roles/common/tasks/apt.yml
# ---


# ---
# vars used by roles/common/tasks/systemd-resolved.yml
# ---

systemd_resolved: true

# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
#   Primäre DNS-Adresse: 38.222.106.139
#   Sekundäre DNS-Adresse: 194.187.251.67
#
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
#   primäre DNS-Adresse
#      IPv4: 1.1.1.1
#      IPv6: 2606:4700:4700::1111
#   sekundäre DNS-Adresse
#      IPv4: 1.0.0.1
#      IPv6: 2606:4700:4700::1001
#
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
#   primäre DNS-Adresse
#      IPv4: 8.8.8.8
#      IPv6: 2001:4860:4860::8888
#   sekundäre DNS-Adresse
#      IPv4: 8.8.4.4
#      IPv6: 2001:4860:4860::8844
#
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
#   primäre DNS-Adresse
#      IPv4: 9.9.9.9
#      IPv6: 2620:fe::fe
#   sekundäre DNS-Adresse
#      IPv4: 149.112.112.112
#      IPv6: 2620:fe::9
#
# OpenNIC - https://www.opennic.org/
#      IPv4: 195.10.195.195 - ns31.de
#      IPv4: 94.16.114.254  - ns28.de
#      IPv4: 51.254.132.59  - ns9.de
#      IPv4: 194.36.144.87  - ns29.de
#      IPv6: 2a00:f826:8:2::195 - ns31.de
#
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
#    IPv4: 5.1.66.255
#    IPv6: 2001:678:e68:f000::
#    Servername für DNS-over-TLS: dot.ffmuc.net
#    IPv4: 185.150.99.255
#    IPv6: 2001:678:ed0:f000::
#    Servername für DNS-over-TLS: dot.ffmuc.net
#    für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
resolved_nameserver:
  - 192.168.222.1

# search domains
#
# If there are more than one search domains, then specify them here in the order in which
# the resolver should also search them
#
#resolved_domains: []
resolved_domains:
  - ~.
  - fm.netz

resolved_dnssec: false

# dns.as250.net: 194.150.168.168
#
resolved_fallback_nameserver:
   - 194.150.168.168


# ---
# vars used by roles/common/tasks/users
# ---

default_user:

  - name: chris
    password: $y$j9T$JPKlR6kIk7GJStSdmAQWq/$e1vJER6KL/dk1diFNtC.COw9lu2uT6ZdrUgGcNVb912
    shell: /bin/bash
    ssh_keys:
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'

  - name: sysadm
    user_id: 1050
    group_id: 1050
    group: sysadm
    password: $y$j9T$UHsnOrOT5qXnAwrPCzB7A1$jnqz4CHvLEaIke3RxnresjAOS6NfcTxyDH/fbKnXTC/
    shell: /bin/bash
    ssh_keys:
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'

  - name: localadmin
    user_id: 1051
    group_id: 1051
    group: localadmin
    home: /home/localadmin
    password: $y$j9T$1WH8G2UkuN1jjp4QLuoeC0$dXpOnJUfMMAqAXlwN8XD0pq78r.a4UZOgt3LY4afxy/
    shell: /bin/bash
    ssh_keys:
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'

  - name: back
    user_id: 1060
    group_id: 1060
    group: back
    password: $y$j9T$WmitGB98lhPLJ39Iy4YfH.$irv0LP1bB5ImQKBUr1acEif6Ed6zDu6gLQuGQd/i5s0
    shell: /bin/bash
    ssh_keys:
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINj0nCdFOZm51AVCfPbZ22QROIEiboXZ7RamHvM2E9IM root@backup.warenform.de'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZQMCGCyIvs5hoNDoTIkKvKmEbxLf+uCYI1vx//ZQYY root@o26-backup'


  - name: borg
    user_id: 1065
    group_id: 1065
    group: borg
    home: /home/borg
    password: $y$j9T$JPKlR6kIk7GJStSdmAQWq/$e1vJER6KL/dk1diFNtC.COw9lu2uT6ZdrUgGcNVb912
    shell: /bin/bash
    ssh_keys:
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHUvk8+UduCcBbQO1YxXSU8SaGIl8x+TBmIFmPb9JQu8 root@gw-fm'
      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN0ibOee8TvYlrEzKno5J6h3ZQs79i0wPElqYvQxAymK root@file-fm'

#extra_user:
#
#  - name: borg
#    user_id: 1065
#    group_id: 1065
#    group: borg
#    home: /home/borg
#    password: $y$j9T$SZty9T8ZWbnyHR2S85xaG.$GhxHOKG9fKErT9s5TAehXXyZJSkNaIcXY18Rg1iMyhC
#    shell: /bin/bash
#    ssh_keys:
#      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
#      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
#      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXrNhcgNtZykTgzcwX/L1cL8qpSyQQy75M01UpjdSmA root@file-dissens'
#      - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEm1P7Pg3Tlm02bxkropKf3CcyTCAB3YCMxPSjai2lc root@gw-dissens'


# ---
# vars used by roles/common/tasks/cron.yml
# ---

cron_user_entries:

  - name: "Daily Backup "
    minute: "03"
    hour: "00"
    job: /root/crontab/backup-rborg2/rborg2.sh

  - name: "Check if postfix mailservice is running. Restart service if needed."
    minute: "*/11"
    hour: "*"
    job: /root/bin/monitoring/check_postfix.sh

  - name: "Check if ntpsec is running. Restart service if needed."
    minute: "*/7"
    hour: "*"
    job: /root/bin/monitoring/check_ntpsec_service.sh

  - name: "Check if SSH service is running. Restart service if needed."
    minute: "*/13"
    hour: "*"
    job: /root/bin/monitoring/check_ssh.sh

  - name: "Check if systemd-resolved service is running. Restart service if needed."
    minute: "*/17"
    hour: "*"
    job: /root/bin/monitoring/check_systemd_service.sh systemd-resolved

  - name: "Check Postfix E-Mail LOG file for 'fatal' errors."
    minute: "*/30"
    hour: "*"
    job: /root/bin/postfix/check-postfix-fatal-errors.sh

  - name: "Clean up Samba Trash Dirs"
    minute: "02"
    hour: "23"
    job: /root/bin/samba/clean_samba_trash.sh

  - name: "Set (group and access) Permissons for Samba shares"
    minute: "14"
    hour: "23"
    job: /root/bin/samba/set_permissions_samba_shares.sh


cron_user_special_time_entries:

  - name: "Restart DNS Cache service 'systemd-resolved'"
    special_time: reboot
    job: "sleep 10 ; /bin/systemctl restart systemd-resolved"
    insertafter: PATH


# ---
# vars used by roles/common/tasks/users.yml
# ---


# ---
# vars used by roles/common/tasks/users-systemfiles.yml
# ---


# ---
# vars used by roles/common/tasks/webadmin-user.yml
# ---


# ---
# vars used by roles/common/tasks/sudoers.yml
# ---
#
# see: roles/common/tasks/vars

sudoers_file_user_aliases:
   - name: MAIN_USER
     entry: 'sysadm'

sudoers_file_cmnd_aliases:
   - name: REBOOT 
     entry: '/sbin/reboot'
   - name: MANAGE_SERVICE
     entry: '/usr/bin/systemctl'


sudoers_file_user_privileges:
  - name: MAIN_USER
    entry: ALL = REBOOT
  - name: MAIN_USER
    entry: ALL = MANAGE_SERVICE

#  - name: julius
#    entry: 'ALL=(root) NOPASSWD: /sbin/reboot'
#  - name: josephine
#    entry: 'ALL=(root) NOPASSWD: /sbin/reboot'
#  - name: sebastian
#    entry: 'ALL=(root) NOPASSWD: /sbin/reboot'
#  - name: julius-e
#    entry: 'ALL=(root) NOPASSWD: /sbin/reboot'


# ---
# vars used by roles/common/tasks/caching-nameserver.yml
# ---


# ---
# vars used by roles/common/tasks/git.yml
# ---


# ---
# vars used by roles/common/tasks/ntp.yml
# ---

local_ntp_service: true

ntp_server: gw-fm.fm.netz


# ---
# vars used by roles/common/tasks/nfs.yml
# ---

nfs_server: 192.168.222.10

# Set 'fs_encrypted' to true if filesystem lives on an encrypted
# partition.
#
# NOTE !!
#    Take car to increase 'fsid' in case of more than one export
#
nfs_exports:
   - src: 192.168.222.10:/data/samba/shares
     path: /data/samba/shares
     mount_opts: users,rsize=8192,wsize=8192,hard,intr
     export_opt: rw,root_squash,sync,subtree_check
     export_networks:
       - 192.168.222.0/24
       - 10.0.222.0/24
       - 10.1.222.0/24
       - 192.168.63.0/24
     use_fsid_option: true


# ---
# vars used by roles/common/tasks/samba-config-server.yml
# vars used by roles/common/tasks/samba-user.yml
# ---

samba_server_ip: 192.168.222.10
samba_server_cidr_prefix: 24

samba_workgroup: FM

samba_netbios_name: FILE-FM

samba_server_min_protocol: !!str NT1

samba_groups:
  - name: buero
    group_id: 1100
  - name: projekte
    group_id: 1200
  - name: verwaltung
    group_id: 1300

samba_user:
  - name: sysadm
    groups:
      - buero
      - projekte
      - verwaltung
    password: 'k6-C5.X-/YGm'

  - name: chris
    groups:
      - buero
      - projekte
      - verwaltung
    password: !vault |
          $ANSIBLE_VAULT;1.1;AES256
          63643330373231636537366333326630333265303265653933613835656262323863363038653234
          3462653135633266373439626263356636646637643035340a653466356235346663626163306363
          61313164643061306433643738643563303036646334376536626531383965303036386162393832
          6631333038306462610a356535633265633563633962333137326533633834636331343562633765
          3631

  - name: agnieszka
    groups:
      - buero
    password: '20%4gni_eszk4-25-'

  - name: anja
    groups:
      - buero
      - projekte
      - verwaltung
    password: '20-4nj4.m4y3r_25?'

  - name: anna
    groups:
      - buero
      - projekte
    password: '20.4n.n4-25!'

  - name: barbara
    groups:
      - buero
      - projekte
      - verwaltung
    password: '20.b4rb4r4-25?'

  - name: dominique
    groups:
      - buero
      - projekte
      - verwaltung
    password: '20/do-m1-ni1que/25?'

  - name: franziska
    groups:
      - buero
      - projekte
      - verwaltung
    password: '20-fr4nzisk4.25%'

  - name: karina
    groups:
      - buero
    password: '20_k4-ri-n4/25.'

  - name: linda
    groups:
      - buero
      - projekte
    password: '20-l1n-d4.25%'

  - name: michael
    groups:
      - buero
    password: '20.m1cha-3l/25/'

  - name: stephanie
    groups:
      - buero
      - projekte
      - verwaltung
    password: '20.st3pha-ni3_25%'

base_home: /data/home

samba_homes_virusfilter: true

# remove_samba_users:
#   - name: name1
#   - name: name2
#
remove_samba_users: []
#remove_samba_users: 
#  - name: elenor.faellgrem
#  - name: maiken.schiele

samba_shares:

  - name: Buero
    comment: Buero auf Fileserver
    path: /data/samba/shares/Buero
    group_valid_users: buero
    group_write_list: buero
    file_create_mask: !!str 660
    dir_create_mask: !!str 2770
    vfs_object_virusfilter: true
    vfs_object_recycle: true
    recycle_path: '@Recycle'

  - name: Projekte
    comment: Projekte auf Fileserver
    path: /data/samba/shares/Projekte
    group_valid_users: projekte
    group_write_list: projekte
    file_create_mask: !!str 664
    dir_create_mask: !!str 2775
    vfs_object_virusfilter: true
    vfs_object_recycle: true
    recycle_path: '@Recycle'

  - name: Verwaltung
    comment: Verwaltung auf Fileserver
    path: /data/samba/shares/Verwaltung
    group_valid_users: verwaltung
    group_write_list: verwaltung
    file_create_mask: !!str 660
    dir_create_mask: !!str 2770
    vfs_object_virusfilter: true
    vfs_object_recycle: true
    recycle_path: '@Recycle'


# ==============================


# ---
# vars used by scripts/reset_root_passwd.yml
# ---

root_user:
  name: root
  password: $6$J1ssJfdshf/$mknQEPDcW4HN5.wFfawbamamywI7F7fhdZmaR1abNrc4DA7DNRx766lz3ygf9YV3gcmRq3QhJ3fBVlkwGMCvq.
