Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Created March 8, 2016 00:56
Show Gist options
  • Select an option

  • Save GeoffWilliams/ce8460a9051859435658 to your computer and use it in GitHub Desktop.

Select an option

Save GeoffWilliams/ce8460a9051859435658 to your computer and use it in GitHub Desktop.
Docker in PE example profile. Sets up Docker and runs mongo. Copy to /etc/puppetlabs/code/environments/production/site/profile/manifests/docker.pp -- then create role::docker and clasify NAMED node using site.pp. Dont do default as it may take over other sytems
class profile::docker {
include docker
$image = "mongo"
docker::image { $image: }
docker::run { $image:
image => $image,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment