working rules for farm01 and farm02

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-10 16:42:59 -05:00
parent 0b9b274d45
commit 01934e6acf
1 changed files with 14 additions and 1 deletions

View File

@ -32,10 +32,11 @@ create:
echo "Version: 0."$(STAMP) >> debian/DEBIAN/control
echo "2.0" > debian/debian-binary
mkdir -p debian/files/etc/pki/CA/
cp Makefile debian/files/etc/pki/CA/
cp *.pem debian/files/etc/pki/CA/
cp farm/*.pem debian/files/etc/pki/CA/
chmod 444 debian/files/etc/pki/CA/*.pem
cd debian/files/ && md5sum etc/pki/CA/*.pem > ../DEBIAN/md5sum
cd debian/files/ && md5sum etc/pki/CA/* > ../DEBIAN/md5sum
cd debian/DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control
cd debian/files && tar -cvJf ../data.tar.xz .
cd debian && ar rcs ../wit-libvirt-tls-cert.$(STAMP).deb debian-binary control.tar.xz data.tar.xz
@ -46,3 +47,15 @@ clean:
rm -f *.deb
rm -rf debian/
cd farm && make clean
farm01:
cp /etc/pki/CA/certificate_authority_certificate.pem /etc/pki/CA/cacert.pem
mkdir -p /etc/pki/libvirt/private/
cp /etc/pki/CA/farm01_server_certificate.pem /etc/pki/libvirt/servercert.pem
cp /etc/pki/CA/farm01_server_key.pem /etc/pki/libvirt/private/serverkey.pem
farm02:
cp /etc/pki/CA/certificate_authority_certificate.pem /etc/pki/CA/cacert.pem
mkdir -p /etc/pki/libvirt/private/
cp /etc/pki/CA/farm02_server_certificate.pem /etc/pki/libvirt/servercert.pem
cp /etc/pki/CA/farm02_server_key.pem /etc/pki/libvirt/private/serverkey.pem