Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3754850
D1341.id3441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D1341.id3441.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 10:28 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252242
Default Alt Text
D1341.id3441.diff (3 KB)
Attached To
Mode
D1341: Deploy notifications CLI client
Attached
Detach File
Event Timeline
Log In to Comment