Page MenuHomeDevCentral

D2389.id6009.diff
No OneTemporary

D2389.id6009.diff

diff --git a/roles/core/userland-software/files/sources.list b/roles/core/userland-software/files/sources.list
new file mode 100644
--- /dev/null
+++ b/roles/core/userland-software/files/sources.list
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# -------------------------------------------------------------
+# Fetch ports
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Author : FreeBSD contributors
+# License: BSD-2-Clause
+# Source file: roles/core/userland-software/files/sources.list
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+# -------------------------------------------------------------
+
+deb http://deb.debian.org/debian {{ debian_version }} main contrib non-free
+deb-src http://deb.debian.org/debian {{ debian_version }} main contrib non-free
+
+deb http://deb.debian.org/debian-security/ {{ debian_version }}-security main contrib non-free
+deb-src http://deb.debian.org/debian-security/ {{ debian_version }}-security main contrib non-free
+
+deb http://deb.debian.org/debian {{ debian_version }}-updates main contrib non-free
+deb-src http://deb.debian.org/debian {{ debian_version }}-updates main contrib non-free
diff --git a/roles/core/userland-software/init.sls b/roles/core/userland-software/init.sls
--- a/roles/core/userland-software/init.sls
+++ b/roles/core/userland-software/init.sls
@@ -21,6 +21,21 @@
- source: salt://roles/core/userland-software/files/nasqueron.repo
{% endif %}
+{% if grains['os'] == 'Debian' %}
+/etc/apt/sources.list:
+ file.managed:
+ - source: salt://roles/core/userland-software/files/sources.list
+ - template: jinja
+ - context:
+ debian_version: {{ grains['oscodename'] }}
+
+apt_update_debian_sources:
+ cmd.run:
+ - name: apt update
+ - onchanges:
+ - file: /etc/apt/sources.list
+{% endif %}
+
{% if grains['kernel'] == 'Linux' %}
snapd:
pkg.installed

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 13:32 (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247589
Default Alt Text
D2389.id6009.diff (2 KB)

Event Timeline