puppetlabs-lvm
puppetlabs-lvm copied to clipboard
Error while evaluating a Resource Statement, Lvm::Logical_volume[db2installlv]: has no parameter named 'yes_flag' (file: /etc/puppetlabs/code/environments/ccombs/modules/lvm/manifests/volume_group.pp
Describe the Bug
Error while evaluating a Resource Statement, Lvm::Logical_volume[db2backupslv]: has no parameter named 'yes_flag' (file: /etc/puppetlabs/code/environments/ccombs/modules/lvm/manifests/volume_group.pp
Expected Behavior
yes_flag to work when passing logvol parameters in.
Steps to Reproduce
->class { 'lvm': volume_groups => { 'db2vg' => { physical_volumes => '/dev/sdb', createonly => true, logical_volumes => { 'db2backupslv' => { 'initial_size' => '50G', 'mountpath' => '/db2_backups', 'mountpath_require' => true, 'fs_type' => 'xfs', 'options' => 'defaults,nodev,noexec,nosuid', 'yes_flag' => true, }, --Snipped--
Environment
- Version puppetlabs-lvm 2.3
- Platform RHEL 9.4
Additional Context
Tried using yes_flag to overcome an improperly removed xfs filesystem and logvol from this error:
Error: /Stage[main]/Lvm/Lvm::Volume_group[db2vg]/Lvm::Logical_volume[db2backupslv]/Logical_volume[db2backupslv]/ensure: change from 'absent' to 'present' failed: Execution of '/usr/sbin/lvcreate -n db2backupslv --size 50G db2vg' returned 5: WARNING: xfs signature detected on /dev/db2vg/db2backupslv at offset 0. Wipe it? [y/n]: [n] Aborted wiping of xfs. 1 existing signature left on the device. Failed to wipe signatures on logical volume db2vg/db2backupslv.