mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-11 03:05:54 +00:00
infra/image/dockerfile/c10s: Fix client part deployment for the server
The client part deployment fails in the configuration of NIS. The command /usr/bin/nisdomainname is failing in a container in this task as the container is not privileged. The hostnamectl-wrapper is copied from the freeipa-container container project to replace /usr/bin/nisdomainname in the container.
This commit is contained in:
@@ -9,9 +9,16 @@ dnf --assumeyes install \
|
||||
bash \
|
||||
systemd \
|
||||
procps-ng \
|
||||
iproute; \
|
||||
iproute \
|
||||
hostname; \
|
||||
rm -rf /var/cache/dnf/;
|
||||
|
||||
# Prepare for basic ipa-server-install in container
|
||||
# Address failing nis-domainname.service in the ipa-client-install step
|
||||
RUN mv /usr/bin/nisdomainname /usr/bin/nisdomainname.orig
|
||||
ADD utils/hostnamectl-wrapper /usr/bin/nisdomainname
|
||||
RUN chmod a+rx /usr/bin/nisdomainname
|
||||
|
||||
RUN (cd /lib/systemd/system/; \
|
||||
if [ -e dbus-broker.service ] && [ ! -e dbus.service ]; then \
|
||||
ln -s dbus-broker.service dbus.service; \
|
||||
|
||||
Reference in New Issue
Block a user