Introduce enroll explain
A tool to analyze and explain what's in (or not in) a harvest and why.
This commit is contained in:
parent
56d0148614
commit
59674d4660
6 changed files with 693 additions and 2 deletions
18
tests.sh
18
tests.sh
|
|
@ -15,8 +15,24 @@ poetry run \
|
|||
--harvest "${BUNDLE_DIR}" \
|
||||
--out "${ANSIBLE_DIR}"
|
||||
|
||||
builtin cd "${ANSIBLE_DIR}"
|
||||
# Analyse
|
||||
poetry run \
|
||||
enroll explain "${BUNDLE_DIR}"
|
||||
poetry run \
|
||||
enroll explain "${BUNDLE_DIR}" --format json | jq
|
||||
|
||||
# Install something, harvest again and diff the harvests
|
||||
sudo apt-get -y install cowsay
|
||||
poetry run \
|
||||
enroll harvest --out "${BUNDLE_DIR}2"
|
||||
poetry run \
|
||||
enroll diff \
|
||||
--old "${BUNDLE_DIR}" \
|
||||
--new "${BUNDLE_DIR}2" \
|
||||
--format json | jq
|
||||
|
||||
# Ansible test
|
||||
builtin cd "${ANSIBLE_DIR}"
|
||||
# Lint
|
||||
ansible-lint "${ANSIBLE_DIR}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue