Use this image to test your puppet code
- git
- puppet
- wget
- puppet-linter
- puppetlabs-concat
Pull the container
docker pull jonadup/puppet
Run the container with your code:
Go to your puppet module folder
docker run --rm -it -v $PWD:/root/puppet/ -t jonadup/puppet <command>
This command will perform a "puppet parser validate" on your puppet code
docker run --rm -it -v $PWD:/root/puppet/ -t jonadup/puppet parser
This command will perform a "puppet-lint" on all your puppet code
docker run --rm -it -v $PWD:/root/puppet/ -t jonadup/puppet linter
This command will try to execute your puppet code
docker run --rm -it -v $PWD:/root/puppet/ -t jonadup/puppet apply
Don't forget to put some manifest file on your module folder