redhat-cop / infra.lvm_snapshots

Ansible roles for LVM snapshot management
MIT License
8 stars 7 forks source link

Make bigboot more idempotent #69

Closed swapdisk closed 4 months ago

swapdisk commented 5 months ago

A few people have pointed out that the variable bigboot_size, which specifies how much the size of the boot partition will be increased by, isn't really idempotent. The suggestion is to offer a new variable that specifies the absolute size wanted for the boot partition. When using this new variable, the boot partition is increased to be the given size. If it is already that size, the role changes nothing.

Unfortunately, the existing variable name kind of implies the idempotent behavior, but in order to not introduce an API breaking change, we'll name the new variable bigboot_partition_size. The old variable name and behavior will still be supported, but deprecated.