Puppet Docker Managing Docker networks

0 votes

I have a two containers running on different Docker hosts and to enable communication between them i need to configure an overlay network. Is this supported in puppet+docker integration? How do i manage networks in this case? Suggestions would be of great help.

Aug 14, 2019 in Puppet by Vaibhav

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
  • To expose the docker_network type that is used to manage networks, add the following code to the manifest file:

docker_network { 'my-net':
  ensure   => present,
  driver   => 'overlay',
  subnet   => '',
  gateway  => '',
  ip_range => '',
  • The name value and the ensure parameter are required.

  •  If you do not include the driver value, the default bridge is used. 

  • The Docker daemon must be configured for the overlay network.

  • To configure the cluster store, update the docker class in the manifest file:

extra_parameters => '--cluster-store=<backend>://<port> --cluster-advertise=<interface>:2376'
  • A defined network can be used on a docker::run resource with the net parameter.

answered Aug 14, 2019 by Sirajul
• 59,090 points

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12, 2019 in Puppet by Jason
0 votes
1 answer

Managing a NTP service using Puppet

You’ve just  finished installing the puppetlabs-ntp module. The next step ...READ MORE

answered Jul 25, 2019 in Puppet by Sirajul
• 59,090 points
0 votes
1 answer

Managing a Domain Name System (DNS) nameserver file with Puppet.

In this case, you could  build a private ...READ MORE

answered Jul 26, 2019 in Puppet by Sirajul
• 59,090 points
0 votes
1 answer

Puppet: managing firewall rules

You can easily manage the firewall rules ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 59,090 points
0 votes
1 answer

What's the need to integrate docker with puppet?

There are 3 core use cases for integrating docker with Puppet or with ...READ MORE

answered Aug 13, 2019 in Puppet by Sirajul
• 59,090 points
+2 votes
1 answer
+2 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
• 58,140 points