Skip to content

Instantly share code, notes, and snippets.

View gdha's full-sized avatar

Gratien D'haese gdha

View GitHub Profile
@gdha
gdha / inspec_results_client_after_recovery
Created December 13, 2021 10:18
centos8 with bareos
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
# Default is to create Relax-and-Recover rescue media as ISO image
# set OUTPUT to change that
# set BACKUP to activate an automated (backup and) restore of your data
# Possible configuration values can be found in /usr/share/rear/conf/default.conf
#
# This file (local.conf) is intended for manual configuration. For configuration
# through packages and other automated means we recommend creating a new
# file named site.conf next to this file and to leave the local.conf as it is.
# Our packages will never ship with a site.conf.
#
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
$ vagrant up --provision
Bringing machine 'k3s-master' up with 'virtualbox' provider...
Bringing machine 'k3s-client1' up with 'virtualbox' provider...
Bringing machine 'k3s-client2' up with 'virtualbox' provider...
==> k3s-master: Importing base box 'bento/ubuntu-18.04'...
==> k3s-master: Matching MAC address for NAT networking...
==> k3s-master: Checking if box 'bento/ubuntu-18.04' version '201912.14.0' is up to date...
==> k3s-master: Setting the name of the VM: k3s-intro_k3s-master_1577782509870_72681
==> k3s-master: Clearing any previously set network interfaces...
==> k3s-master: Preparing network interfaces based on configuration...
@gdha
gdha / gist:6fe7c90c952a3119ea731d5c7f791a2c
Created July 19, 2019 09:44
rear log file and console output of session (partial)
2019-07-16 09:59:16.795513401 Relax-and-Recover 2.4 / Git
2019-07-16 09:59:16.796553158 Command line options: /bin/rear -v recover
2019-07-16 09:59:16.797560545 Using log file: /var/log/rear/rear-ITSGBHHLSP00741.log
2019-07-16 09:59:16.798779624 Including /etc/rear/os.conf
2019-07-16 09:59:16.801438147 Including conf/Linux-i386.conf
2019-07-16 09:59:16.802589285 Including conf/GNU/Linux.conf
2019-07-16 09:59:16.806882366 Including /etc/rear/site.conf
2019-07-16 09:59:16.808078437 Including /etc/rear/local.conf
2019-07-16 09:59:16.809578458 Including /etc/rear/rescue.conf
2019-07-16 09:59:16.811879876 ======================
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check
Profile: InSpec Profile (compliance-checks)
Version: 0.1.0
Target: ssh://root@client:22
 ✔ kernel.shmall: kernel.shmall check
 ✔ Kernel Parameter kernel.shmall value should eq 2097152
 ✔ kernel.shmmax: kernel.shmmax check
 ✔ Kernel Parameter kernel.shmmax value should eq 134217728
 ✔ fs.file-max: fs.file-max check