]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Dist nsswitch.conf from puppet
authorTollef Fog Heen <tfheen@err.no>
Thu, 9 May 2013 08:25:25 +0000 (10:25 +0200)
committerTollef Fog Heen <tfheen@err.no>
Thu, 9 May 2013 08:25:25 +0000 (10:25 +0200)
modules/debian-org/files/nsswitch.conf [new file with mode: 0644]
modules/debian-org/manifests/init.pp

diff --git a/modules/debian-org/files/nsswitch.conf b/modules/debian-org/files/nsswitch.conf
new file mode 100644 (file)
index 0000000..e6a644e
--- /dev/null
@@ -0,0 +1,19 @@
+# /etc/nsswitch.conf
+#
+# Example configuration of GNU Name Service Switch functionality.
+# If you have the `glibc-doc-reference' and `info' packages installed, try:
+# `info libc "Name Service Switch"' for information about this file.
+
+passwd:         compat db
+group:          db compat
+shadow:         compat db
+
+hosts:          files dns
+networks:       files
+
+protocols:      db files
+services:       db files
+ethers:         db files
+rpc:            db files
+
+netgroup:       nis
index f68ae30b7982817ffe185408c64c2a5c55717ce5..fcef2e89a3c508c29a0c297d2f0e1b114c76dca7 100644 (file)
@@ -208,6 +208,10 @@ class debian-org {
                source  => 'puppet:///modules/debian-org/dsa-puppet-stuff.cron.ignore',
                require => Package['debian.org']
        }
+       file { '/etc/nsswitch.conf':
+               mode   => '0755',
+               source => 'puppet:///modules/debian-org/nsswitch.conf',
+       }
 
        # set mmap_min_addr to 4096 to mitigate
        # Linux NULL-pointer dereference exploits