Debian: Reorganize controller&worker config related packages
This work:
- is part of Debian integration effort.
- affect Debian only
- will allow puppet manifests to be applied on worker node at
unlock/reboot time.
This specific commit:
- allows controllerconfig and workerconfig-standalone packages
to coexist on the same iso by letting files be selected at runtime
- lets workerconfig service be installed by systemd
- drops the Makefile usage for workerconfig-standalone to simplify
debian packaging.
Future work will account for storageconfig package to coexist with
controllerconfig and workerconfig.
Tests on Debian:
PASS: controllers unlocked on Standard
PASS: workerconfig started puppet manifest apply on worker node
PASS: controllers unlocked on AIO-DX
PASS: controllerconfig is running on AIO-DX,
controllerconfig is running on Standard,
workerconfig is not running on controller node AIO-DX & Standard,
workerconfig is running on worker node
Depends-On: https://review.opendev.org/c/starlingx/metal/+/852170/
Story: 2010211
Task: 45951
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I308c7a10767c09c4781fd435d8192b250a8dba7b
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/make -f
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
ROOT := $(CURDIR)/debian/tmp
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
@@ -8,9 +10,10 @@ override_dh_auto_build:
|
||||
: # No build required
|
||||
|
||||
override_dh_auto_install:
|
||||
$(MAKE) INITDDIR=`pwd`/debian/tmp/etc/init.d \
|
||||
GOENABLEDDIR=`pwd`/debian/tmp/etc/goenabled.d \
|
||||
SYSTEMDDIR=`pwd`/debian/tmp/lib/systemd install
|
||||
install -d -m 755 ${ROOT}/etc/init.d
|
||||
install -p -D -m 700 worker_config ${ROOT}/etc/init.d/worker_config
|
||||
install -d -m 755 $(ROOT)/etc/goenabled.d/
|
||||
install -p -D -m 700 config_goenabled_check.sh $(ROOT)/etc/goenabled.d/config_goenabled_check.sh.worker
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd -pworkerconfig-standalone
|
||||
dh_installsystemd -pworkerconfig-standalone --name=workerconfig --no-start workerconfig.service
|
||||
|
||||
Reference in New Issue
Block a user