unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39152] [PATCH] Allow extra config content in mysql-configuration
@ 2020-01-16 16:41 Alex Sassmannshausen
  2020-01-16 21:14 ` Christopher Baines
  2020-01-17 10:49 ` bug#39152: Pushed, Done Alex Sassmannshausen
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Sassmannshausen @ 2020-01-16 16:41 UTC (permalink / raw)
  To: 39152

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

Hello,

Attached is a patch that proposes changing the mysql-service so that the
user can inject additional mysql configuration into the default
configuration file.

I currently use the patch in a private channel and it seems to work
great.

Best wishes,

Alex


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-services-Allow-extra-content-in-mysql-configurat.patch --]
[-- Type: text/x-diff, Size: 1362 bytes --]

From 3e2139c6e6cecfd34f7e9423c23e57b3d9dbf197 Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex@komputilo.eu>
Date: Thu, 16 Jan 2020 17:17:48 +0100
Subject: [PATCH] gnu: services: Allow extra content in mysql configuration.

* gnu/services/databases.scm (<mysql-configuration>): New field.
  (mysql-configuration-file): Use it.
---
 gnu/services/databases.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index a26eeb20cc..473ece4e97 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -463,7 +463,8 @@ storage:
   mysql-configuration make-mysql-configuration
   mysql-configuration?
   (mysql mysql-configuration-mysql (default mariadb))
-  (port mysql-configuration-port (default 3306)))
+  (port mysql-configuration-port (default 3306))
+  (extra-content mysql-configuration-extra-content (default "")))
 
 (define %mysql-accounts
   (list (user-group
@@ -478,11 +479,12 @@ storage:
 
 (define mysql-configuration-file
   (match-lambda
-    (($ <mysql-configuration> mysql port)
+    (($ <mysql-configuration> mysql port extra-content)
      (mixed-text-file "my.cnf" "[mysqld]
 datadir=/var/lib/mysql
 socket=/run/mysqld/mysqld.sock
 port=" (number->string port) "
+" extra-content "
 "))))
 
 (define (%mysql-activation config)
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#39152] [PATCH] Allow extra config content in mysql-configuration
  2020-01-16 16:41 [bug#39152] [PATCH] Allow extra config content in mysql-configuration Alex Sassmannshausen
@ 2020-01-16 21:14 ` Christopher Baines
  2020-01-17 10:48   ` Alex Sassmannshausen
  2020-01-17 10:49 ` bug#39152: Pushed, Done Alex Sassmannshausen
  1 sibling, 1 reply; 4+ messages in thread
From: Christopher Baines @ 2020-01-16 21:14 UTC (permalink / raw)
  To: alex.sassmannshausen; +Cc: 39152

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]


Alex Sassmannshausen <alex.sassmannshausen@gmail.com> writes:

> Hello,
>
> Attached is a patch that proposes changing the mysql-service so that the
> user can inject additional mysql configuration into the default
> configuration file.
>
> I currently use the patch in a private channel and it seems to work
> great.

Looks good to me :)

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#39152] [PATCH] Allow extra config content in mysql-configuration
  2020-01-16 21:14 ` Christopher Baines
@ 2020-01-17 10:48   ` Alex Sassmannshausen
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Sassmannshausen @ 2020-01-17 10:48 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 39152

Cheers for the review, I've pushed and will close the issue now.

Alex

Christopher Baines <mail@cbaines.net> writes:

> Alex Sassmannshausen <alex.sassmannshausen@gmail.com> writes:
>
>> Hello,
>>
>> Attached is a patch that proposes changing the mysql-service so that the
>> user can inject additional mysql configuration into the default
>> configuration file.
>>
>> I currently use the patch in a private channel and it seems to work
>> great.
>
> Looks good to me :)
>
> Thanks,
>
> Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39152: Pushed, Done.
  2020-01-16 16:41 [bug#39152] [PATCH] Allow extra config content in mysql-configuration Alex Sassmannshausen
  2020-01-16 21:14 ` Christopher Baines
@ 2020-01-17 10:49 ` Alex Sassmannshausen
  1 sibling, 0 replies; 4+ messages in thread
From: Alex Sassmannshausen @ 2020-01-17 10:49 UTC (permalink / raw)
  To: 39152-done



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-17 10:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-16 16:41 [bug#39152] [PATCH] Allow extra config content in mysql-configuration Alex Sassmannshausen
2020-01-16 21:14 ` Christopher Baines
2020-01-17 10:48   ` Alex Sassmannshausen
2020-01-17 10:49 ` bug#39152: Pushed, Done Alex Sassmannshausen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).