DISTRIBUTION_VERSION=33
ROOT_PACKAGES="hostname initscripts iproute rootfiles systemd-udev"
BASE_PACKAGES="NetworkManager iputils logrotate rsyslog tar vim-minimal"
-SPEC_PACKAGES="openssh-server openssh-clients openssh-ldap openssl sudo"
-SPEC_PACKAGES="$SPEC_PACKAGES authselect openldap-servers openldap-clients nss-pam-ldapd oddjob-mkhomedir pam_ssh passwd python3 sssd-ldap"
+SPEC_PACKAGES="openssh-server openssh-clients openssl sudo"
+SPEC_PACKAGES="$SPEC_PACKAGES authselect openldap-servers openldap-clients oddjob-mkhomedir pam_ssh passwd python3 sssd-ldap"
REAL_PATH=$(realpath $(dirname $0))
-CONTAINER_NAME=$1
-CONTAINER_ROOTFS=$2
-CONTAINER_SOURCE_PATH=$3
+ENV_FILE=$1
+source $ENV_FILE
+chmod 600 $REAL_PATH/user-lxcsetup-2020
ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu echo hello
RC=$?
if [ $RC -eq 0 ]
then
ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu systemctl stop slapd.service
- ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu slapcat -n 2 >/tmp/data.ldif
+ ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu "slapcat -n 2 >/tmp/data.ldif"
scp -i $REAL_PATH/user-lxcsetup-2020 root@ldap.usr.user.hu:/tmp/data.ldif \
$CONTAINER_SOURCE_PATH/firstboot/data.ldif
ssh -i $REAL_PATH/user-lxcsetup-2020 -l root ldap.usr.user.hu systemctl start slapd.service
dnf install \
chrony \
+ cronie \
infiniband-diags \
+ ipmitool \
logrotate \
lxc \
lxc-templates \
+ mailx \
mercurial-py3 \
opensm \
+ postfix \
rdma-core \
rsyslog \
screen \
done
/usr/bin/cp \
--archive \
- /usr/lib/python3.8/site-packages/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf \
+ /usr/lib/python3.9/site-packages/certbot_apache/_internal/tls_configs/current-options-ssl-apache.conf \
/etc/letsencrypt/options-ssl-apache.conf
systemctl enable certbot-renew.timer
systemctl start certbot-renew.timer