projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db7c169
)
hardware: Install hp-ams on Gen8 servers
author
Grant Slater
<git@firefishy.com>
Tue, 4 Sep 2018 17:00:07 +0000
(18:00 +0100)
committer
Grant Slater
<git@firefishy.com>
Tue, 4 Sep 2018 17:00:07 +0000
(18:00 +0100)
cookbooks/hardware/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/hardware/recipes/default.rb
b/cookbooks/hardware/recipes/default.rb
index 1a9549d7cd663bcaacbe4f09a74169038df5ca83..936ffb01b4d3d360071f562c5b5a8e3ca3a9e4b8 100644
(file)
--- a/
cookbooks/hardware/recipes/default.rb
+++ b/
cookbooks/hardware/recipes/default.rb
@@
-65,6
+65,18
@@
when "HP"
supports :status => true, :restart => true
end
supports :status => true, :restart => true
end
+ if product.end_with?("Gen8")
+ package "hp-ams" do
+ action :install
+ notifies :restart, "service[hp-ams]"
+ end
+
+ service "hp-ams" do
+ action [:enable, :start]
+ supports :status => true, :restart => true
+ end
+ end
+
units << "1"
when "TYAN"
units << "0"
units << "1"
when "TYAN"
units << "0"