Forge Home

docker_auth

Docker Registry 2 authentication server

8,362 downloads

6,972 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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.

Download

Documentation

cristifalcas/docker_auth — version 0.3.1 Feb 21st 2017

docker_auth

Build Status

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

Support

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.

Usage:

      include docker_auth

Install distribution and docker_auth (on machine distribution-01.company.net):

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              => 'docker.io/registry:2.6.0',
        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 => 'docker.io/cesanta/docker_auth:1.2',
        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              => 'docker.io/registry:2.6.0',
        http_tls                     => true,
        storage_delete               => true,
        proxy_remoteurl              => 'https://distribution-01.company.net',
      }