]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Utils: reorder and cleanup
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 20:49:56 +0000 (17:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Sep 2016 20:49:56 +0000 (17:49 -0300)
24 files changed:
manifests/utils/base.pp
manifests/utils/development.pp
manifests/utils/development/git.pp
manifests/utils/development/ide.pp
manifests/utils/development/puppet.pp
manifests/utils/development/virtual.pp
manifests/utils/finance.pp [new file with mode: 0644]
manifests/utils/interface.pp
manifests/utils/latex.pp [new file with mode: 0644]
manifests/utils/multimedia.pp
manifests/utils/network.pp
manifests/utils/network/analyzer.pp
manifests/utils/network/irssi.pp
manifests/utils/network/wicd.pp
manifests/utils/network/xmpp.pp [new file with mode: 0644]
manifests/utils/office.pp
manifests/utils/personal/debian.pp
manifests/utils/personal/poweruser.pp [moved from manifests/utils/personal/bundle.pp with 64% similarity]
manifests/utils/personal/standard.pp [new file with mode: 0644]
manifests/utils/security.pp
manifests/utils/security/base.pp
manifests/utils/storage/archive.pp
manifests/utils/suckless.pp
manifests/utils/web.pp

index b17e5743c4309389937ddf7d6ac6ab1ba14b519e..27629491c94625c1722c63ae5231c2d8b95f8597 100644 (file)
@@ -17,7 +17,6 @@ class nodo::utils::base {
     'lsof',
     'wipe',
     'vrms',
-    'nsca-client',
     'uuid-runtime',
     'multitail',
     'bash-completion',
@@ -32,6 +31,7 @@ class nodo::utils::base {
     'logcheck-database',
     'denyhosts',
     'logwatch',
+    'nsca-client',
   ]:
     ensure => absent,
   }
index e0a157f0f3276d751a10f227f6f932198ff1351e..cb5b1e0d43fe280eeaae7db0893f662fd3b68bf3 100644 (file)
@@ -2,7 +2,6 @@ class nodo::utils::development {
   include nodo::utils::development::ide
   include nodo::utils::development::debian
   include nodo::utils::development::git
-  include nodo::utils::development::vcs
   include nodo::utils::development::python
   include nodo::utils::development::puppet
   include nodo::utils::development::system
index 7052d963b47a9b3b68aad374b462b0d4ba47b4f0..e96c5479547ec19c3225ab34a0da05494f0a5888 100644 (file)
@@ -1,36 +1,27 @@
 class nodo::utils::development::git {
   package { [
-    'gitk',
-    'git-gui',
     'tig',
-    'git-cola',
-    'legit',
     'git-extras',
     'git-flow',
-    'topgit',
-    'git-remote-gcrypt',
+    #'legit',
+    #'topgit',
+    #'git-remote-gcrypt',
+    #'git-cola',
+    #'gitk',
+    #'git-gui',
+    #'git-stuff',
   ]:
     ensure => installed,
   }
 
   # Newer packages
-  package { [
-    'git-crypt',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'stretch' => present,
-      'sid'     => present,
-      default   => absent,
-    }
-  }
-
-  # Wheezy only
-  package { [
-    'git-stuff',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'wheezy' => present,
-      default  => absent,
-    },
-  }
+  #package { [
+  #  'git-crypt',
+  #]:
+  #  ensure => $::lsbdistcodename ? {
+  #    'stretch' => present,
+  #    'sid'     => present,
+  #    default   => absent,
+  #  }
+  #}
 }
index 9928da5208640983888698bcde9bcb5a2e9e4362..2e89273c7b9157fa979c0277637c3eda8b740a00 100644 (file)
@@ -7,23 +7,17 @@ class nodo::utils::development::ide {
     'markdown',
     'python-sphinx',
     'pelican',
+    #'ttyrec',
+    #'bugs-everywhere',
+    #'silversearcher-ag',
+    #'ticgit',
+    #'ticgitweb',
+    #'ditz',
+    #'pnopaste-cli',
+    #'exuberant-ctags',
+    #'doxygen',
+    #'agave',
   ]:
     ensure => installed,
   }
-
-  # Not in use
-  package { [
-    'ttyrec',
-    'bugs-everywhere',
-    'silversearcher-ag',
-    'ticgit',
-    'ticgitweb',
-    'ditz',
-    'pnopaste-cli',
-    'exuberant-ctags',
-    'doxygen',
-    'agave',
-  ]:
-    ensure => absent,
-  }
 }
