Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12239498
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
View Options
diff --git a/roles/viperserv/account/files/dot.gitconfig b/roles/viperserv/account/files/dot.gitconfig
new file mode 100644
index 0000000..d493228
--- /dev/null
+++ b/roles/viperserv/account/files/dot.gitconfig
@@ -0,0 +1,19 @@
+# -------------------------------------------------------------
+# Git configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/viperserv/account/files/dot.gitconfig
+# -------------------------------------------------------------
+#
+# <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>
+
+[safe]
+ directory = /srv/viperserv/scripts
+ directory = /opt/fbsql
+ directory = /opt/rabbitmq-tcl
diff --git a/roles/viperserv/account/init.sls b/roles/viperserv/account/init.sls
index f484ce2..d119c67 100644
--- a/roles/viperserv/account/init.sls
+++ b/roles/viperserv/account/init.sls
@@ -1,47 +1,52 @@
# -------------------------------------------------------------
# Salt — Deploy ViperServ (eggdrop)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-11-14
# Description: Eggdrop on Libera
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
# Service accounts
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% for username, user in pillar['viperserv_accounts'].items() %}
viperserv_account_{{ username }}:
user.present:
- name: {{ username }}
- fullname: {{ user['fullname'] }}
- uid: {{ user['uid'] }}
- gid: nasqueron-irc
- home: {{ dirs.share }}/{{ username }}
/var/run/{{ username }}:
file.directory:
- user: {{ user['uid'] }}
- group: nasqueron-irc
- dir_mode: 711
+{{ dirs.share }}/{{ username }}/.gitconfig:
+ file.managed:
+ - source: salt://roles/viperserv/account/files/dot.gitconfig
+ - mode: 444
+
{% endfor %}
# -------------------------------------------------------------
# Sudo capabilities
#
# Members of nasqueron-irc should be able to sudo -u viperserv …
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
viperserv_sudo_capabilities_file:
file.managed:
- name: {{ dirs.etc }}/sudoers.d/viperserv
- source: salt://roles/viperserv/account/files/viperserv.sudoers
- template: jinja
- context:
accounts: {{ pillar['viperserv_accounts'] }}
bots: {{ pillar['viperserv_bots'] }}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Oct 11, 22:09 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064154
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment