Skip to content

Commit 9dcaf55

Browse files
committed
Merge pull request #1 from gotjosh/support_centos
Add support for CentOS
2 parents 696737b + b955de3 commit 9dcaf55

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

metadata.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
supports "ubuntu"
1010
supports "debian"
11+
supports "centos"
1112

1213
depends "apt"
14+
depends "yum"
1315
depends "sudo"
1416
depends "user"
1517
depends "curl"

recipes/package_update.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
# Update apt-get packages.
66
#
77

8-
include_recipe "apt"
9-
8+
if node['platform_family'] == "debian"
9+
include_recipe "apt"
10+
elsif node['platform_family'] == "rhel"
11+
include_recipe "yum::epel"
12+
end

0 commit comments

Comments
 (0)