]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Utils: more cleanup and organization
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 23:21:41 +0000 (20:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 23:21:41 +0000 (20:21 -0300)
12 files changed:
manifests/utils/bundle/poweruser.pp
manifests/utils/bundle/standard.pp
manifests/utils/development/virtual.pp
manifests/utils/interface.pp
manifests/utils/network.pp
manifests/utils/network/minimal.pp
manifests/utils/office.pp
manifests/utils/office/console.pp [new file with mode: 0644]
manifests/utils/office/gui.pp [new file with mode: 0644]
manifests/utils/web/console.pp [new file with mode: 0644]
manifests/utils/web/gui.pp [new file with mode: 0644]
manifests/utils/web/hardened.pp [moved from manifests/utils/browser/hardened.pp with 67% similarity]

index b4a20b265d33906fc5a777021ecc08e48d1316ec..51021c268542d6d918f60a547dbc1b10f7bbc952 100644 (file)
@@ -1,6 +1,7 @@
 # Bundle for power users
 class nodo::utils::bundle::poweruser {
-  include nodo::utils::office
+  include nodo::utils::office::console
+  include nodo::utils::office::gui
   include nodo::utils::interface
   include nodo::utils::development
   include nodo::utils::security
@@ -9,4 +10,5 @@ class nodo::utils::bundle::poweruser {
   include nodo::utils::multimedia
   include nodo::utils::monkeysphere
   include nodo::utils::network::mail
+  include nodo::utils::web::console
 }
index b63c976915a54dc4e6e2790cdcc6201d2222f79c..35bb586ef9cf4a16401f253f5b0438b300d384d9 100644 (file)
@@ -1,7 +1,8 @@
 # Bundle with standard packages
 class nodo::utils::bundle::pc {
-  include nodo::utils::office
+  include nodo::utils::office::gui
   include nodo::utils::printer
   include nodo::utils::network
   include nodo::utils::network::xmpp
+  include nodo::utils::web::gui
 }
index c7f930b578b4b4e17fefd04b440bf5c3dda268aa..362e8564f3afaf9e8fe404cbb2c78e7dc842e644 100644 (file)
@@ -1,21 +1,13 @@
 class nodo::utils::development::virtual {
   package { [
     'vagrant',
-    #'docker.io',
-    #'packer',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'squeeze' => absent,
-       default  => latest,
-    }
-  }
-
-  package { [
-    'virtualbox-guest-additions-iso',
     'qemu',
     'qemu-kvm',
+    'virtualbox-guest-additions-iso',
+    #'docker.io',
+    #'packer',
   ]:
-    ensure => latest,
+    ensure => present,
   }
 
   # We're not managing this package as we're favouring the
index a9f35209371e284e1555ca364d8cdee333a537e0..20207e669b3067940ec516354f1d196666ed97a9 100644 (file)
@@ -2,24 +2,24 @@ class nodo::utils::interface inherits nodo::utils::interface::console {
   # Interface
   package { [
     'awesome',
+    'awesome-extra',
     'weather-util',
     'conky',
+    'conky-all',
     'xscreensaver',
     'x11-apps',
-    'conky-all',
-    'gtk-theme-switch',
-    'gtk-smooth-themes',
-    'lxappearance',
     'xdotool',
     'xtitle',
     'xclip',
-    'pcmanfm',
-    'awesome-extra',
-    'numlockx',
-    'wmctrl',
     'xsel',
+    'numlockx',
     'autocutsel',
     'parcellite',
+    #'gtk-theme-switch',
+    #'gtk-smooth-themes',
+    #'lxappearance',
+    #'wmctrl',
+    #'pcmanfm',
     #'xinput',
     #'metar',
     #'i3',
index 4fa6a54bac616be2dc70ea3e9dd34910b1ef3280..4a311034f4f783caffb503744e4eeee12f5a7d45 100644 (file)
@@ -1,44 +1,4 @@
 class nodo::utils::network inherits nodo::utils::network::minimal {
-  # Misc
-  package { [
-    'pssh',
-    'sslscan',
-  ]:
-    ensure => installed,
-  }
-
-  # Web
-  package { [
-    'links',
-    'elinks',
-    'surfraw',
-    'w3m',
-    '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',
-    #'davfs2',
-    #'ssvnc',
-    #'mairix',
-    #'openvpn',
-    #'nicotine',
-    #'sshfs',
-  ]:
-    ensure => installed,
-  }
-
   # Not in use
   #
   # About vimperator, use the addon directly
@@ -47,11 +7,15 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
   # See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686087
   #          http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705999
   package { [
+    'gftp',
     'silc',
     'twinkle',
     'konqueror',
     'transmission',
     'amule',
+    'vidalia',
+    'torchat',
+    'luakit',
     'epiphany-browser',
     'bittorrent',
     'bittornado',
@@ -64,28 +28,8 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
     'xul-ext-greasemonkey',
     'iceweasel-vimperator',
     'mozilla-firefox-adblock',
-    'vidalia',
-    'torchat',
-    'gftp',
     'icedtea6-plugin',
-    'luakit',
   ]:
     ensure => absent,
   }
-
-  # Browser alternative
-  file { "/etc/alternatives/x-www-browser":
-    ensure  => "/usr/bin/firefox-esr",
-    owner   => root,
-    group   => root,
-    require => Package['iceweasel'],
-  }
-
-  # Browser alternative: manpage
-  file { "/etc/alternatives/x-www-browser.1.gz":
-    ensure  => "/usr/share/man/man1/firefox-esr.1.gz",
-    owner   => root,
-    group   => root,
-    require => Package['iceweasel'],
-  }
 }
index 940c90c7c531a8404ad70552b498523afff4c134..4c9e1dfd4c50f0410e2f6f91337495f1c4d566d9 100644 (file)
@@ -6,6 +6,8 @@ class nodo::utils::network::minimal inherits nodo::utils::http {
     'unison',
     'httrack',
     'zsync',
+    'pssh',
+    'sslscan',
   ]:
     ensure => installed,
   }
index d8a2b1cdc69c73fb289535393505dc0369449a2d..690bde5fc8cc47e1aba1b177faaa3ea93219c856 100644 (file)
@@ -1,32 +1,4 @@
 class nodo::utils::office {
-  # Console
-  package { [
-    'vim-gtk',
-    'sc',
-    'antiword',
-    'unrtf',
-    'pandoc',
-    'wyrd',
-    'pdfgrep',
-    'mat',
-    #'worklog',
-  ]:
-    ensure => installed,
-  }
-
-  # GUI
-  package { [
-    'gobby',
-    'libreoffice',
-    'zathura',
-    'fbreader',
-    #'pdftk',
-    #'evince',
-    #'aewan',
-  ]:
-    ensure => installed,
-  }
-
   # Not in use
   package { [
     'kalarm',
diff --git a/manifests/utils/office/console.pp b/manifests/utils/office/console.pp
new file mode 100644 (file)
index 0000000..a30aaeb
--- /dev/null
@@ -0,0 +1,15 @@
+class nodo::utils::office::console {
+  package { [
+    'vim-gtk',
+    'wyrd',
+    'sc',
+    'antiword',
+    'unrtf',
+    'pandoc',
+    'pdfgrep',
+    'mat',
+    #'worklog',
+  ]:
+    ensure => installed,
+  }
+}
diff --git a/manifests/utils/office/gui.pp b/manifests/utils/office/gui.pp
new file mode 100644 (file)
index 0000000..434dede
--- /dev/null
@@ -0,0 +1,13 @@
+class nodo::utils::office::gui {
+  package { [
+    'gobby',
+    'libreoffice',
+    'zathura',
+    'fbreader',
+    #'pdftk',
+    #'evince',
+    #'aewan',
+  ]:
+    ensure => installed,
+  }
+}
diff --git a/manifests/utils/web/console.pp b/manifests/utils/web/console.pp
new file mode 100644 (file)
index 0000000..646cb9e
--- /dev/null
@@ -0,0 +1,10 @@
+class nodo::utils::web::console {
+  package { [
+    'links',
+    'elinks',
+    'surfraw',
+    'w3m',
+  ]:
+    ensure => installed,
+  }
+}
diff --git a/manifests/utils/web/gui.pp b/manifests/utils/web/gui.pp
new file mode 100644 (file)
index 0000000..c87b16d
--- /dev/null
@@ -0,0 +1,45 @@
+class nodo::utils::web::gui {
+  # Web: GUI
+  package { [
+    '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',
+    #'davfs2',
+    #'ssvnc',
+    #'mairix',
+    #'openvpn',
+    #'nicotine',
+    #'sshfs',
+  ]:
+    ensure => installed,
+  }
+
+  # Browser alternative
+  file { "/etc/alternatives/x-www-browser":
+    ensure  => "/usr/bin/firefox-esr",
+    owner   => root,
+    group   => root,
+    require => Package['firefox-esr'],
+  }
+
+  # Browser alternative: manpage
+  file { "/etc/alternatives/x-www-browser.1.gz":
+    ensure  => "/usr/share/man/man1/firefox-esr.1.gz",
+    owner   => root,
+    group   => root,
+    require => Package['firefox-esr'],
+  }
+}
similarity index 67%
rename from manifests/utils/browser/hardened.pp
rename to manifests/utils/web/hardened.pp
index 47133e1222b3d8ccf12b0cfe61fdecc33a577ff1..e5582d6d2e6fdb3317a063dd49a419224c89241a 100644 (file)
@@ -1,4 +1,4 @@
-class nodo::utils::browser::hardened {
+class nodo::utils::web::hardened inherits nodo::utils::web::gui {
   package { [ 
     'torbrowser-launcher',
     'xul-ext-requestpolicy',