feb258db57
This work: - is part of Debian integration effort. - affect Debian only - will allow puppet manifests to be applied on storage node at unlock/reboot time. This specific commit: - allows controllerconfig, workerconfig-standalone and storageconfig packages to coexist on the same iso by letting files be selected at runtime - lets storageconfig service be installed by systemd Test Plan on Debian: PASS: controllers unlocked on AIO-SX, AIO-DX, Standard & Storage PASS: workers unlocked on Standard & Storage PASS: storages unlocked on Storage PASS: storageconfig started puppet manifest apply on storage nodes PASS: controllerconfig is running on controller node on AIO-SX, AIO-DX, Standard & Storage PASS: workerconfig is not running on controller and storage nodes on AIO-SX, AIO-DX, Standard & Storage PASS: storageconfig is not running on controller and worker nodes on AIO-SX, AIO-DX, Standard & Storage PASS: workerconfig is running on worker node Standard & Storage Depends-On: https://review.opendev.org/c/starlingx/metal/+/860495 Story: 2010211 Task: 46506 Signed-off-by: Hediberto Cavalcante da Silva <hediberto.cavalcantedasilva@windriver.com> Change-Id: I83dde1cf406217e483f05f5504659930612edf70
24 lines
589 B
Makefile
Executable File
24 lines
589 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
#export DH_VERBOSE=1
|
|
|
|
PKGDIR := $(CURDIR)/debian/tmp
|
|
|
|
export INITDDIR=$(PKGDIR)/etc/init.d
|
|
export GOENABLEDDIR=$(PKGDIR)/etc/goenabled.d
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
: # No build required
|
|
|
|
override_dh_auto_install:
|
|
install -d -m 755 ${INITDDIR}
|
|
install -p -D -m 700 storage_config ${INITDDIR}/storage_config
|
|
install -d -m 755 ${GOENABLEDDIR}
|
|
install -p -D -m 700 config_goenabled_check.sh ${GOENABLEDDIR}/config_goenabled_check.sh.storage
|
|
|
|
override_dh_installsystemd:
|
|
dh_installsystemd -pstorageconfig --name=storageconfig --no-start storageconfig.service
|
|
|