Page MenuHomeDevCentral

D1530.id3906.diff
No OneTemporary

D1530.id3906.diff

diff --git a/GIDs b/GIDs
--- a/GIDs
+++ b/GIDs
@@ -1,7 +1,6 @@
827 chaton-dev
828 deployment
829 nasqueron-irc
-990 quassel
3001 ops
#3002 is intentionally left unassigned
3003 deployment
diff --git a/UIDs b/UIDs
--- a/UIDs
+++ b/UIDs
@@ -3,7 +3,6 @@
832 chaton
833 viper
834 tc2
-990 quassel
3004 mediawiki
9001 salt
9002 deploy
diff --git a/roles/shellserver/quassel-core/account.sls b/roles/shellserver/quassel-core/account.sls
deleted file mode 100644
--- a/roles/shellserver/quassel-core/account.sls
+++ /dev/null
@@ -1,26 +0,0 @@
-# -------------------------------------------------------------
-# Salt — Provision Quassel core
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-# Project: Eglide
-# Created: 2018-03-28
-# License: Trivial work, not eligible to copyright
-# -------------------------------------------------------------
-
-{% from "map.jinja" import shells with context %}
-
-# -------------------------------------------------------------
-# Account
-# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-quassel_account:
- group.present:
- - name: quassel
- - gid: 990
- - system: True
- user.present:
- - name: quassel
- - fullname: Quassel core
- - uid: 990
- - gid: 990
- - home: /var/lib/quassel
- - shell: {{ shells.nologin }}
diff --git a/roles/shellserver/quassel-core/certificate.sls b/roles/shellserver/quassel-core/certificate.sls
--- a/roles/shellserver/quassel-core/certificate.sls
+++ b/roles/shellserver/quassel-core/certificate.sls
@@ -6,14 +6,16 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% from ".map.jinja" import quassel with context %}
+
# -------------------------------------------------------------
# Certificate
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/var/lib/quassel:
file.directory:
- - user: quassel
- - group: quassel
+ - user: {{ quassel.user }}
+ - group: {{ quassel.group }}
quassel_certificate:
cmd.run:
@@ -25,6 +27,6 @@
file.managed:
- name: /var/lib/quassel/quasselCert.pem
- replace: False
- - user: quassel
- - group: quassel
+ - user: {{ quassel.user }}
+ - group: {{ quassel.group }}
- mode: 400
diff --git a/roles/shellserver/quassel-core/init.sls b/roles/shellserver/quassel-core/init.sls
--- a/roles/shellserver/quassel-core/init.sls
+++ b/roles/shellserver/quassel-core/init.sls
@@ -7,6 +7,5 @@
# -------------------------------------------------------------
include:
- - .account
- .certificate
- .software
diff --git a/roles/shellserver/quassel-core/init.sls b/roles/shellserver/quassel-core/map.jinja
copy from roles/shellserver/quassel-core/init.sls
copy to roles/shellserver/quassel-core/map.jinja
--- a/roles/shellserver/quassel-core/init.sls
+++ b/roles/shellserver/quassel-core/map.jinja
@@ -6,7 +6,13 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
-include:
- - .account
- - .certificate
- - .software
+{% set quassel = salt['grains.filter_by']({
+ 'Arch' : {
+ 'user': 'quassel',
+ 'group': 'quassel',
+ },
+ 'Debian': {
+ 'user': 'quasselcore',
+ 'group': 'quassel',
+ },
+}, default='Arch') %}

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 5, 13:40 (3 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2545082
Default Alt Text
D1530.id3906.diff (3 KB)

Event Timeline