]> git.openstreetmap.org Git - chef.git/commitdiff
hardware: Install hp-ams on Gen8 servers
authorGrant Slater <git@firefishy.com>
Tue, 4 Sep 2018 17:00:07 +0000 (18:00 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 4 Sep 2018 17:00:07 +0000 (18:00 +0100)
cookbooks/hardware/recipes/default.rb

index 1a9549d7cd663bcaacbe4f09a74169038df5ca83..936ffb01b4d3d360071f562c5b5a8e3ca3a9e4b8 100644 (file)
@@ -65,6 +65,18 @@ when "HP"
     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"