Experiments part 9
authorAndreas Schiermeier <andreas@schiermeier.name>
Wed, 9 Dec 2015 23:51:33 +0000 (00:51 +0100)
committerAndreas Schiermeier <andreas@schiermeier.name>
Wed, 9 Dec 2015 23:51:33 +0000 (00:51 +0100)
.gitmodules [new file with mode: 0644]
modules/pam [new submodule]
modules/system/manifests/init.pp

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..c187782
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "modules/pam"]
+       path = modules/pam
+       url = https://github.com/jlyheden/puppet-pam
diff --git a/modules/pam b/modules/pam
new file mode 160000 (submodule)
index 0000000..0c99b36
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 0c99b36148a5c2ff14f52b829a0bc79b2fabac37
index 491a7fb..b1a5a08 100644 (file)
@@ -27,6 +27,8 @@ class system {
                ensure => installed,
        }
 
                ensure => installed,
        }
 
+       include pam
+       include pam::mkhomedir
 
        package { 'chrony':
                ensure => installed,
 
        package { 'chrony':
                ensure => installed,
@@ -45,14 +47,16 @@ class system {
        }
 
        file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
        }
 
        file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
+               ensure => file,
                source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
                source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
-               mode => 'a=,u=rw',
+               mode => 'a=,u=r',
                require => Package['network-manager'],
        }
 
        file { '/etc/NetworkManager/system-connections/wired':
                require => Package['network-manager'],
        }
 
        file { '/etc/NetworkManager/system-connections/wired':
+               ensure => file,
                source => 'puppet:///modules/system/etc/NetworkManager/system-connections/wired',
                source => 'puppet:///modules/system/etc/NetworkManager/system-connections/wired',
-               mode => 'a=,u=rw',
+               mode => 'a=,u=r',
                require => Package['network-manager'],
        }
 
                require => Package['network-manager'],
        }