diff options
Diffstat (limited to 'manifests/utils/web')
-rw-r--r-- | manifests/utils/web/console.pp | 6 | ||||
-rw-r--r-- | manifests/utils/web/gui.pp | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/manifests/utils/web/console.pp b/manifests/utils/web/console.pp index 112a97b..07d1473 100644 --- a/manifests/utils/web/console.pp +++ b/manifests/utils/web/console.pp @@ -1,4 +1,6 @@ -class nodo::utils::web::console { +class nodo::utils::web::console ( + $ensure = 'installed', +) { package { [ 'links', 'elinks', @@ -6,6 +8,6 @@ class nodo::utils::web::console { 'w3m', 'newsbeuter', ]: - ensure => installed, + ensure => $ensure, } } diff --git a/manifests/utils/web/gui.pp b/manifests/utils/web/gui.pp index bbf9e61..64b4ef6 100644 --- a/manifests/utils/web/gui.pp +++ b/manifests/utils/web/gui.pp @@ -1,4 +1,6 @@ -class nodo::utils::web::gui { +class nodo::utils::web::gui ( + $ensure = 'installed', +) { # Web: GUI package { [ 'firefox-esr', @@ -23,12 +25,15 @@ class nodo::utils::web::gui { #'nicotine', #'sshfs', ]: - ensure => installed, + ensure => $ensure, } # Browser alternative file { "/etc/alternatives/x-www-browser": - ensure => "/usr/bin/firefox-esr", + ensure => $ensure ? { + 'present','installed' => "/usr/bin/firefox-esr", + default => undef, + }, owner => root, group => root, require => Package['firefox-esr'], @@ -36,7 +41,10 @@ class nodo::utils::web::gui { # Browser alternative: manpage file { "/etc/alternatives/x-www-browser.1.gz": - ensure => "/usr/share/man/man1/firefox-esr.1.gz", + ensure => $ensure ? { + 'present','installed' => "/usr/share/man/man1/firefox-esr.1.gz", + default => undef, + }, owner => root, group => root, require => Package['firefox-esr'], |