浏览代码

apt: add hpe repo if manufacturer matches HP

Karsten Böddeker 6 年之前
父节点
当前提交
dbdd89ad46
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      apt/init.sls

+ 9 - 0
apt/init.sls

@@ -49,6 +49,15 @@ apt-icinga2:
     - file: /etc/apt/sources.list.d/icinga2.list
     - key_url: http://packages.icinga.org/icinga.key
 
+{% if grains.manufacturer == "HP" %}
+apt-hpe:
+  pkgrepo.managed:
+    - comments:
+      - "# HPE repo"
+    - human_name: HPE repo
+    - name: deb http://downloads.linux.hpe.com/SDR/repo/mcp {{ grains.oscodename }}/current non-free
+    - file: /etc/apt/sources.list.d/hpe.list
+{% endif %}
 
 # APT preferences
 /etc/apt/preferences.d/ffho: