]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Utils: split network, rename personal to bundle
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 22:07:55 +0000 (19:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 22:07:55 +0000 (19:07 -0300)
manifests/utils/bundle/debian.pp [moved from manifests/utils/personal/debian.pp with 95% similarity]
manifests/utils/bundle/poweruser.pp [moved from manifests/utils/personal/poweruser.pp with 70% similarity]
manifests/utils/bundle/standard.pp [moved from manifests/utils/personal/standard.pp with 82% similarity]
manifests/utils/monkeysphere.pp [new file with mode: 0644]
manifests/utils/network.pp
manifests/utils/network/mail.pp [new file with mode: 0644]

similarity index 95%
rename from manifests/utils/personal/debian.pp
rename to manifests/utils/bundle/debian.pp
index 91f6193ad0850d3d12d3cb6925c79e7453867777..23ce9d6960f39cb1028fa2a0b55b3e7d3519ea04 100644 (file)
@@ -1,4 +1,4 @@
-class nodo::utils::personal::debian {
+class nodo::utils::bundle::debian {
   # ISO image handling
   include nodo::utils::storage::iso
 
similarity index 70%
rename from manifests/utils/personal/poweruser.pp
rename to manifests/utils/bundle/poweruser.pp
index db81a42eb021ab21a1cc3bde2261a3dcb0c3e243..b4a20b265d33906fc5a777021ecc08e48d1316ec 100644 (file)
@@ -1,5 +1,5 @@
 # Bundle for power users
-class nodo::utils::personal::poweruser {
+class nodo::utils::bundle::poweruser {
   include nodo::utils::office
   include nodo::utils::interface
   include nodo::utils::development
@@ -7,4 +7,6 @@ class nodo::utils::personal::poweruser {
   include nodo::utils::network
   include nodo::utils::storage::archive
   include nodo::utils::multimedia
+  include nodo::utils::monkeysphere
+  include nodo::utils::network::mail
 }
similarity index 82%
rename from manifests/utils/personal/standard.pp
rename to manifests/utils/bundle/standard.pp
index 73ad27105bf848604566efa91b85ac18f9342914..b63c976915a54dc4e6e2790cdcc6201d2222f79c 100644 (file)
@@ -1,5 +1,5 @@
 # Bundle with standard packages
-class nodo::utils::personal::pc {
+class nodo::utils::bundle::pc {
   include nodo::utils::office
   include nodo::utils::printer
   include nodo::utils::network
diff --git a/manifests/utils/monkeysphere.pp b/manifests/utils/monkeysphere.pp
new file mode 100644 (file)
index 0000000..8da90b9
--- /dev/null
@@ -0,0 +1,11 @@
+class nodo::utils::monkeysphere {
+  # Monkeysphere
+  package { [
+    'xul-ext-monkeysphere',
+    'xul-ext-noscript',
+    'xul-ext-firebug',
+    'msva-perl',
+  ]:
+    ensure => installed,
+  }
+}
index cb9e5c5972c1845632de8f676b8e5269c56a144e..4fa6a54bac616be2dc70ea3e9dd34910b1ef3280 100644 (file)
@@ -1,27 +1,31 @@
 class nodo::utils::network inherits nodo::utils::network::minimal {
-  # Network
+  # Misc
   package { [
-    'mutt',
-    'offlineimap',
-    'newsbeuter',
-    'bogofilter',
-    'fetchmail',
-    'procmail',
-    'msmtp',
-    'notmuch-mutt',
-    'links',
-    'elinks',
-    'firefox-esr',
     'pssh',
-    'mutt-patched',
     'sslscan',
-    'muttprofile',
+  ]:
+    ensure => installed,
+  }
+
+  # Web
+  package { [
+    'links',
+    'elinks',
     'surfraw',
     'w3m',
-    'mailplate',
-    'geoip-bin',
-    'rig',
-    'sup-mail',
+    'firefox-esr',
+    'chromium',
+    'chromium-l10n',
+    'xul-ext-https-everywhere',
+    'xul-ext-refcontrol',
+    #'xul-ext-pentadactyl',
+    #'xul-ext-stylish',
+    #'maildir-utils',
+    #'libical-parser-perl',
+    #'geoip-bin',
+    #'rig',
+    #'mailplate',
+    #'sup-mail',
     #'connect-proxy',
     #'avahi-discover',
     #'mdns-scan',
@@ -35,23 +39,13 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
     ensure => installed,
   }
 
-  # Fix: ensure that fetchmail is not a service
-  service { 'fetchmail':
-    ensure  => stopped,
-    enable  => false,
-    require => Package['fetchmail'],
-  }
-
-  # Using the addon directly
-  package { [
-    'iceweasel-vimperator',
-  ]:
-    ensure => absent,
-  }
-
-  # Old packages
+  # Not in use
+  #
+  # About vimperator, use the addon directly
   # About firegpg, see http://tails.boum.org/bugs/FireGPG_may_be_unsafe/
   # About adblock plus, see http://www.theverge.com/2015/2/2/7963577/google-ads-get-through-adblock
+  # See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686087
+  #          http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705999
   package { [
     'silc',
     'twinkle',
@@ -63,98 +57,25 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
     'bittornado',
     'xul-ext-firegpg',
     'xul-ext-adblock-plus',
-  ]:
-    ensure => absent,
-  }
-
-  # Squeeze (or newer) packages
-  if $::lsbdistcodename != 'lenny' {
-    package { [ 
-      'xul-ext-monkeysphere',
-      'libical-parser-perl',
-      'maildir-utils',
-      'xul-ext-noscript',
-      'xul-ext-firebug',
-      'msva-perl',
-      'chromium-l10n',
-    ]:
-      ensure => installed,
-    }
-  }
-
-  # Not using right now
-  package { [
+    'xul-ext-cookie-monster',
+    'xul-ext-quickproxy',
     'xul-ext-torbutton',
-    'vidalia',
     'xul-ext-perspectives',
     'xul-ext-greasemonkey',
+    'iceweasel-vimperator',
+    'mozilla-firefox-adblock',
+    'vidalia',
     'torchat',
-  ]:
-    ensure => absent,
-  }
-
-  package { [
-    'chromium',
-  ]:
-    ensure  => present,
-    name    => $::lsbdistcodename ? {
-      'wheezy' => 'chromium-browser',
-      default  => 'chromium',
-    },
-  }
-
-  # Wheezy (or newer) packages
-  if $::lsbdistcodename != 'squeeze' {
-    package { [ 
-      'xul-ext-https-everywhere',
-      'xul-ext-refcontrol',
-    ]:
-      ensure => installed,
-    }
-
-    # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686087
-    #     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705999
-    package { [
-      'xul-ext-cookie-monster',
-      'xul-ext-quickproxy',
-    ]:
-      ensure => absent,
-    }
-  }
-
-  # Jessie ownwards
-  #package { [
-  #  'xul-ext-pentadactyl',
-  #  'xul-ext-stylish',
-  #]:
-  #  ensure => installed,
-  #}
-
-  # Wheezy only
-  package { [
     'gftp',
     'icedtea6-plugin',
     'luakit',
   ]:
-    ensure => $::lsbdistcodename ? {
-      'lenny' => present,
-      default => absent,
-    },
-  }
-
-  # Lenny only
-  package { [
-    'mozilla-firefox-adblock',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'lenny' => present,
-      default => absent,
-    },
+    ensure => absent,
   }
 
   # Browser alternative
   file { "/etc/alternatives/x-www-browser":
-    ensure  => "/usr/bin/iceweasel",
+    ensure  => "/usr/bin/firefox-esr",
     owner   => root,
     group   => root,
     require => Package['iceweasel'],
@@ -162,7 +83,7 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
 
   # Browser alternative: manpage
   file { "/etc/alternatives/x-www-browser.1.gz":
-    ensure  => "/usr/share/man/man1/iceweasel.1.gz",
+    ensure  => "/usr/share/man/man1/firefox-esr.1.gz",
     owner   => root,
     group   => root,
     require => Package['iceweasel'],
diff --git a/manifests/utils/network/mail.pp b/manifests/utils/network/mail.pp
new file mode 100644 (file)
index 0000000..02287c3
--- /dev/null
@@ -0,0 +1,24 @@
+class nodo::utils::network::mail {
+  # Mail
+  package { [
+    'mutt',
+    'mutt-patched',
+    'muttprofile',
+    'notmuch-mutt',
+    'offlineimap',
+    'newsbeuter',
+    'bogofilter',
+    'fetchmail',
+    'procmail',
+    'msmtp',
+  ]:
+    ensure => installed,
+  }
+
+  # Fix: ensure that fetchmail is not a service
+  service { 'fetchmail':
+    ensure  => stopped,
+    enable  => false,
+    require => Package['fetchmail'],
+  }
+}