Page MenuHomeDevCentral

D1341.id3440.diff
No OneTemporary

D1341.id3440.diff

diff --git a/roles/devserver/userland-software/files/notifications.conf b/roles/devserver/userland-software/files/notifications.conf
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/files/notifications.conf
@@ -0,0 +1,25 @@
+# -------------------------------------------------------------
+# Notifications center CLI client configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-02-20
+# License: Trivial work, not eligible to copyright
+# Source file: roles/devserver/userland-software/files/notifications.conf
+# -------------------------------------------------------------
+#
+# <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>
+
+# TODO: when Vault is installed, add password here through a Vault pillar.
+
+[Broker]
+Host=white-rabbit.nasqueron.org
+User=notifications-{{ grains['id'] }}
+Password=changeme
+
+Vhost=dev
+Exchange=notifications
diff --git a/roles/devserver/userland-software/init.sls b/roles/devserver/userland-software/init.sls
--- a/roles/devserver/userland-software/init.sls
+++ b/roles/devserver/userland-software/init.sls
@@ -16,5 +16,6 @@
# Software specific for development servers
- .dev
- .misc
+ - .notifications
- .phabricator
- .psysh
diff --git a/roles/devserver/userland-software/notifications.sls b/roles/devserver/userland-software/notifications.sls
new file mode 100644
--- /dev/null
+++ b/roles/devserver/userland-software/notifications.sls
@@ -0,0 +1,40 @@
+# -------------------------------------------------------------
+# Salt — Provision dev software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-02-20
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% from "map.jinja" import dirs, packages_prefixes with context %}
+
+# -------------------------------------------------------------
+# Software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ dirs.bin }}/notifications:
+ file.managed:
+ - source: salt://software/notifications-cli-client/notifications
+ - mode: 755
+
+# -------------------------------------------------------------
+# Dependencies
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+notifications_dependencies:
+ pkg.installed
+ - pkgs:
+ - {{ packages_prefixes.python3 }}pika
+
+# -------------------------------------------------------------
+# Configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+# TODO: switch group to nasquenautes when deployed on devservers
+
+/usr/local/etc/notifications.conf:
+ file.managed:
+ - source: salt://roles/devserver/userland-software/files/notifications.conf
+ - template: jinja
+ - group: wheel
+ - mode: 640

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 10:22 (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252242
Default Alt Text
D1341.id3440.diff (3 KB)

Event Timeline