Skip to content

Commit

Permalink
Merge pull request #1 from tas50/master
Browse files Browse the repository at this point in the history
Updated for Redhat / CentOS
  • Loading branch information
fred committed Dec 15, 2011
2 parents b6f86b1 + b2d5ee2 commit 22b3ef1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
21 changes: 21 additions & 0 deletions networking_basic/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,25 @@
'tcpdump',
'elinks',
'lynx'
]

default[:redhat][:install_list] = [
  'lsof',
  'iptables',
  'jwhois',
  'curl',
  'wget',
  'rsync',
  'jnettop',
  'nmap',
  'traceroute',
  'ethtool',
  'iproute',
  'iputils,
  'nc',
  'tcptraceroute',
  'tcputils',
  'tcpdump',
  'elinks',
  'lynx'
]
4 changes: 2 additions & 2 deletions networking_basic/metadata.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"version": "0.0.2",
"version": "0.0.3",
"maintainer": "fredz",
"replacing": {
},
"description": "Install Basic Netwoking Tools ans Utilities on Debian5 and Ubuntu10",
"description": "Install Basic Netwoking Tools ans Utilities on Debian, Ubuntu, CentOS, and RHEL",
"recipes": {
},
"maintainer_email": "[email protected]",
Expand Down
7 changes: 7 additions & 0 deletions networking_basic/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@
ignore_failure true
end
end
when "rhel", "centos"
node[:redhat][:install_list].each do |pkg|
package pkg do
action :install
ignore_failure true
end
end
end

0 comments on commit 22b3ef1

Please sign in to comment.