Skip to content

Commit

Permalink
vpackage update, still not completely sure this is the right path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramin K committed Oct 17, 2011
1 parent e08afa3 commit 35c9900
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
30 changes: 22 additions & 8 deletions vpackages/manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
class vpackages {

package { 'htop': }
package { 'innotop': }
package { 'maatkit': }
package { 'mysql-client': }
package { 'screen': }
package { 'tcpdump': }
package { 'whois': }

include vpackages::params

@package { 'htop': }
@package { 'lynx': }
@package { 'screen': }
@package { 'strace': }
@package { 'tcpdump': }
@package { 'wget': }
@package { 'whois': name => $vpackages::params::whois, }

# database packages
@package { 'innotop': }
@package { 'maatkit': }
@package { 'mysql-client': name => $vpackages::params::mysqlclient, }

# Fedora/rhel/centos
@package { 'vim-enhanced': }
@package { 'rubygem-rake': }

# Debian/Ubuntu
@package { 'python-software-properties': }

}
13 changes: 13 additions & 0 deletions vpackages/manifests/params.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class vpackages::params {

$whois = $::operatingsystem ? {
/(?i:Ubuntu|Debian)/ => 'whois',
/(?i:CentOS|Fedora)/ => 'jwhois',
}

$mysqlclient = $::operatingsystem ? {
/(?i:Ubuntu|Debian)/ => 'mysql-client',
/(?i:CentOS|Fedora)/ => 'mysql',
}

}

0 comments on commit 35c9900

Please sign in to comment.