-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vpackage update, still not completely sure this is the right path
- Loading branch information
Ramin K
committed
Oct 17, 2011
1 parent
e08afa3
commit 35c9900
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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': } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
} | ||
|
||
} |