Added puppet files
[clearscm.git] / puppet / gd / client.pp
diff --git a/puppet/gd/client.pp b/puppet/gd/client.pp
new file mode 100644 (file)
index 0000000..e56c141
--- /dev/null
@@ -0,0 +1,23 @@
+# RDE Puppet Client config
+
+# This subclass defines the configuration for RDE Clients
+class rde::client {
+  # Remove any NIS groups
+  file_line { 'no_NIS_groups':
+    ensure            => 'absent',
+    path              => '/etc/passwd',
+    line              => '# Remove +',
+    match             => '^\+@.*',
+    multiple          => 'true',
+    match_for_absence => 'true',
+    replace           => 'false',
+    tag               => 'nis',
+  }
+
+  file_line { 'all_users':
+    path   => '/etc/passwd',
+    ensure => 'present',
+    line   => '+',
+    tag     => 'nis',
+  }
+}