a28a82f092
Resolves: #1954562 Signed-off-by: Shalini Khandelwal <skhandel@redhat.com>
25 lines
644 B
Bash
25 lines
644 B
Bash
#!/bin/bash -ex
|
|
|
|
# This command needs to be executed as it pulls the machine name
|
|
# dynamically.
|
|
dscreate create-template /tmp/test_dir/ds.inf
|
|
|
|
sed -i \
|
|
-e "s/;instance_name = .*/instance_name = localhost/g" \
|
|
-e "s/;root_password = .*/root_password = Secret.123/g" \
|
|
-e "s/;suffix = .*/suffix = dc=example,dc=com/g" \
|
|
-e "s/;self_sign_cert = .*/self_sign_cert = False/g" \
|
|
/tmp/test_dir/ds.inf
|
|
|
|
dscreate from-file /tmp/test_dir/ds.inf
|
|
|
|
ldapadd -h $HOSTNAME -x -D "cn=Directory Manager" -w Secret.123 << EOF
|
|
dn: dc=example,dc=com
|
|
objectClass: domain
|
|
dc: example
|
|
|
|
dn: dc=pki,dc=example,dc=com
|
|
objectClass: domain
|
|
dc: pki
|
|
EOF
|