all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 30691@debbugs.gnu.org
Subject: [bug#30691] [PATCH 1/3] services: postgresql: Add a default-value to the postgresql-service-type.
Date: Sat,  3 Mar 2018 22:21:08 +0000	[thread overview]
Message-ID: <20180303222110.27632-1-mail@cbaines.net> (raw)
In-Reply-To: <87o9k4relq.fsf@cbaines.net>

* gnu/packages/databases.scm (<postgresql-configuration>)
  [config-file,data-directory]: Add default.
  (postgresql-service-type)[default-value]:
  Set to (postgresql-configuration).
---
 gnu/services/databases.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
index b34a67aa9..3db9472ee 100644
--- a/gnu/services/databases.scm
+++ b/gnu/services/databases.scm
@@ -77,8 +77,10 @@
                   (default 5432))
   (locale         postgresql-configuration-locale
                   (default "en_US.utf8"))
-  (config-file    postgresql-configuration-file)
-  (data-directory postgresql-configuration-data-directory))
+  (config-file    postgresql-configuration-file
+                  (default %default-postgres-config))
+  (data-directory postgresql-configuration-data-directory
+                  (default "/var/lib/postgresql/data")))
 
 (define %default-postgres-hba
   (plain-file "pg_hba.conf"
@@ -184,7 +186,8 @@ host	all	all	::1/128 	trust"))
                        (service-extension activation-service-type
                                           postgresql-activation)
                        (service-extension account-service-type
-                                          (const %postgresql-accounts))))))
+                                          (const %postgresql-accounts))))
+                (default-value (postgresql-configuration))))
 
 (define* (postgresql-service #:key (postgresql postgresql)
                              (port 5432)
-- 
2.16.0

  reply	other threads:[~2018-03-03 22:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-03 22:14 [bug#30691] [PATCH] Add database service default values Christopher Baines
2018-03-03 22:21 ` Christopher Baines [this message]
2018-03-03 22:21   ` [bug#30691] [PATCH 2/3] services: mysql: Add a default-value to the mysql-service-type Christopher Baines
2018-03-03 22:21   ` [bug#30691] [PATCH 3/3] services: redis: Add a default-value to the redis-service-type Christopher Baines
2018-03-03 22:50 ` [bug#30691] [PATCH] Add database service default values Ludovic Courtès
2018-03-04  0:12   ` bug#30691: " Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180303222110.27632-1-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=30691@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.