]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding gdm3 class and misc fixes
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 00:31:15 +0000 (22:31 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Feb 2013 00:31:15 +0000 (22:31 -0200)
manifests/init.pp
manifests/personal.pp
manifests/subsystems/firewall/local.pp
manifests/subsystems/gdm3.pp [new file with mode: 0644]
manifests/subsystems/utils/laptop.pp

index 0a3da1c010a2b0698b3113846946b2fa874a15d8..893f82d34240a87f35c45d4856b90d2a441ab6af 100644 (file)
@@ -79,6 +79,7 @@ import "subsystems/munin.pp"
 import "subsystems/pam.pp"
 import "subsystems/xorg.pp"
 import "subsystems/gdm.pp"
+import "subsystems/gdm3.pp"
 import "subsystems/modprobe.pp"
 import "subsystems/hosts.pp"
 import "subsystems/locales.pp"
index 5a879f86d9ebea6b90a6ff3d7136ef5c95f8db11..b90728f28b357ec8f65773c87ed604835ce60825 100644 (file)
@@ -8,6 +8,8 @@ class nodo::personal {
 
   if $::lsbdistcodename == 'squeeze' {
     include gdm
+  else
+    include gdm3
   }
 
   # Monitoring
index ee82563d3464560932f6c4846023a992320e0121..7e23e290a7eda64fc5f2d5f9653775296a6d15fd 100644 (file)
@@ -5,6 +5,11 @@ class firewall::local(
   $manage_interface = hiera('nodo::firewall::local::manage_iface', false)
 ) {
 
+  shorewall::zone { 'loc':
+    type  => 'ipv4',
+    order => 4,
+  }
+
   if $manage_host {
     shorewall::host { "$interface-loc":
       name    => "$interface:$network",
@@ -44,8 +49,4 @@ class firewall::local(
     order           => 7,
   }
 
-  shorewall::zone { 'loc':
-    type  => 'ipv4',
-    order => 4,
-  }
 }
diff --git a/manifests/subsystems/gdm3.pp b/manifests/subsystems/gdm3.pp
new file mode 100644 (file)
index 0000000..0dfda11
--- /dev/null
@@ -0,0 +1,20 @@
+class gdm3 {
+  package { 'gdm3':
+    ensure => installed,
+  }
+
+  service { 'gdm3':
+    ensure  => running,
+    require => Package['gdm3'],
+  }
+
+  file { '/etc/gdm3/greeter.gsettings':
+    ensure => present,
+    owner  => root,
+    group  => root,
+    mode   => 0644,
+    notify => Service['gdm3'],
+    source => [ "puppet:///modules/site_nodo/etc/gdm3/${::domain}/greeter.gseetings",
+                "puppet:///modules/nodo/etc/gdm3/greeter.gsettings", ]
+  }
+}
index 1b4f78335420f36413c9f578d874de458f61e1e9..bab727fbd2c4626848707cef1f884d50d4b88637 100644 (file)
@@ -22,7 +22,7 @@ class utils::laptop::debian {
   }
 
   # Wicd
-  package { 'wicd', 'wicd-curses':
+  package { [ 'wicd', 'wicd-curses' ]:
     ensure => installed,
   }