Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3988837
D3125.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
D3125.diff
View Options
diff --git a/pillar/dbserver/cluster-B.sls b/pillar/dbserver/cluster-B.sls
--- a/pillar/dbserver/cluster-B.sls
+++ b/pillar/dbserver/cluster-B.sls
@@ -88,6 +88,23 @@
- database: zed_prod
scope: database
+ ###
+ ### Maintenance accounts
+ ###
+
+ dereckson:
+ password: dbserver/cluster-B/users/dereckson
+ host: *windriver
+ privileges:
+ - database: Nasqueron
+ scope: database
+ - database: datacubes
+ scope: database
+ - database: datasource_%
+ scope: database
+ - database: wolfplex_%
+ scope: database
+
# Notes for databases encoding and collation:
#
# This is a MariaDB cluster. At version 10.6, MariaDB is still using utf8mb3
diff --git a/roles/dbserver-mysql/content/init.sls b/roles/dbserver-mysql/content/init.sls
--- a/roles/dbserver-mysql/content/init.sls
+++ b/roles/dbserver-mysql/content/init.sls
@@ -72,8 +72,10 @@
- host: {{ user_args["host"] | yaml_dquote }}
- require:
- dbserver_mysql_user_{{ username }}
+{% if "%" not in privilege["database"] %}
- dbserver_mysql_db_{{ privilege["database"] }}
{% endif %}
+{% endif %}
{% if privilege["scope"] == "table" %}
{% for table in privilege["tables"] %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 00:17 (1 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2342376
Default Alt Text
D3125.diff (1 KB)
Attached To
Mode
D3125: Allow dev access to db-B-001 for dereckson
Attached
Detach File
Event Timeline
Log In to Comment