Puppet in Docker How do i run my dockerized puppet container periodically

0 votes

Puppet shouldn't exit after the first run of the docker container, instead it should apply Puppet every 30 minutes.How do I achieve this?

Aug 19, 2019 in Puppet by Karan
• 19,610 points
1,117 views

1 answer to this question.

0 votes

Instead of running a Dockerized puppet container onetime, which means that Puppet exits after the first run, the container can be run with any arbitrary Puppet commands, such as:

docker run --net puppet puppet/puppet-agent-ubuntu agent --verbose --no-daemonize --summarize

This container won't exit, and instead applies Puppet every 30 minutes based on the latest content from the Puppet Server (30 mins being the default polling time in puppet).

answered Aug 19, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

Puppet in Docker: How do I query PuppetDB API in a container setup?

PuppetDB exposes a dashboard, showing various operational ...READ MORE

answered Aug 20, 2019 in Puppet by Sirajul
• 59,230 points
1,094 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, 2019 in Puppet by Sirajul
• 59,230 points
1,001 views
0 votes
1 answer

Puppet in Docker : How do i launch puppet agents (test agents) in Docker containers?

You could connect any agents to the ...READ MORE

answered Aug 20, 2019 in Puppet by Sirajul
• 59,230 points
1,832 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,020 points
2,706 views
0 votes
1 answer

Puppet+Docker: How do i configure my docker container to use a NFS volume?

docker_volume { 'nfs-volume': ensure => ...READ MORE

answered Aug 13, 2019 in Puppet by Sirajul
• 59,230 points
742 views
0 votes
1 answer

Puppet+Docker: How do i configure my docker container to use a NFS volume through a Hiera config file?

If using Hiera, configure the docker::volumes class in the ...READ MORE

answered Aug 14, 2019 in Puppet by Sirajul
• 59,230 points
925 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