mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 20:04:45 +00:00
Allow multiple services creation
Adding an option to create multiple services in one go. Adding tests (present/absent/without_skip_host_check) Copied from PR #1054 Signed-off-by: Denis Karpelevich <dkarpele@redhat.com>
This commit is contained in:
committed by
Thomas Woerner
parent
180afd7586
commit
0d9873b81c
22
tests/service/services_absent.sh
Normal file
22
tests/service/services_absent.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
NUM=1000
|
||||
FILE="services_absent.json"
|
||||
|
||||
echo "{" > "$FILE"
|
||||
|
||||
echo " \"services\": [" >> "$FILE"
|
||||
|
||||
for i in $(seq 1 "$NUM"); do
|
||||
echo " {" >> "$FILE"
|
||||
echo " \"name\": \"HTTP/www.example$i.com\"," >> "$FILE"
|
||||
if [ "$i" -lt "$NUM" ]; then
|
||||
echo " }," >> "$FILE"
|
||||
else
|
||||
echo " }" >> "$FILE"
|
||||
fi
|
||||
done
|
||||
|
||||
echo " ]" >> "$FILE"
|
||||
|
||||
echo "}" >> "$FILE"
|
||||
Reference in New Issue
Block a user