Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
puppet-code (0.1.0-1build283) noble; urgency=medium

* commit event. see changes history in git log

-- root <packager@infrahouse.com> Mon, 09 Feb 2026 02:34:55 +0000

puppet-code (0.1.0-1build282) noble; urgency=medium

* commit event. see changes history in git log

-- root <packager@infrahouse.com> Mon, 09 Feb 2026 02:34:37 +0000

puppet-code (0.1.0-1build281) noble; urgency=medium

* commit event. see changes history in git log

-- root <packager@infrahouse.com> Mon, 09 Feb 2026 02:34:09 +0000

puppet-code (0.1.0-1build280) noble; urgency=medium

* commit event. see changes history in git log
Expand Down
11 changes: 10 additions & 1 deletion environments/development/modules/profile/manifests/swap.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# @summary: Create swap from a file
# Swap size is capped to avoid filling the root filesystem on instances
# with large RAM and small root volumes (e.g. c5.metal with 192 GB RAM
# and a 30 GB root volume). The size is the minimum of:
# - 2x total RAM (traditional rule, appropriate for small instances)
# - 8 GB hard cap
# - 25% of available disk space on /
class profile::swap () {
$total_ram = $facts['memory']['system']['total_bytes']
$swap_size = $total_ram * 2
$eight_gb = 8 * 1024 * 1024 * 1024
$disk_available = $facts['mountpoints']['/']['available_bytes']
$disk_cap = $disk_available / 4
$swap_size = min($total_ram * 2, $eight_gb, $disk_cap)
$swap_file = '/swapfile'

exec {'create_swap_file':
Expand Down