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 in Puppet by Vaibhav
29 views

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   => '192.168.1.0/24',
  gateway  => '192.168.1.1',
  ip_range => '192.168.1.4/32',
}
  • 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>://172.17.8.101:<port> --cluster-advertise=<interface>:2376'
  • A defined network can be used on a docker::run resource with the net parameter.

answered Aug 14 by Sirajul
• 30,540 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 in Puppet by Jason
150 views
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 in Puppet by Sirajul
• 30,540 points
50 views
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 in Puppet by Sirajul
• 30,540 points
35 views
0 votes
1 answer

Puppet: managing firewall rules

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

answered Aug 2 in Puppet by Sirajul
• 30,540 points
35 views
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 in Puppet by Sirajul
• 30,540 points
23 views
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
189 views