Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3751442
D2821.id7199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2821.id7199.diff
View Options
diff --git a/pillar/credentials/vault.sls b/pillar/credentials/vault.sls
--- a/pillar/credentials/vault.sls
+++ b/pillar/credentials/vault.sls
@@ -165,6 +165,14 @@
viperserv:
- ops/secrets/nasqueron.viperserv.vault
+ webserver-legacy:
+
+ #
+ # Wolfplex credentials
+ #
+
+ - ops/secrets/nasqueron.etherpad.api
+
# -------------------------------------------------------------
# Vault secrets by dbserver cluster
#
diff --git a/roles/webserver-content/org/wolfplex/api.sls b/roles/webserver-content/org/wolfplex/api.sls
--- a/roles/webserver-content/org/wolfplex/api.sls
+++ b/roles/webserver-content/org/wolfplex/api.sls
@@ -7,6 +7,23 @@
{% if salt['node.has_web_content'](".org/wolfplex/api") %}
+# -------------------------------------------------------------
+# Data store
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/var/dataroot/wolfplex/secrets.json:
+ file.managed:
+ - source: salt://roles/webserver-content/org/wolfplex/files/secrets.json.jinja2
+ - mode: 400
+ - user: web-org-wolfplex-www
+ - group: web
+ - makedirs: True
+ - template: jinja
+ - show_changes: False
+ - context:
+ secrets:
+ etherpad.api.key: {{ salt['credentials.get_token']("nasqueron.etherpad.api") }}
+
# -------------------------------------------------------------
# Base part
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/roles/webserver-content/org/wolfplex/files/secrets.json.jinja2 b/roles/webserver-content/org/wolfplex/files/secrets.json.jinja2
new file mode 100644
--- /dev/null
+++ b/roles/webserver-content/org/wolfplex/files/secrets.json.jinja2
@@ -0,0 +1 @@
+{{ secrets | json }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 08:43 (1 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250492
Default Alt Text
D2821.id7199.diff (1 KB)
Attached To
Mode
D2821: Provision Etherpad API key to Wolfplex datastore
Attached
Detach File
Event Timeline
Log In to Comment