2020-08-19 12:29:49 +02:00
---
2021-02-07 13:16:51 +01:00
### wird in vielen Rollen verwendet
2022-07-02 13:20:21 +02:00
ssh_public_key_mg : ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKL8opSQ0rWVw9uCfbuiqmXq188OP4xh66MBTO3zV5jo heimserver_mg_v3
2020-08-19 12:29:49 +02:00
empfaenger_mail : michael.grote@posteo.de
2021-03-07 19:40:32 +01:00
file_header : |
2021-03-25 09:44:44 +01:00
#----------------------------------------------------------------#
# This file is managed with ansible! #
#----------------------------------------------------------------#
2022-02-21 16:42:22 +01:00
### mgrote.restic
restic_user : root
restic_group : restic
restic_conf_dir : /etc/restic
restic_exclude : |
._*
desktop.ini
.Trash-*
**/**cache***/**
**/**Cache***/**
**/**AppData***/**
2022-02-24 17:11:02 +01:00
# https://github.com/restic/restic/issues/1005
# https://forum.restic.net/t/exclude-syntax-confusion/1531/12
2022-02-21 16:42:22 +01:00
restic_mount_timeout : "10 min"
restic_failure_delay : "30 s"
2022-03-19 13:28:41 +01:00
restic_schedule : "0/6:00" # alle 6 Stunden
2022-05-22 21:12:36 +02:00
restic_folders_to_backup : "/" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files
2022-11-24 16:20:57 +01:00
restic_repository : "//fileserver3.grote.lan/restic"
2022-02-21 16:42:22 +01:00
restic_repository_password : "{{ lookup('keepass', 'restic_repository_password', 'password') }}"
restic_mount_user : restic
restic_mount_password : "{{ lookup('keepass', 'fileserver_smb_user_restic', 'password') }}"
restic_fail_mail : "{{ empfaenger_mail }}"
2021-12-28 11:25:29 +01:00
### mgrote.user
users :
- username : mg
password : "{{ lookup('keepass', 'mg_linux_password_hash', 'password') }}"
update_password : on_create
groups : ssh, sudo
state : present
public_ssh_key : "{{ ssh_public_key_mg }}"
allow_sudo : true
allow_passwordless_sudo : true
- username : ansible-user
password : "{{ lookup('keepass', 'ansible_user_linux_password_hash', 'password') }}"
update_password : on_create
groups : ssh, sudo
state : present
public_ssh_key : ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyqs0OE5RVqs6tIzyuGQWvq/OVDa/tfdSEqMIwcthFt+pwCCjpqtNc8L8FSXgphSwuNosFakqhMLDFD3pmII+t61NRExsoR3nGTDuCAQnTvTKXTEfhnunN3pwgXWVTI68j9pRzmSy+hMkSFbgN9EGMSXxGcNunY7ewS3ZkVe08SWFpiX9giYq6uiOiMHsZKdcP6s2QRXUhZlTx2cOc/9gJ5lD82EUXQRZzT6ww2xVrceIW9c3CZFmSmYWxvrR7dPcHrke90FPPd5WhU+Anz++6GsT6+OhZTk+uQnBHllFXn9NoFQIEUDO4zV+gFXITaAbTkLAcCwuKB2QcDZ6C2mhf ansible-generated on ansible-v2
allow_sudo : true
allow_passwordless_sudo : true
2022-06-12 22:24:12 +02:00
### mgrote.munin-node
2021-06-16 21:57:28 +02:00
munin_node_bind_host : "0.0.0.0"
munin_node_bind_port : "4949"
munin_node_allowed_cidrs : [ 192.168 .2 .0 /24]
2021-06-22 13:57:45 +02:00
munin_node_disabled_plugins :
2021-06-16 21:57:28 +02:00
- name : meminfo # zu hohe last
- name : hddtemp2 # ersetzt durch hddtemp_smartctl
- name : ntp # verursacht zu viele dns ptr request
- name : hddtempd # ersetzt durch hddtemp_smartctl
2022-09-14 16:01:39 +02:00
- name : mt_system_crs309 # switch ausgebaut
2022-11-03 21:12:54 +01:00
- name : squid_cache # proxmox
- name : squid_objectsize # proxmox
- name : squid_requests # proxmox
- name : squid_traffic # proxmox
2023-05-26 14:39:10 +02:00
- name : solarman_api_inverter
- name : deye
2022-02-18 20:34:43 +01:00
munin_node_plugins :
- name : timesync
src : https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/systemd/timesync_status
2021-06-22 13:57:45 +02:00
- name : systemd_status
2021-11-07 12:22:11 +01:00
src : https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/systemd/systemd_status
2022-06-12 22:24:12 +02:00
- name : systemd_mem
src : https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/systemd/systemd_mem
config : |
[ systemd_mem]
env.all_services true
2021-09-13 19:26:31 +02:00
- name : lvm_
2021-11-07 12:22:11 +01:00
src : https://git.mgrote.net/mg/mirror-munin-contrib/raw/branch/master/plugins/disk/lvm_
2021-09-13 19:26:31 +02:00
config : |
[ lvm_*]
user root
2021-10-17 19:40:18 +02:00
- name : fail2ban
src : https://git.mgrote.net/mg/munin-plugins/raw/branch/master/extern/fail2ban
config : |
[ fail2ban]
env.client /usr/bin/fail2ban-client
env.config_dir /etc/fail2ban
user root
2021-06-06 22:01:20 +02:00
### mgrote.dotfiles
dotfiles_repo_url : https://git.mgrote.net/mg/dotfiles
dotfiles_repo_path : /home/mg/dotfiles
dotfiles_files :
- repo_path : "{{ dotfiles_repo_path}}/.vimrc"
local_path : "/home/mg/.vimrc"
- repo_path : "{{ dotfiles_repo_path}}/.tmux.conf"
local_path : "/home/mg/.tmux.conf"
- repo_path : "{{ dotfiles_repo_path}}/.gitconfig"
local_path : "/home/mg/.gitconfig"
dotfiles_owner : mg
2021-03-25 09:44:44 +01:00
### jnv.unattended_upgrades
unattended_mail : "{{ empfaenger_mail }}"
unattended_mail_only_on_error : true
unattended_syslog_enable : true
unattended_origins_patterns :
- 'origin=Ubuntu,archive=${distro_codename}-security'
- 'o=Ubuntu,a=${distro_codename}-updates'
2022-02-18 20:34:43 +01:00
### mgrote.systemd-timesyncd
ntp_timesyncd_timezone : "Europe/Berlin" # Zeitzone in der sich der Computer befindet
ntp_timesyncd_servers : # welche Server sollen befragt werden
2022-05-10 06:42:37 +02:00
- 192.168 .2 .1
2021-03-13 12:32:54 +01:00
ntp_chrony_logging : false # logging an/aus
2021-02-26 14:16:03 +01:00
### mgrote.postfix
2020-12-25 18:37:14 +01:00
postfix_absender_mailadresse : info@mgrote.net
postfix_absender_passwort : "{{ lookup('keepass', 'postfix_absender_passwort', 'password') }}"
postfix_erlaubte_netzwerke : "127.0.0.0/8 192.168.2.0/24"
postfix_mail_nach_cronjob : false
postfix_smtp_server : smtp.strato.de
postfix_smtp_server_port : 587
postfix_smtp_use_tls : "yes"
2021-02-07 10:53:08 +01:00
### mgrote.apt_manage_sources
2023-05-12 08:18:45 +02:00
manage_sources_apt_proxy : "192.168.2.43:9999" # als IP da apt warum auch immer >10s braucht den Namen aufzulösen
2020-08-19 12:29:49 +02:00
### mgrote.tmux
tmux_conf_destination : "/home/mg/.tmux.conf"
tmux_bashrc_destination : "/home/mg/.bashrc"
tmux_standardsession_name : "default"
### mgrote.fail2ban
f2b_bantime : 300
f2b_findtime : 300
f2b_maxretry : 5
2020-12-25 18:37:14 +01:00
f2b_destemail : "{{ empfaenger_mail }}"
f2b_sender : "{{ postfix_absender_mailadresse }}"
2020-08-19 12:29:49 +02:00
### oefenweb.ufw
ufw_rules :
- rule : allow
to_port : 22
protocol : tcp
comment : 'ssh'
2021-10-06 10:18:23 +02:00
from_ip : 0.0 .0 .0 /0
2021-06-16 21:57:28 +02:00
- rule : allow
to_port : 4949
protocol : tcp
comment : 'munin'
2022-03-06 14:10:30 +01:00
from_ip : 192.168 .2 .0 /24
2020-12-31 15:05:35 +01:00
ufw_default_incoming_policy : deny
ufw_default_outgoing_policy : allow
2021-11-05 21:10:27 +01:00
### mgrote.apt_manage_packages
apt_packages_common :
2020-12-22 13:20:29 +01:00
- locales
2021-03-07 19:40:32 +01:00
- python3
2020-12-22 13:20:29 +01:00
- build-essential
- htop
- git
- dnsutils
- mc
- cifs-utils
2021-07-25 22:08:02 +02:00
- haveged #https://www.linux-magazin.de/ausgaben/2011/09/einfuehrung2/
2021-03-16 13:27:57 +01:00
- ca-certificates
2020-12-22 13:20:29 +01:00
- netdiscover
- tree
- curl
2021-06-11 22:10:50 +02:00
- whois
2020-12-22 13:20:29 +01:00
- logrotate
- ncdu
- net-tools
- apt-transport-https
- neofetch
2021-04-09 23:29:03 +02:00
- moreutils
2020-12-22 13:20:29 +01:00
- acl
- vim
2021-05-08 23:05:22 +02:00
- rsync
2021-05-10 14:26:39 +02:00
- at
2021-06-29 13:58:31 +02:00
- ripgrep
2022-02-18 13:58:02 +01:00
- iotop
2022-06-12 16:01:30 +02:00
- pwgen
2022-07-22 13:12:23 +02:00
- keychain
2021-11-05 21:10:27 +01:00
apt_packages_physical :
2020-12-22 13:20:29 +01:00
- s-tui
2021-02-26 14:16:03 +01:00
- smartmontools
- lm-sensors
2021-05-11 10:58:14 +02:00
- ethtool
2021-11-05 21:10:27 +01:00
apt_packages_vm :
2020-12-22 13:20:29 +01:00
- qemu-guest-agent
- open-vm-tools
2021-11-05 21:10:27 +01:00
apt_packages_absent :
- nano
2022-01-14 14:16:59 +01:00
- ubuntu-advantage-tools
2021-11-27 23:39:02 +01:00
apt_packages_internet :
2023-04-14 12:20:34 +02:00
- http://docker10.grote.lan:3344/bash-helper-scripts-mgrote-latest.deb
2020-11-05 17:16:30 +01:00
2021-02-07 12:46:03 +01:00
2020-08-19 12:29:49 +02:00
# Ansible Variablen
### User
ansible_user : "ansible-user"
### SSH
ansible_ssh_common_args : "'-o StrictHostKeyChecking=no'"
### python3
# https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html
ansible_python_interpreter : "/usr/bin/python3"
# Ansible Plugin Variablen
### Keepass
# https://github.com/viczem/ansible-keepass
2020-12-09 10:21:40 +01:00
keepass_dbx : "./keepass_db.kdbx"
2020-08-19 12:29:49 +02:00
keepass_psw : !vault |
$ANSIBLE_VAULT;1.1;AES256
62383737623066396239383336646164616537646630653964313532383130343533346561633039
3437306134656535353438666165376332633064383135650a636537626662656130376537633164
61613132326536666466636632363866393066656236303766333338356337396338376266346631
6364336331623539300a313562303161373631613734313938346666376239613333333363376236
38363035376662353135333332363431343833656666643036326234656166643531