Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2669

Provide Official Docker PuppetDB

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      For minimal acceptance, the PuppetDB Docker container must:

      • Work out-of-the-box with any puppetserver, whether a Docker deployment or a standard install
      • Provide simple configuration (no significant complexity beyond normal configuration)
      • Provide persistence
      • Include adequate user-end documentation

      The container must provide the maintainers with a minimal-effort maintenance cycle:

      • Containers should automatically rebuild on Docker Hub when updated in git
      • System patches (e.g. Ubuntu 14.04) should automatically trigger a rebuild on Docker Hub
      • Updating to new releases must be trivial

      The first two are features of Docker Hub; the last is accomplished by a simple update process:

      • Add a new build directory for each release (e.g. puppetdb/pc2/)
      • Modify the Dockerfile there to reflect the new version (e.g. "pc2" instead of "pc1")
      • Add the new path as a tag target to Docker Hub (e.g. /puppetdb/pc2/ = pc2)
      Show
      For minimal acceptance, the PuppetDB Docker container must: Work out-of-the-box with any puppetserver, whether a Docker deployment or a standard install Provide simple configuration (no significant complexity beyond normal configuration) Provide persistence Include adequate user-end documentation The container must provide the maintainers with a minimal-effort maintenance cycle: Containers should automatically rebuild on Docker Hub when updated in git System patches (e.g. Ubuntu 14.04) should automatically trigger a rebuild on Docker Hub Updating to new releases must be trivial The first two are features of Docker Hub; the last is accomplished by a simple update process: Add a new build directory for each release (e.g. puppetdb/pc2/) Modify the Dockerfile there to reflect the new version (e.g. "pc2" instead of "pc1") Add the new path as a tag target to Docker Hub (e.g. /puppetdb/pc2/ = pc2)

      Description

      Provide a PuppetDB docker container suitable for an official branch on docker hub. This adds onto PUP-6262 to provide a Puppetserver deployment with PuppetDB in one quick configuration.

      Once provided, a user can create a Puppetserver with PuppetDB via such a docker-compose file:

      ```

      1. docker-compose.yml for Puppet
      2. e.g. /opt/containers/puppet/docker-compose.yml
        puppetserver:
        image: puppetserver:pc1
        environment:
        PUPPETSERVER_HOSTNAME: puppet.example.com
        PUPPETSERVER_GENCONFIG: yes
        ports:
      • "8140:8140"
        volumes:
      • /opt/containers/puppet/data/ssl:/etc/puppetlabs/puppet/ssl
      • /opt/containers/puppet/data/code:/etc/puppetlabs/code
        links:
      • puppetdb
        restart: always
        puppetdb:
        image: puppetdb:pc1
        environment:
        PUPPETSERVER_HOSTNAME: puppet.example.com
        PUPPETSERVER_GENCONFIG: yes
        PUPPETDB_SERVER: "db"
        PUPPETDB_DATABASE: "puppetdb"
        PUPPETDB_PASSWORD: "puppetdb"
        expose:
      • 8081
        links:
      • db
        restart: always
        db:
        image: postgres:9.5
        environment:
        POSTGRES_USER: "puppetdb"
        POSTGRES_PASSWORD: "puppetdb"
        expose:
      • 5432
        volumes:
      • /opt/containers/puppet/data/db:/var/lib/postgresql/data
        restart: always
        ```

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  john.r.moser@gmail.com John Moser
                  Reporter:
                  john.r.moser@gmail.com John Moser
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: