From a0139760cc478d3ff81aa9581245415097942d39 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Dec 2011 21:42:53 -0200 Subject: Adding more classes for utilities --- manifests/subsystems/utils/debian.pp | 158 +----------------------------- manifests/subsystems/utils/development.pp | 10 ++ manifests/subsystems/utils/interface.pp | 8 ++ manifests/subsystems/utils/java.pp | 14 +++ manifests/subsystems/utils/laptop.pp | 10 ++ manifests/subsystems/utils/multimedia.pp | 23 ++++- manifests/subsystems/utils/network.pp | 58 +++++++++++ manifests/subsystems/utils/office.pp | 11 +++ manifests/subsystems/utils/personal.pp | 11 +++ manifests/subsystems/utils/ruby.pp | 42 ++++++++ manifests/subsystems/utils/security.pp | 14 +++ 11 files changed, 205 insertions(+), 154 deletions(-) create mode 100644 manifests/subsystems/utils/development.pp create mode 100644 manifests/subsystems/utils/interface.pp create mode 100644 manifests/subsystems/utils/java.pp create mode 100644 manifests/subsystems/utils/network.pp create mode 100644 manifests/subsystems/utils/office.pp create mode 100644 manifests/subsystems/utils/ruby.pp create mode 100644 manifests/subsystems/utils/security.pp (limited to 'manifests/subsystems/utils') diff --git a/manifests/subsystems/utils/debian.pp b/manifests/subsystems/utils/debian.pp index 727e5c6..1401aea 100644 --- a/manifests/subsystems/utils/debian.pp +++ b/manifests/subsystems/utils/debian.pp @@ -1,167 +1,19 @@ class utils::personal::debian { # System - package { [ 'libpam-mount', 'ecryptfs-utils', 'openjdk-6-jre', 'gawk', - 'sun-java6-jre', 'laptop-detect', 'syslinux' ]: + package { [ 'libpam-mount', 'ecryptfs-utils', 'gawk', + 'laptop-detect', 'syslinux' ]: ensure => installed, } - # Multimedia - package { [ 'alsa-tools-gui', 'mp3blaster', 'alsa-utils', 'netpbm', - 'gqview', 'mpg123', 'audacious', 'qjackctl', - 'gimp', 'xine-ui', 'amarok', 'wodim', - 'genisoimage', 'dvd+rw-tools', 'inkscape', 'jhead', - 'easytag', 'flashplugin-nonfree', 'vlc', 'audacity', - 'opencubicplayer', 'moc', 'cmus', 'orpheus', - 'cbrpager', 'llgal', 'darksnow', 'mplayer' ]: - ensure => installed, - } - - # Interface - package { [ 'awesome', 'eterm', 'fluxbox', 'gdm', 'conky', - 'xterm', 'bash-completion', 'xfonts-terminus', 'xscreensaver', 'rxvt-unicode', - 'mc', 'gtk-theme-switch', 'gtk-smooth-themes', 'rxvt' ]: - ensure => installed, - } - - # Office - package { [ 'wyrd', 'vim-gtk', 'gobby', - 'sc', 'antiword', 'broffice.org', - 'kalarm', 'texlive-latex-base', 'texlive-latex-recommended', - 'texlive-latex-extra', 'pandoc', 'gnumeric', - 'cups-client', 'hplip', 'cups-bsd', - 'gnucash', 'worklog' ]: - ensure => installed, - } - - # Network - package { [ 'mutt', 'irssi', 'offlineimap', 'epiphany-browser', - 'newsbeuter', 'bitlbee', 'nicotine', 'silc', - 'irssi-plugin-silc', 'bogofilter', 'fetchmail', 'procmail', - 'msmtp', 'mairix', 'konqueror', 'bittorrent', - 'irssi-scripts', 'links', 'twinkle', 'bittornado', - 'rtorrent', 'iceweasel', 'irssi-plugin-otr', 'transmission', - 'openvpn', 'amule', 'pssh', 'pidgin', - 'pidgin-encryption', 'pidgin-openpgp', 'pidgin-otr', 'pidgin-privacy-please', - 'pidgin-plugin-pack', 'sslscan' ]: - ensure => installed, - } - - # Security - package { [ 'apg', 'gnupg-agent', 'makepasswd', 'pwgen', 'fpm2', 'encfs', - 'signing-party', 'libnss3-tools' ]: - ensure => installed, - } - - # Development - package { [ 'debhelper', 'gitk', 'git-gui', 'subversion', 'python-stdeb', - 'fakeroot', 'dupload', 'autotools-dev', 'dh-make', 'doxygen', - 'tig', 'mercurial', 'exuberant-ctags', 'reportbug', 'debian-keyring', - 'devscripts', 'pbuilder', 'build-essential', 'pnopaste-cli', 'agave', - 'cdbs', 'dh-buildinfo', 'quilt' ]: - ensure => installed, - } - - # Other + # Misc package { [ 'fortunes-br', 'unrar', 'recode', 'figlet', 'p7zip-full', 'unison', 'funcoeszz' ]: ensure => installed, } # Custom: might not be available in the official repositories - package { [ 'kedpm', 'torchat' ]: - ensure => installed, - } - - # Lenny only - package { [ 'mozilla-firefox-adblock' ]: - ensure => $lsbdistcodename ? { - 'lenny' => present, - default => absent, - }, - } - - # Squeeze (or newer) packages - if $lsbdistcodename != 'lenny' { - package { [ 'xul-ext-monkeysphere', 'chromium-browser', 'libical-parser-perl', - 'maildir-utils', 'icedtea6-plugin', ]: - ensure => installed, - } - - # See http://tails.boum.org/bugs/FireGPG_may_be_unsafe/ - package { 'xul-ext-firegpg': - ensure => absent, - } - } - - # Gem packages - package { 'capistrano': - ensure => installed, - provider => gem, - require => Package['rubygems'], - } - - # Gem packages - package { 'slideshow': - ensure => installed, - provider => gem, - require => Package['rubygems'], - } - - if !defined(Package['ruby']) { - package { 'ruby': + if $nodo_use_custom_packages == true { + package { [ 'kedpm', 'torchat' ]: ensure => installed, } } - - if !defined(Package['rubygems']) { - package { 'rubygems': - ensure => installed, - require => Package['ruby'], - } - } - - if !defined(Package['ruby-dev']) { - package { 'ruby-dev': - ensure => installed, - require => Package['ruby'], - } - } - - if !defined(Package['libgpgme-ruby1.8']) { - package { 'libgpgme-ruby1.8': - ensure => installed, - require => Package['ruby'], - } - } - - # Flash alternative - file { "/etc/alternatives/flash-mozilla.so": - ensure => "/usr/lib/flashplugin-nonfree/libflashplayer.so", - owner => root, - group => root, - require => Package['flashplugin-nonfree'], - } - - # Browser alternative - file { "/etc/alternatives/x-www-browser": - ensure => "/usr/bin/iceweasel", - owner => root, - group => root, - require => Package['iceweasel'], - } - - # Browser alternative: manpage - file { "/etc/alternatives/x-www-browser.1.gz": - ensure => "/usr/share/man/man1/iceweasel.1.gz", - owner => root, - group => root, - require => Package['iceweasel'], - } - - # Java alternative - file { "/etc/alternatives/java": - ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java", - owner => root, - group => root, - require => Package['sun-java6-jre'], - } } diff --git a/manifests/subsystems/utils/development.pp b/manifests/subsystems/utils/development.pp new file mode 100644 index 0000000..a933910 --- /dev/null +++ b/manifests/subsystems/utils/development.pp @@ -0,0 +1,10 @@ +class utils::development { + # Development + package { [ 'debhelper', 'gitk', 'git-gui', 'subversion', 'python-stdeb', + 'fakeroot', 'dupload', 'autotools-dev', 'dh-make', 'doxygen', + 'tig', 'mercurial', 'exuberant-ctags', 'reportbug', 'debian-keyring', + 'devscripts', 'pbuilder', 'build-essential', 'pnopaste-cli', 'agave', + 'cdbs', 'dh-buildinfo', 'quilt' ]: + ensure => installed, + } +} diff --git a/manifests/subsystems/utils/interface.pp b/manifests/subsystems/utils/interface.pp new file mode 100644 index 0000000..938b87f --- /dev/null +++ b/manifests/subsystems/utils/interface.pp @@ -0,0 +1,8 @@ +class utils::interface { + # Interface + package { [ 'awesome', 'eterm', 'fluxbox', 'gdm', 'conky', + 'xterm', 'bash-completion', 'xfonts-terminus', 'xscreensaver', 'rxvt-unicode', + 'mc', 'gtk-theme-switch', 'gtk-smooth-themes', 'rxvt' ]: + ensure => installed, + } +} diff --git a/manifests/subsystems/utils/java.pp b/manifests/subsystems/utils/java.pp new file mode 100644 index 0000000..903bc73 --- /dev/null +++ b/manifests/subsystems/utils/java.pp @@ -0,0 +1,14 @@ +class utils::java { + # Java + package { [ 'sun-java6-jre', 'openjdk-6-jre' ]: + ensure => installed, + } + + # Java alternative + file { "/etc/alternatives/java": + ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java", + owner => root, + group => root, + require => Package['sun-java6-jre'], + } +} diff --git a/manifests/subsystems/utils/laptop.pp b/manifests/subsystems/utils/laptop.pp index 3c39cec..f3be2bc 100644 --- a/manifests/subsystems/utils/laptop.pp +++ b/manifests/subsystems/utils/laptop.pp @@ -1,5 +1,15 @@ # Common utilities for laptop class utils::laptop { + case $operatingsystem { + debian: { + include utils::laptop::debian + } + default: { } + } +} + +# Common utilities for debian laptops +class utils::laptop::debian { package { [ 'cpufrequtils', 'module-assistant', 'wireless-tools', 'wpasupplicant', 'ekiga', 'gnome', 'revelation', 'wicd', 'wicd-curses', diff --git a/manifests/subsystems/utils/multimedia.pp b/manifests/subsystems/utils/multimedia.pp index c4322b3..91a880d 100644 --- a/manifests/subsystems/utils/multimedia.pp +++ b/manifests/subsystems/utils/multimedia.pp @@ -1,5 +1,5 @@ # Multimedia utilities -class utils::multimedia { +class utils::multimedia::studio { package { [ 'ardour', 'hydrogen', ]: ensure => $lsbdistcodename ? { 'lenny' => absent, @@ -7,3 +7,24 @@ class utils::multimedia { } } } + +class utils::multimedia { + # Multimedia + package { [ 'alsa-tools-gui', 'mp3blaster', 'alsa-utils', 'netpbm', + 'gqview', 'mpg123', 'audacious', 'qjackctl', + 'gimp', 'xine-ui', 'amarok', 'wodim', + 'genisoimage', 'dvd+rw-tools', 'inkscape', 'jhead', + 'easytag', 'flashplugin-nonfree', 'vlc', 'audacity', + 'opencubicplayer', 'moc', 'cmus', 'orpheus', + 'cbrpager', 'llgal', 'darksnow', 'mplayer' ]: + ensure => installed, + } + + # Flash alternative + file { "/etc/alternatives/flash-mozilla.so": + ensure => "/usr/lib/flashplugin-nonfree/libflashplayer.so", + owner => root, + group => root, + require => Package['flashplugin-nonfree'], + } +} diff --git a/manifests/subsystems/utils/network.pp b/manifests/subsystems/utils/network.pp new file mode 100644 index 0000000..5671f95 --- /dev/null +++ b/manifests/subsystems/utils/network.pp @@ -0,0 +1,58 @@ +class utils::network { + # Network + package { [ 'mutt', 'irssi', 'offlineimap', 'epiphany-browser', + 'newsbeuter', 'bitlbee', 'nicotine', 'silc', + 'irssi-plugin-silc', 'bogofilter', 'fetchmail', 'procmail', + 'msmtp', 'mairix', 'konqueror', 'bittorrent', + 'irssi-scripts', 'links', 'twinkle', 'bittornado', + 'rtorrent', 'iceweasel', 'irssi-plugin-otr', 'transmission', + 'openvpn', 'amule', 'pssh', 'pidgin', + 'pidgin-encryption', 'pidgin-openpgp', 'pidgin-otr', 'pidgin-privacy-please', + 'pidgin-plugin-pack', 'sslscan' ]: + ensure => installed, + } + + # Custom: might not be available in the official repositories + if $nodo_use_custom_packages == true { + package { [ 'torchat' ]: + ensure => installed, + } + } + + # Squeeze (or newer) packages + if $lsbdistcodename != 'lenny' { + package { [ 'xul-ext-monkeysphere', 'chromium-browser', 'libical-parser-perl', + 'maildir-utils', 'icedtea6-plugin', ]: + ensure => installed, + } + + # See http://tails.boum.org/bugs/FireGPG_may_be_unsafe/ + package { 'xul-ext-firegpg': + ensure => absent, + } + } + + # Lenny only + package { [ 'mozilla-firefox-adblock' ]: + ensure => $lsbdistcodename ? { + 'lenny' => present, + default => absent, + }, + } + + # Browser alternative + file { "/etc/alternatives/x-www-browser": + ensure => "/usr/bin/iceweasel", + owner => root, + group => root, + require => Package['iceweasel'], + } + + # Browser alternative: manpage + file { "/etc/alternatives/x-www-browser.1.gz": + ensure => "/usr/share/man/man1/iceweasel.1.gz", + owner => root, + group => root, + require => Package['iceweasel'], + } +} diff --git a/manifests/subsystems/utils/office.pp b/manifests/subsystems/utils/office.pp new file mode 100644 index 0000000..ba87d17 --- /dev/null +++ b/manifests/subsystems/utils/office.pp @@ -0,0 +1,11 @@ +class utils::office { + # Office + package { [ 'wyrd', 'vim-gtk', 'gobby', + 'sc', 'antiword', 'broffice.org', + 'kalarm', 'texlive-latex-base', 'texlive-latex-recommended', + 'texlive-latex-extra', 'pandoc', 'gnumeric', + 'cups-client', 'hplip', 'cups-bsd', + 'gnucash', 'worklog' ]: + ensure => installed, + } +} diff --git a/manifests/subsystems/utils/personal.pp b/manifests/subsystems/utils/personal.pp index 398b12c..a63548f 100644 --- a/manifests/subsystems/utils/personal.pp +++ b/manifests/subsystems/utils/personal.pp @@ -7,3 +7,14 @@ class utils::personal { default: { } } } + +class utils::personal::bundle { + include utils::office + include utils::interface + include utils::network + include utils::development + include utils::security + include utils::multimedia + include utils::ruby + include utils::java +} diff --git a/manifests/subsystems/utils/ruby.pp b/manifests/subsystems/utils/ruby.pp new file mode 100644 index 0000000..0835632 --- /dev/null +++ b/manifests/subsystems/utils/ruby.pp @@ -0,0 +1,42 @@ +class utils::ruby { + # Gem packages + package { 'capistrano': + ensure => installed, + provider => gem, + require => Package['rubygems'], + } + + # Gem packages + package { 'slideshow': + ensure => installed, + provider => gem, + require => Package['rubygems'], + } + + if !defined(Package['ruby']) { + package { 'ruby': + ensure => installed, + } + } + + if !defined(Package['rubygems']) { + package { 'rubygems': + ensure => installed, + require => Package['ruby'], + } + } + + if !defined(Package['ruby-dev']) { + package { 'ruby-dev': + ensure => installed, + require => Package['ruby'], + } + } + + if !defined(Package['libgpgme-ruby1.8']) { + package { 'libgpgme-ruby1.8': + ensure => installed, + require => Package['ruby'], + } + } +} diff --git a/manifests/subsystems/utils/security.pp b/manifests/subsystems/utils/security.pp new file mode 100644 index 0000000..1498e94 --- /dev/null +++ b/manifests/subsystems/utils/security.pp @@ -0,0 +1,14 @@ +class utils::security { + # Security + package { [ 'apg', 'gnupg-agent', 'makepasswd', 'pwgen', 'fpm2', 'encfs', + 'signing-party', 'libnss3-tools' ]: + ensure => installed, + } + + # Custom: might not be available in the official repositories + if $nodo_use_custom_packages == true { + package { [ 'kedpm' ]: + ensure => installed, + } + } +} -- cgit v1.2.3