Install Apache2 to test symlinks management in the ansible manifests
This commit is contained in:
parent
ca4cf00e84
commit
aea58c8684
1 changed files with 7 additions and 1 deletions
8
tests.sh
8
tests.sh
|
|
@ -9,6 +9,10 @@ BUNDLE_DIR="/tmp/bundle"
|
||||||
ANSIBLE_DIR="/tmp/ansible"
|
ANSIBLE_DIR="/tmp/ansible"
|
||||||
rm -rf "${BUNDLE_DIR}" "${ANSIBLE_DIR}"
|
rm -rf "${BUNDLE_DIR}" "${ANSIBLE_DIR}"
|
||||||
|
|
||||||
|
# Install something that has symlinks like apache2,
|
||||||
|
# to extend the manifests that will be linted later
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apache2
|
||||||
|
|
||||||
# Generate data
|
# Generate data
|
||||||
poetry run \
|
poetry run \
|
||||||
enroll single-shot \
|
enroll single-shot \
|
||||||
|
|
@ -21,8 +25,10 @@ poetry run \
|
||||||
poetry run \
|
poetry run \
|
||||||
enroll explain "${BUNDLE_DIR}" --format json | jq
|
enroll explain "${BUNDLE_DIR}" --format json | jq
|
||||||
|
|
||||||
# Install something, harvest again and diff the harvests
|
# Install/remove something, harvest again and diff the harvests
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cowsay
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cowsay
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y apache2
|
||||||
|
|
||||||
poetry run \
|
poetry run \
|
||||||
enroll harvest --out "${BUNDLE_DIR}2"
|
enroll harvest --out "${BUNDLE_DIR}2"
|
||||||
poetry run \
|
poetry run \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue