Page MenuHomeDevCentral

D1341.id3439.diff
No OneTemporary

D1341.id3439.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,35 @@
+# -------------------------------------------------------------
+# 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
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/usr/local/etc/notifications.conf:
+ file.managed:
+ - source: salt://roles/devserver/userland-software/files/notifications.conf

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 20:19 (11 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2251124
Default Alt Text
D1341.id3439.diff (2 KB)

Event Timeline