From 7a0786d2d554a03880ac236c01ab099067510eb6 Mon Sep 17 00:00:00 2001 From: Nemo Date: Sun, 23 Aug 2020 17:04:39 +0200 Subject: [PATCH] Add OpenBSD group_vars and change swapiness --- inventory_template/group_vars/os_openbsd.yml | 22 +++++++++++++++++++ inventory_template/inventory.yml | 3 +++ roles/sysctl_customizations/defaults/main.yml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 inventory_template/group_vars/os_openbsd.yml diff --git a/inventory_template/group_vars/os_openbsd.yml b/inventory_template/group_vars/os_openbsd.yml new file mode 100644 index 0000000..2466baa --- /dev/null +++ b/inventory_template/group_vars/os_openbsd.yml @@ -0,0 +1,22 @@ +# Command to run to execute a Gentoo update +#cron_upgrade_job: emerge --sync --quiet && emerge --quiet-build -uvDN @world && /usr/sbin/perl-cleaner --all -q && emerge --quiet-build @preserved-rebuild && emerge --depclean && eselect news read + +# Tools to install on Gentoo hosts +#tools_package: + - bind-tools + - vim + - tcpdump + - gentoolkit + - tmux + - htop + - sudo + - curl + - sed + - awk + - grep + - jq + - mailutils + +# PF for OpenBSD (not iptables) +configure_iptables: false + diff --git a/inventory_template/inventory.yml b/inventory_template/inventory.yml index 366381d..1864b2b 100644 --- a/inventory_template/inventory.yml +++ b/inventory_template/inventory.yml @@ -35,3 +35,6 @@ all: hosts: myFirstCentOSHost.example.org: mySecondCentOSHost.anotherexample.org: + os_openbsd: + hosts: + myFirstOpenBSDHost.example.org: diff --git a/roles/sysctl_customizations/defaults/main.yml b/roles/sysctl_customizations/defaults/main.yml index 508e589..f8ccaf7 100644 --- a/roles/sysctl_customizations/defaults/main.yml +++ b/roles/sysctl_customizations/defaults/main.yml @@ -2,7 +2,7 @@ # defaults file for sysctl_customization # Sysctl swapiness value -sysctl_vm_swapiness: '10' +sysctl_vm_swapiness: '1' # Sysctl config file sysctl_config_file: /etc/sysctl.d/56-ansible.conf