class nodo::utils::security::gui ( $ensure = 'installed', ) { package { [ 'keepassxc', 'pinentry-gtk2', 'otpclient', 'otpclient-cli', ]: ensure => $ensure, } # Pinentry alternative file { [ '/etc/alternatives/pinentry', '/etc/alternatives/pinentry-x11' ]: ensure => '/usr/bin/pinentry-gtk-2', owner => root, group => root, require => Package['pinentry-gtk2'], } # Not in use # https://superuser.com/questions/878902/whats-the-difference-between-keepass-and-keepassx # https://askubuntu.com/questions/1011431/keepassx-vs-keepassxc package { [ 'keepassx', 'revelation', ]: ensure => absent, } }