/ubuntu-foreman

Docker image with Ubuntu hosted Puppet Foreman

Primary LanguageShellGNU General Public License v2.0GPL-2.0

Docker project: gbevan/ubuntu-foreman

This image was put together for training and demo purposes. If intending any real use of this image, then you should seriously consider persistent volumes (see below) for all critical data and configuration.

With Puppet Foreman 1.15 and latest Ansible v2

The container simply automates instructions at - http://theforeman.org/manuals/1.15/index.html#2.Quickstart

  • and layers on the latest current version of Ansible.

To use it:

docker run --restart=always -d \
  -p 443:443 -p 8443:8443 -p 8140:8140 \
  -h foreman.example.com \
  --init \
  --name foreman \
  gbevan/ubuntu-foreman

(Optional option --restart=always ensures the container is restarted in the event of failure or restart of the parent server/docker daemon.)

Monitor the foreman install log, as it completes the installation:

docker logs -f foreman

Point your browser at https://your-host

Contributing

Feel free to submit Pull Requests at https://github.com/gbevan/ubuntu-foreman

Persistent Volumes

You should probably make these (at least) persistent volumes:

/etc/foreman-installer
/etc/puppetlabs
/var/lib/foreman
/var/lib/postgresql
/var/log