What's the need to integrate docker with puppet?

0 votes
As per my knowledge both docker and puppet can be used to carry out similar kind of tasks. In such a scenario Why exactly do i need to integrate docker with puppet? What's the advantage of such an approach?
Aug 13 in Puppet by Sandra
23 views

1 answer to this question.

0 votes

There are 3 core use cases for integrating docker with Puppet or with another configuration management tool:

  • Using configuration management to provision the docker service on a host, so it's available to manage docker instances.

  • Adding or removing specific Docker instances, such as a containerized web server, on managed hosts.

  • Managing complicated or dynamic configurations within docker containers using configuration management tools (for example, Puppet agent) baked into the docker image.

You can use Puppet to solve two problems with large Docker workflows:

  1. You have a Puppet code base and you're moving some of your services into containers. By sharing the same code across your infrastructure, regardless of whether or not it uses containers, you can cut down on duplication of effort, and take advantage of work you've already done.

  2. You're building many images, but scaling Dockerfile involves either a complex hierarchy of images or copying and pasting snippets between many individual Dockerfiles. The image_build Puppet module lets you share common functionality using the familiar Puppet modules mechanism, and Puppet itself provides a rich domain-specific language for a declarative composition of images.

There are a lot of benefits with this approach:

  1. Time saver: The puppet manifest that provisions a service is only required to run once, during image creation. The same image can be used in test, staging, production and development, lowering the diversity of environments.

  2. Portability: the image can be used in any virtualization, in the cloud or on bare metal.

  3. Rollbacks are always possible and are always simple: we can always spin up a previous image.

answered Aug 13 by Sirajul
• 29,660 points

Related Questions In Puppet

0 votes
0 answers

Puppet+Docker: Rebuild an image with respect to changes in dockerfile

I am building a docker image via ...READ MORE

Aug 13 in Puppet by Sam
• 2,140 points
14 views
0 votes
1 answer

Docker with Puppet: How do i run the following command "docker build -t ubuntu /tmp/ubuntu_image" using puppet code?

 Hey @Liana, Including the docker_dir parameter is equivalent to ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 29,660 points
25 views
0 votes
1 answer

Docker with puppet: Can I validate the puppetlabs/docker module?

Yes, you can! This module is compliant with ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 29,660 points
16 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,900 points
187 views
0 votes
1 answer

Docker with Puppet: DNS allocation to the Docker Daemon

Hey @Dipika, to allocate a dns server ...READ MORE

answered Aug 16 in Puppet by Sirajul
• 29,660 points
20 views
0 votes
0 answers