summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-12-10 17:59:54 +0100
committervarac <varacanero@zeromail.org>2015-12-10 18:21:06 +0100
commitd7ff99a1e8dfc5665f1bb94bc6bf4b369ea3a1ec (patch)
treea2403d9a9a440e38331eae45a838b22dbfb9b859 /puppet/modules/site_config
parent1f9da0490a3d55831e2b834ab5801c629123d226 (diff)
[feat] Dont remove nfs client on local vagrant nodes
Diffstat (limited to 'puppet/modules/site_config')
-rw-r--r--puppet/modules/site_config/manifests/packages/base.pp12
1 files changed, 9 insertions, 3 deletions
diff --git a/puppet/modules/site_config/manifests/packages/base.pp b/puppet/modules/site_config/manifests/packages/base.pp
index c23495fc..b53a9364 100644
--- a/puppet/modules/site_config/manifests/packages/base.pp
+++ b/puppet/modules/site_config/manifests/packages/base.pp
@@ -8,12 +8,18 @@ class site_config::packages::base {
}
# base set of packages that we want to remove everywhere
- package { [ 'acpi', 'eject', 'ftp',
- 'laptop-detect', 'lpr', 'nfs-common', 'nfs-kernel-server',
- 'portmap', 'pppconfig', 'pppoe', 'pump', 'qstat', 'rpcbind',
+ package { [ 'acpi', 'eject', 'ftp', 'laptop-detect', 'lpr',
+ 'portmap', 'pppconfig', 'pppoe', 'pump', 'qstat',
'samba-common', 'samba-common-bin', 'smbclient', 'tcl8.5',
'tk8.5', 'os-prober', 'unzip', 'xauth', 'x11-common',
'x11-utils', 'xterm' ]:
ensure => absent;
}
+
+ notice($::site_config::params::environment)
+ if $::site_config::params::environment != 'local' {
+ package { [ 'nfs-common', 'nfs-kernel-server', 'rpcbind' ]:
+ ensure => purged;
+ }
+ }
}