Sign inSign up

vshn/puppet-mcoclient

By vshn

Updated about 5 years ago

VSHN Puppet Environment in Docker - MCollective Client feat. r10k and Choria

Image
1

4.8K

vshn/puppet-mcoclient repository overview

MCollective Client Image feat. Choria and r10k Plugin

Docker Hub: vshn/puppet-mcoclient

Introduction

This image contains the MCollective client with the Choria and r10k plugin. It's mainly useful for example to deploy Puppet code from a CI pipeline.

Usage

Environment variables
NameDescriptionDefault value
CA_CERTIFICATEMandatory: content of ca certificate-
CA_SERVERPuppet CA server to request certificatepuppetca.local
CERTIFICATEMandatory: content of client certificate-
MCOLLECTIVE_CERTNAMEMCollective identity to usedeployer.mcollective
NATSFQDN and port of NATS servernats.local:4222
PRIVATE_KEYMandatory: content of private key-
PUPPETDBFQDN of PuppetDBpuppetdb.local
PUPPETSERVERFQDN of Puppetserverpuppetserver.local
SKIP_CERT_CONFIGIf set to true, skips certificate config-
MCollective client

There is a Docker Compose file available which helps to set the correct parameters.

For getting a client certificate initially, start the container with SKIP_CERT_CONFIG set to true and use the Choria helper:

docker-compose run --rm -e SKIP_CERT_CONFIG=true deployer bash
mco choria request_cert
cat .puppetlabs/etc/puppet/ssl/certs/$MCOLLECTIVE_CERTNAME.pem
cat .puppetlabs/etc/puppet/ssl/certs/ca.pem
cat .puppetlabs/etc/puppet/ssl/private_keys/$MCOLLECTIVE_CERTNAME.pem

Put the output of the cat into their respective environment variables in docker-compose.yaml.

The container is now ready. Example invocation of MCollective r10k:

docker-compose run --rm deployer mco r10k deploy <environment>

See voxpupuli/puppet-r10k for a detailed documentation about the r10k plugin.

Details

  • Ports exposed: -
  • Volumes: -
  • Based on: ubuntu:16.04
Entrypoint scripts
NameDescription
21-mcollective-config.shConfigures the MCollective client on startup

Tag summary

Content type

Image

Digest

Size

92 MB

Last updated

over 7 years ago

docker pull vshn/puppet-mcoclient