Slackbot
05/09/2023, 1:11 PMYury Bushmelev
05/09/2023, 1:23 PMYury Bushmelev
05/09/2023, 1:24 PMpuppetlabs-lvm
<- this oneDr Bunsen Honeydew
05/09/2023, 1:24 PMpuppetlabs-lvm
module at https://forge.puppet.com/puppetlabs/lvm?src=slack&channel=puppetYury Bushmelev
05/09/2023, 1:24 PMgrep
shows somethingYury Bushmelev
05/09/2023, 1:25 PM-a
option.. I guess it’s for mounting/umounting a swap device with known nameRobert Waffen
05/09/2023, 1:32 PMRobert Waffen
05/09/2023, 1:34 PMexec { 'Disable SWAP':
command => '/sbin/swapoff -a',
path => $facts['path'],
onlyif => 'test $(swapon -s | wc -c) -gt 0',
}
Robert Waffen
05/09/2023, 1:35 PMRobert Waffen
05/09/2023, 1:46 PMonlyif => 'swap' in $facts['memory'].keys,
spp
05/09/2023, 2:17 PMawk '/SwapTotal/ {print $2}' </proc/memory
might not be more efficient.Robert Waffen
05/09/2023, 2:27 PMawk '/SwapTotal/ {print $2}' /proc/meminfo
spp
05/09/2023, 2:30 PMYury Bushmelev
05/09/2023, 2:48 PMYury Bushmelev
05/09/2023, 2:49 PMBrian Schonecker
05/09/2023, 3:23 PMsystemctl mask swap.target
perhaps? That'd require a reboot but would kill off all swap.Brian Schonecker
05/09/2023, 3:23 PM