-apt_source "elasticsearch1.7" do
- source_template "elasticsearch.list.erb"
- url "http://packages.elasticsearch.org/elasticsearch/1.7/debian"
- key "D27D666CD88E42B4"
+apt_repository "management-component-pack" do
+ action repository_actions["management-component-pack"]
+ uri "https://downloads.linux.hpe.com/SDR/repo/mcp"
+ if node[:lsb][:release].to_f >= 16.04
+ distribution "xenial/current"
+ else
+ distribution "#{node[:lsb][:codename]}/current"
+ end
+ components ["non-free"]
+ key "C208ADDE26C2B797"