index 0d823a753dfc649a1ecc9a95038eeef308de97c4..7bda1c50c9613fea18bec1a36b1100081398e00e 100644 (file)
@@ -1,16 +1,8 @@
 class nodo::utils::development::puppet {
   package { [
     'puppet-lint',
-  ]:
-    ensure => installed,
-  }
-
-  package { [
     'ruby-hiera-puppet',
   ]:
-    ensure => $::lsbdistcodename ? {
-      'wheezy' => present,
-      default  => absent,
-    },
+    ensure => installed,
   }
 }
index dcdc9d48844ae4e091cd7fe9e55b28895d97d67e..c7f930b578b4b4e17fefd04b440bf5c3dda268aa 100644 (file)
@@ -1,6 +1,8 @@
 class nodo::utils::development::virtual {
   package { [
     'vagrant',
+    #'docker.io',
+    #'packer',
   ]:
     ensure => $::lsbdistcodename ? {
       'squeeze' => absent,
@@ -16,22 +18,8 @@ class nodo::utils::development::virtual {
     ensure => latest,
   }
 
-  # TODO: wait for jessie release
-  #package { [
-  #  'docker.io',
-  #]:
-  #  ensure => installed,
-  #}
-
-  # TODO: wait for stretch release
-  #package { [
-  #  'packer',
-  #]:
-  #  ensure => installed,
-  #}
-
-  # TODO: We're not managing this package as we're favouring the
-  #       wheezy-backports virtualbox which doesn't needs it.
+  # We're not managing this package as we're favouring the
+  # virtualbox package which doesn't needs it.
   #package { [
   #  'virtualbox-fuse',
   #]:
diff --git a/manifests/utils/finance.pp b/manifests/utils/finance.pp
new file mode 100644 (file)
index 0000000..63a9911
--- /dev/null
@@ -0,0 +1,11 @@
+class nodo::utils::finance {
+  # Finance
+  package { [
+    'gnucash',
+    'ledger',
+    'clipf',
+    'misery',
+  ]:
+    ensure  => present,
+  }
+}
index 4367627bf962aa7f884754e9dda9058cc4f3d0d3..a9f35209371e284e1555ca364d8cdee333a537e0 100644 (file)
@@ -2,18 +2,13 @@ class nodo::utils::interface inherits nodo::utils::interface::console {
   # Interface
   package { [
     'awesome',
-    'eterm',
     'weather-util',
-    'gnome-terminal',
     'conky',
-    'xterm',
     'xscreensaver',
-    'thunar',
     'x11-apps',
     'conky-all',
     'gtk-theme-switch',
     'gtk-smooth-themes',
-    'rxvt',
     'lxappearance',
     'xdotool',
     'xtitle',
@@ -21,11 +16,18 @@ class nodo::utils::interface inherits nodo::utils::interface::console {
     'pcmanfm',
     'awesome-extra',
     'numlockx',
-    'metar',
     'wmctrl',
     'xsel',
-    'xinput',
-    'i3',
+    'autocutsel',
+    'parcellite',
+    #'xinput',
+    #'metar',
+    #'i3',
+    #'rxvt',
+    #'thunar',
+    #'xterm',
+    #'eterm',
+    #'gnome-terminal',
   ]:
     ensure => installed,
   }
@@ -39,30 +41,18 @@ class nodo::utils::interface inherits nodo::utils::interface::console {
     ensure => installed,
   }
 
+  # We need a workaround for this:
+  # https://bbs.archlinux.org/viewtopic.php?id=50647
+  # http://linuxforcynics.com/how-to/using-rxvt-unicode-with-screen
   package { [
-    'rxvt-unicode',
+    'rxvt-unicode-256color',
   ]:
     ensure => present,
-    # We need a workaround for this:
-    # https://bbs.archlinux.org/viewtopic.php?id=50647
-    # http://linuxforcynics.com/how-to/using-rxvt-unicode-with-screen
-    name   => $lsbdistcodename ? {
-      'squeeze' => 'rxvt-unicode',
-      default   => 'rxvt-unicode-256color',
-    }
-  }
-
-  package { [
-    'terminology',
-  ]:
-    ensure  => $::lsbdistcodename ? {
-      'wheezy' => absent,
-      default  => present,
-    },
   }
 
   # Old stuff
   package { [
+    'terminology',
     'conkyforecast',
     'fluxbox',
   ]:
diff --git a/manifests/utils/latex.pp b/manifests/utils/latex.pp
new file mode 100644 (file)
index 0000000..8b29723
--- /dev/null
@@ -0,0 +1,13 @@
+class nodo::utils::latex {
+  # LaTeX
+  package { [
+    'texlive-latex-base',
+    'texlive-latex-recommended',
+    'texlive-latex-extra',
+    'texlive-fonts-extra',
+    'vim-latexsuite',
+    'pdfjam',
+  ]:
+    ensure => present,
+  }
+}
index c99a896bf2105d8be8068b4beae2f6c88610b58f..e4b23b5397249af16485a3cc4fc0d4379d2c105f 100644 (file)
@@ -2,74 +2,49 @@
 class nodo::utils::multimedia inherits nodo::utils::multimedia::minimal {
   # Multimedia
   package { [
-    'alsa-tools-gui',
-    'mp3blaster',
-    'netpbm',
-    'audacious',
-    'qjackctl',
     'gimp',
-    'xine-ui',
-    'v4l-utils',
     'inkscape',
-    'easytag',
-    'gstreamer-tools',
-    'vlc',
-    'audacity',
-    'opencubicplayer',
-    'libasound2-plugins',
-    'lame',
     'geeqie',
     'cbrpager',
-    'llgal',
-    'darksnow',
     'pavucontrol',
-    'picard',
-    'ffmpeg2theora',
-    'oggfwd',
     'jhead',
-    'gxine',
-    'totem',
-    'faad',
-    'gmtp',
-    'gphotofs',
-    'jmtpfs',
+    #'alsa-tools-gui',
+    #'v4l-utils',
+    #'gstreamer-tools',
+    #'mp3blaster',
+    #'vlc',
+    #'libasound2-plugins',
+    #'lame',
+    #'llgal',
+    #'darksnow',
+    #'ffmpeg2theora',
+    #'netpbm',
+    #'xine-ui',
+    #'audacious',
+    #'qjackctl',
+    #'easytag',
+    #'audacity',
+    #'opencubicplayer',
+    #'picard',
+    #'gxine',
+    #'oggfwd',
+    #'totem',
+    #'faad',
+    #'gmtp',
+    #'gphotofs',
+    #'jmtpfs',
+    #'landell',
+    #'gqview',
+    #'mencoder',
+    #'tucan',
+    #'orpheus',
+    #'amarok',
+    #'moc',
+    #'cmus',
   ]:
     ensure => installed,
   }
 
-  # Old stuff
-  package { [
-    'amarok',
-    'moc',
-    'cmus',
-  ]:
-    ensure => purged,
-  }
-
-  # Squeeze only
-  package { [
-    'tucan',
-    'orpheus',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'squeeze' => installed,
-      default   => purged,
-    }
-  }
-
-  # Wheezy only
-  package { [
-    'landell',
-    'gqview',
-    'mencoder',
-  ]:
-    ensure => $::lsbdistcodename ? {
-      'squeeze' => absent,
-      'wheezy'  => installed,
-      default   => absent,
-    }
-  }
-
   # Flash implementation (deprecated)
   #$flash = hiera('nodo::utils::multimedia::flash', 'gnash')
   #class { "nodo::utils::multimedia::${flash}": }
index ac14727c6e0e5663025e83928b0265e0424a9864..cb9e5c5972c1845632de8f676b8e5269c56a144e 100644 (file)
@@ -4,39 +4,33 @@ class nodo::utils::network inherits nodo::utils::network::minimal {
     'mutt',
     'offlineimap',
     'newsbeuter',
-    'nicotine',
-    'sshfs',
     'bogofilter',
     'fetchmail',
     'procmail',
     'msmtp',
-    'mairix',
     'notmuch-mutt',
     'links',
     'elinks',
-    'iceweasel',
-    'openvpn',
+    'firefox-esr',
     'pssh',
     'mutt-patched',
-    'pidgin',
-    'pidgin-encryption',
-    'pidgin-openpgp',
-    'pidgin-otr',
-    'pidgin-privacy-please',
-    'pidgin-plugin-pack',
     'sslscan',
     'muttprofile',
-    'connect-proxy',
-    'avahi-discover',
-    'mdns-scan',
-    'davfs2',
     'surfraw',
     'w3m',
     'mailplate',
     'geoip-bin',
-    'ssvnc',
     'rig',
     'sup-mail',
+    #'connect-proxy',
+    #'avahi-discover',
+    #'mdns-scan',
+    #'davfs2',
+    #'ssvnc',
+    #'mairix',
+    #'openvpn',
+    #'nicotine',
+    #'sshfs',
   ]:
     ensure => installed,
   }
index 670ffcb7688aba113b8055b63e619ed32acea57e..c3f4f41024184cd561047a7586a7ced7a8ff984c 100644 (file)
@@ -7,17 +7,9 @@ class nodo::utils::network::analyzer {
     'tcptraceroute',
     'tcpstat',
     'iperf',
-  ]:
-    ensure => installed,
-  }
-
-  package { [
     'zmap',
   ]:
-    ensure  => $::lsbdistcodename ? {
-      'squeeze' => absent,
-      default   => present,
-    }
+    ensure => installed,
   }
 
   # https://www.linode.com/docs/networking/diagnosing-network-issues-with-mtr
index ac2b59ab60c926a8b50a40a955365b5b33c3f10d..478416128354cb3ea3aa2b112f0a6b26aa697603 100644 (file)
@@ -11,7 +11,7 @@ class nodo::utils::network::irssi {
     'ttytter',
     'libterm-readkey-perl',
   ]:
-    ensure => present,
+    ensure => absent,
   }
 
   package { [
@@ -33,10 +33,6 @@ class nodo::utils::network::irssi {
   package { [
     'irssi-plugin-silc',
   ]:
-    ensure => $::lsbdistcodename ? {
-      'wheezy' => absent,
-      'jessie' => absent,
-      default  => absent,
-    }
+    ensure => absent,
   }
 }
index 898e043fe939fab8ca10ab9bbcfeab05b0170b55..065d5bb809e41c00c74eae368314507739a0c91f 100644 (file)
@@ -2,7 +2,7 @@ class nodo::utils::network::wicd {
   package { [
     'wicd',
     'wicd-curses',
-    'wicd-gtk',
+    #'wicd-gtk',
   ]:
     ensure => installed,
   }
diff --git a/manifests/utils/network/xmpp.pp b/manifests/utils/network/xmpp.pp
new file mode 100644 (file)
index 0000000..7c019cc
--- /dev/null
@@ -0,0 +1,12 @@
+class nodo::utils::network::xmpp {
+  package { [
+    'pidgin',
+    'pidgin-encryption',
+    'pidgin-openpgp',
+    'pidgin-otr',
+    'pidgin-privacy-please',
+    'pidgin-plugin-pack',
+  ]:
+    ensure => absent,
+  }
+}
index 978efe8551032774066cdfaa01c869c49d8d1294..d8a2b1cdc69c73fb289535393505dc0369449a2d 100644 (file)
@@ -1,47 +1,30 @@
 class nodo::utils::office {
-  # Office
+  # Console
   package { [
     'vim-gtk',
-    'gobby',
-    'libreoffice',
     'sc',
     'antiword',
     'unrtf',
     'pandoc',
     'wyrd',
-    'gnucash',
-    'worklog',
-    'pdftk',
-    'fbreader',
     'pdfgrep',
     'mat',
-    'evince',
-    'aewan',
-    'autocutsel',
-    'parcellite',
+    #'worklog',
   ]:
     ensure => installed,
   }
 
-  # Finance
+  # GUI
   package { [
-    'ledger',
-    'clipf',
-    'misery',
-  ]:
-    ensure  => present,
-  }
-
-  # LaTeX
-  package { [
-    'texlive-latex-base',
-    'texlive-latex-recommended',
-    'texlive-latex-extra',
-    'texlive-fonts-extra',
-    'vim-latexsuite',
-    'pdfjam',
+    'gobby',
+    'libreoffice',
+    'zathura',
+    'fbreader',
+    #'pdftk',
+    #'evince',
+    #'aewan',
   ]:
-    ensure => present,
+    ensure => installed,
   }
 
   # Not in use
index ea8550a4a70b5a34353d0f5b3ec4773fd2410dd1..91f6193ad0850d3d12d3cb6925c79e7453867777 100644 (file)
@@ -10,7 +10,7 @@ class nodo::utils::personal::debian {
     'libpam-mount',
     'gawk',
     'laptop-detect',
-    'mtp-tools',
+    #'mtp-tools',
   ]:
     ensure => installed,
   }
@@ -23,7 +23,7 @@ class nodo::utils::personal::debian {
     'funcoeszz',
     'detox',
   ]:
-    ensure => installed,
+    ensure => absent,
   }
 
   # Console window managers
@@ -31,7 +31,7 @@ class nodo::utils::personal::debian {
   #  'screenie',
   #  'iselect',
   #  'byobu',
-  # ]:
+  #]:
   #  ensure => installed,
   #}
 
similarity index 64%
rename from manifests/utils/personal/bundle.pp
rename to manifests/utils/personal/poweruser.pp
index 695bfa4e7dfe57c68a425821a80b394e2bd49f97..db81a42eb021ab21a1cc3bde2261a3dcb0c3e243 100644 (file)
@@ -1,12 +1,10 @@
-class nodo::utils::personal::bundle {
-  include nodo::utils::suckless
+# Bundle for power users
+class nodo::utils::personal::poweruser {
   include nodo::utils::office
-  include nodo::utils::printer
   include nodo::utils::interface
-  include nodo::utils::network
   include nodo::utils::development
   include nodo::utils::security
-  include nodo::utils::multimedia
-  include nodo::utils::java
+  include nodo::utils::network
   include nodo::utils::storage::archive
+  include nodo::utils::multimedia
 }
diff --git a/manifests/utils/personal/standard.pp b/manifests/utils/personal/standard.pp
new file mode 100644 (file)
index 0000000..73ad271
--- /dev/null
@@ -0,0 +1,7 @@
+# Bundle with standard packages
+class nodo::utils::personal::pc {
+  include nodo::utils::office
+  include nodo::utils::printer
+  include nodo::utils::network
+  include nodo::utils::network::xmpp
+}
index 953581cb74513a1f8c6c182c4dadc1aad5fc5bd2..7044dd1b059b185290ee8946f02d145500664e9c 100644 (file)
@@ -1,47 +1,29 @@
 class nodo::utils::security inherits nodo::utils::security::base {
   # Security
   package { [
-    'apg',
-    'gnupg-agent',
-    'makepasswd',
     'pwgen',
-    'fpm2',
-    'encfs',
     'signing-party',
     'libnss3-tools',
     'ssss',
-    'libgfshare-bin',
-    'pass',
     'revelation',
     'onetime',
     'gnupg2',
-    'monkeysign',
     'gnutls-bin',
+    'gnupg-agent',
+    #'kedpm',
+    #'kedpm-gtk',
+    #'apg',
+    #'makepasswd',
+    #'keepassx',
+    #'monkeysign',
+    #'fpm2',
+    #'encfs',
+    #'libgfshare-bin',
+    #'pass',
+    #'harden',
+    #'paperkey',
+    #'keyringer',
   ]:
     ensure => installed,
   }
-
-  # Soon :)
-  #package { [
-  #  'keyringer',
-  #]:
-  #  ensure => present,
-  #}
-
-  # To be evaluated
-  #package { [
-  #  'harden',
-  #  'paperkey',
-  #]:
-  #  ensure  => present,
-  #}
-
-  if $::lsbdistcodename != 'squeeze' {
-    package { [
-      'kedpm',
-      'kedpm-gtk',
-    ]:
-      ensure => installed,
-    }
-  }
 }
index ab376ea8e69d87f289fd80c030ab5fb579e429dc..b639e8c16a3a592dadb2d8c404f8d040a78cdb71 100644 (file)
@@ -1,15 +1,9 @@
 class nodo::utils::security::base {
   package { [
     'keychain',
-   'gnupg-curl',
+    'gnupg-curl',
+    #'hopenpgp-tools',
   ]:
     ensure => present,
   }
-
-  # TODO: currently just available on jessie onwards
-  #package { [
-  #  'hopenpgp-tools',
-  #]:
-  #  ensure => present,
-  #}
 }
index cd670dcfb0b63d01bfdc347ab3d9f5f6e450c573..4082fe2c5e6a076e0363c0bb5e2fdbc111521675 100644 (file)
@@ -5,12 +5,13 @@ class nodo::utils::storage::archive {
     ensure => latest,
   }
 
+  # Not in use
   package { [
     'jigdo-file',
     'fdupes',
     'gddrescue',
   ]:
-    ensure => installed,
+    ensure => absent,
   }
 
   package { [
index dc27fa0e666a23a68d3c60c6658915976df1f7aa..b17dc34816d783fa655e8a359b49ea8f3b05d4ad 100644 (file)
@@ -8,7 +8,6 @@ class nodo::utils::suckless {
     'xvt',
     'uzbl',
     'xxxterm',
-    'zathura',
     'stterm',
   ]:
     ensure => installed,
index cbce7d2164d3eaaac2cdcd95c816c36a9c864bcf..1e5ad536da085f732086d7de955ca7a403ebe323 100644 (file)
@@ -1,9 +1,6 @@
 # Common utilities for web
 class nodo::utils::web inherits nodo::utils::http {
   package { [
-    'ffmpeg',
-    'flvtool2',
-    'rake',
     'libxml2',
     'libxml2-dev',
     'libxslt1-dev',
@@ -13,6 +10,9 @@ class nodo::utils::web inherits nodo::utils::http {
     'apache2-prefork-dev',
     'goaccess',
     'apachetop',
+    #'ffmpeg',
+    #'flvtool2',
+    #'rake',
   ]:
     ensure => installed,
   }