debian: Add missing /etc/etcd directory
When the node is bootstrapped via the ansible playbooks, the client certs are stored in the /etc/etcd directory, which is not created by the debian package. This causes the ansible playbook to fail. Create the /etc/etcd directory in the etc-server.postinst script when the server is installed. Testing: PASS: Package installed and ISO built successfully Story: 2009221 Task: 43521 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: I10fbf0bc34a0d65ec75ef9237f12cf63ce1b8c50
This commit is contained in:
parent
45e97910d5
commit
2adaf77a2c
@ -0,0 +1,28 @@
|
|||||||
|
From a5d54403cad886ff73a3051d6c3d2fb796e1f65b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Charles Short <charles.short@windriver.com>
|
||||||
|
Date: Wed, 12 Jan 2022 11:42:20 -0500
|
||||||
|
Subject: [PATCH] Add /etc/etcd configuration directory
|
||||||
|
|
||||||
|
Ansible playbook expects an /etc/etcd directory so
|
||||||
|
create one when the etcd-server is installed.
|
||||||
|
|
||||||
|
Signed-off-by: Charles Short <charles.short@windriver.com>
|
||||||
|
---
|
||||||
|
debian/etcd-server.postinst | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/debian/etcd-server.postinst b/debian/etcd-server.postinst
|
||||||
|
index 0bdc5c20..3ed3754e 100644
|
||||||
|
--- a/debian/etcd-server.postinst
|
||||||
|
+++ b/debian/etcd-server.postinst
|
||||||
|
@@ -8,6 +8,7 @@ case $1 in
|
||||||
|
adduser --system --group --disabled-login --disabled-password --home /var/lib/etcd/ etcd
|
||||||
|
fi
|
||||||
|
chmod 700 /var/lib/etcd/
|
||||||
|
+ mkdir -m 755 -p /etc/etcd
|
||||||
|
;;
|
||||||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
|
;;
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1 +1,2 @@
|
|||||||
0001-Update-config.patch
|
0001-Update-config.patch
|
||||||
|
0002-Add-etc-etcd-configuration-directory.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user