Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3745252
D2389.id6009.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2389.id6009.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2389: Configure Debian repositories
Attached
Detach File
Event Timeline
Log In to Comment