Based on the great work from pierrer: https://registry.hub.docker.com/u/pierrer/puppetresources/
We have just added make on the container to be able to run our tests from makefiles.
Makefile Example:
dump-facts:
pdbquery -l http://ci-puppetmaster.lan:8080 -t remote dumpfacts
test-hermes: dump-facts
puppetresources -v ERROR -p /tmp -o hermes.interne.arsia.be --hiera /tmp/hiera.yaml --facts-override /tmp/tests/facts.yaml --pdbfile /tmp/allfacts.yaml --nousergrouptest --ignoremodules foreman,puppet,nagios
test-hermes-docker:
docker run -v $(PWD):/tmp -w /tmp --dns=10.0.200.1 -t -i jfroche/puppetresources make test-hermes
Content type
Image
Digest
sha256:a0655539d…
Size
144.6 MB
Last updated
almost 11 years ago
docker pull jfroche/puppetresources