unofficial mirror of bug-guix@gnu.org 
 help / color / Atom feed
From: david larsson <david.larsson@selfhosted.xyz>
To: guix-patches@gnu.org
Subject: bug#42544: [PATCH]: gnu: services: Make some openvpn options optional to include in the openvpn config file.
Date: Fri, 31 Jul 2020 23:44:51 +0000
Message-ID: <c15f2913c46b32490bb282fd8b5f9e48@selfhosted.xyz> (raw)
In-Reply-To: <029ee37c6910a0136916fd1673a517bd@selfhosted.xyz>

 From 5014aa2f455b127deaa013f327dc1cc42d0e1772 Mon Sep 17 00:00:00 2001
 From: David Larsson <david.larsson@selfhosted.xyz>
Date: Sat, 1 Aug 2020 00:16:02 +0200
Subject: [bug#42544] [PATCH]: gnu: services: Make some openvpn options
  optional to include in the openvpn config file.

* gnu/services/vpn.scm (openvpn-client-configuration) 
(openvpn-server-configuration): Change cert and key options to type 
maybe-string.
---
  gnu/services/vpn.scm | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 658d5c3e88..6155fd7938 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -2,6 +2,7 @@
  ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
  ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
  ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2020 David Larsson <david.larsson@selfhosted.xyz>
  ;;;
  ;;; This file is part of GNU Guix.
  ;;;
@@ -277,12 +278,12 @@ servers.")
      "The certificate authority to check connections against.")

     (cert
-    (string "/etc/openvpn/client.crt")
+    (maybe-string 'disabled)
      "The certificate of the machine the daemon is running on. It should 
be signed
  by the authority given in @code{ca}.")

     (key
-    (string "/etc/openvpn/client.key")
+    (maybe-string 'disabled)
      "The key of the machine the daemon is running on. It must be the 
key whose
  certificate is @code{cert}.")

-- 
2.18.0




      parent reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26  4:53 bug#42544: openvpn service requires cert and key configuration david larsson
2020-07-28  4:27 ` david larsson
2020-07-31 23:44 ` david larsson [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=c15f2913c46b32490bb282fd8b5f9e48@selfhosted.xyz \
    --to=david.larsson@selfhosted.xyz \
    --cc=guix-patches@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

unofficial mirror of bug-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git