Jira (PDB-2669) Provide Official Docker PuppetDB

1 view
Skip to first unread message

John Moser (JIRA)

unread,
May 4, 2016, 6:02:03 PM5/4/16
to puppe...@googlegroups.com
John Moser created an issue
 
PuppetDB / New Feature PDB-2669
Provide Official Docker PuppetDB
Issue Type: New Feature New Feature
Assignee: John Moser
Created: 2016/05/04 3:01 PM
Labels: trivial puppetdb
Priority: Normal Normal
Reporter: John Moser

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
    ```
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

John Moser (JIRA)

unread,
May 4, 2016, 6:06:03 PM5/4/16
to puppe...@googlegroups.com
John Moser commented on New Feature PDB-2669
 
Re: Provide Official Docker PuppetDB

Currently scaffolded based on the

{puppetserver}

module. Visible in the feature/puppetdb branch:

https://github.com/bluefoxicy/docker-puppet/tree/feature/puppetdb/puppetdb

Doesn't actually run yet; I'm not a puppetdb user and am kind of blind on this one.

Wyatt Alt (JIRA)

unread,
May 4, 2016, 11:17:02 PM5/4/16
to puppe...@googlegroups.com
Wyatt Alt commented on New Feature PDB-2669

John Moser thanks for putting this together. If we go through with it I imagine a coordinated release (rather than an independent PDB effort) would be required across at least the products you've raised tickets against, and maybe more. The relevant people have been pinged between this ticket and the PUP one; we'll update you when the situation clarifies.

John Moser (JIRA)

unread,
May 5, 2016, 11:54:03 AM5/5/16
to puppe...@googlegroups.com
John Moser commented on New Feature PDB-2669

Both approaches make sense. I've focused mostly on the Puppetserver; PuppetDB is actually unfamiliar to me.

I do hope to extend these to Puppetserver-Enterprise, including puppetlabs's Puppet Enterprise ENC. This would allow Enterprise users to stand up any docker-compatible system (Alpine, CentOS, Ubuntu, etc.) and immediately deploy Puppetlabs Enterprise software products. As with PuppetDB, I'm not a user of Puppetlabs Enterprise products.

Running inside Docker isolates Puppet and MCollective agents from the system, and would result in Facter returning facts about the container instead of the host. Those products are excluded.

Gareth Rushgrove (JIRA)

unread,
May 13, 2016, 4:31:02 AM5/13/16
to puppe...@googlegroups.com

Hi John Moser. I'm Gareth, one of the engineers at Puppet. As it happens I've been working on official docker images for various bits of Puppet software recently. I'll look to get the repository I'm working on opened up in the next week or so and update here when I do. Certainly open to collaborating on that. My implementation is pretty similar to what you have, along with a bunch of build toolchain stuff and testing.

In the meantime, I'd love to understand your usecases. What made you consider running Puppet in Docker in the first place? What advantages do you see in doing so?

Thanks again. Hopefully you'll like what I have so far, it's still definitely work in progress.

Neil Katin (JIRA)

unread,
Jul 31, 2016, 9:13:05 PM7/31/16
to puppe...@googlegroups.com
Neil Katin commented on New Feature PDB-2669

I'll throw in my 2 cents for a use-case for puppetdb-in-docker.

I'm running puppet on fedora 24. There is no puppetdb packages for fedora; having puppetdb in docker would make it easy to run puppetdb without forcing a different OS on the host.

Gareth Rushgrove (JIRA)

unread,
Aug 1, 2016, 3:17:05 AM8/1/16
to puppe...@googlegroups.com

We now have Docker images available on Hub for various bits of Puppet software.

You can find the images, including a PuppetDB image, at:
https://hub.docker.com/u/puppet/

The tools used to build, including Dockerfiles, are in:
https://github.com/puppetlabs/puppet-in-docker

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:56:10 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature puppetdb trivial
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages