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
802 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, 2019 by Sirajul
• 59,230 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
1,328 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, 2019 in Puppet by Sirajul
• 59,230 points
2,124 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, 2019 in Puppet by Sirajul
• 59,230 points
663 views
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,230 points
939 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, 2019 in Puppet by Sirajul
• 59,230 points
730 views
+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,090 points
2,467 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP