Forge Home


Docker Registry 2 authentication server


6,608 latest version

4.3 quality score

Version information

  • 0.3.1 (latest)
  • 0.3.0
  • 0.2.1
  • 0.2.0
released Feb 21st 2017
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet >=3.4.0 <5.0.0
  • , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'cristifalcas-docker_auth', '0.3.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add cristifalcas-docker_auth
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install cristifalcas-docker_auth --version 0.3.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



cristifalcas/docker_auth — version 0.3.1 Feb 21st 2017


Build Status

Puppet module for installing, configuring and managing a docker 2.0 authorization server (specifically cesanta implementation)


This module is currently only for RedHat clones 7.x:

In order to print the yaml config file, we are using some lib files from puppet-elasticsearch module.


      include docker_auth

Install distribution and docker_auth (on machine

If you want to start the server from a container (manage_as => 'container'), you will need to create the folder where $config_file will be written, outside of this module:

      file { '/etc/docker_auth/': ensure => 'directory', }
      class { '::docker_distribution':
        manage_as                    => 'container',
        container_image              => '',
        http_tls                     => true,
        storage_delete               => true,
        auth_type                    => 'token',
        auth_token_realm             => "https://${::fqdn}:5002/auth",
        auth_token_issuer            => 'Auth Service',
        auth_token_rootcertbundle    => "/var/lib/puppet/ssl/certs/${::fqdn}.pem",

      class { '::docker_auth':
        manage_as       => 'container',
        container_image => '',
        server_addr     => ':5002',

Use the above for a local docker distribution proxy (works only with distribution version 2.6 and up):

      class { '::docker_distribution':
        manage_as                    => 'container',
        container_image              => '',
        http_tls                     => true,
        storage_delete               => true,
        proxy_remoteurl              => '',