Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3767876
D2788.id7078.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
D2788.id7078.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
@@ -129,7 +129,7 @@
# Format: <project name>.<service>.<type>
#
- - ops/secrets/espacewin.bugzilla.mysql
+ - ops/secrets/espacewin.phpbb.mysql_root
- ops/secrets/wolfplex.phabricator.mailgun
- ops/secrets/wolfplex.phabricator.mysql
@@ -137,6 +137,16 @@
- ops/secrets/zed.phabricator.mysql
- ops/secrets/zed.phabricator.sendgrid
+ paas-docker-dev:
+
+ #
+ # Credentials used by projects hosted by Nasqueron
+ # Format: <project name>.<service>.<type>
+ #
+
+ - ops/secrets/espacewin.bugzilla.mysql
+ - ops/secrets/espacewin.bugzilla.mysql_root
+
viperserv:
- ops/secrets/nasqueron.viperserv.vault
diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -151,6 +151,8 @@
bugzilla_db:
network: bugzilla
version: 5.7
+ credentials:
+ root: espacewin.bugzilla.mysql_root
#
# Bugzilla
@@ -204,8 +206,12 @@
#
mysql:
- acquisitariat: {}
- phpbb_db: {}
+ acquisitariat:
+ credentials:
+ root: nasqueron.acquisitariat.mysql
+ phpbb_db:
+ credentials:
+ root: espacewin.phpbb.mysql_root
postgresql:
sentry_db:
diff --git a/roles/paas-docker/containers/mysql.sls b/roles/paas-docker/containers/mysql.sls
--- a/roles/paas-docker/containers/mysql.sls
+++ b/roles/paas-docker/containers/mysql.sls
@@ -44,7 +44,7 @@
- image: {{ image }}
- binds: /srv/{{ instance }}/mysql:/var/lib/mysql
- environment:
- MYSQL_ROOT_PASSWORD: {{ salt['zr.generate_random'](31) }}
+ MYSQL_ROOT_PASSWORD: {{ salt['credentials.get_password'](container['credentials']['root']) }}
{% if 'network' in container %}
- networks:
- {{ container['network'] }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 04:01 (4 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258576
Default Alt Text
D2788.id7078.diff (1 KB)
Attached To
Mode
D2788: Store MySQL containers root password in Vault
Attached
Detach File
Event Timeline
Log In to Comment