Puppet Docker In context of running a container what all commands does puppetlabs docker module support

0 votes
Aug 14, 2019 in Puppet by Karan
• 19,550 points
1,564 views

1 answer to this question.

0 votes

Within the context of a running container, the docker module supports arbitrary commands such as:

docker::exec { 'cron_allow_root':
  detach       => true,
  container    => 'mycontainer',
  command      => '/bin/echo root >> /usr/lib/cron/cron.allow',
  onlyif       => 'running',
  tty          => true,
  env          => ['FOO=BAR', 'FOO2=BAR2'],
  unless       => 'grep root /usr/lib/cron/cron.allow 2>/dev/null',
  refreshonly  => true,
}
answered Aug 14, 2019 by Sirajul
• 59,190 points

Related Questions In Puppet

0 votes
1 answer
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
2,400 views
0 votes
1 answer

Does puppet help when all my servers are one of a kind?

Indeed, Puppet can help. All servers are in ...READ MORE

answered Jul 30, 2019 in Puppet by Sirajul
• 59,190 points
1,359 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,859 views
0 votes
1 answer

Puppet in Docker: Running puppet commands inside a docker container.

You can use Puppet commands, such as resource.  The following command ...READ MORE

answered Aug 19, 2019 in Puppet by Sirajul
• 59,190 points
1,403 views
0 votes
1 answer

Puppet+Kubernetes : What all Kubernetes features does puppetlabs/kubernetes module support?

The module currently supports types for kubernetes_pod kubernetes_service kubernetes_replication_controller kubernetes_node kubernetes_event kubernetes_endpoint kubernetes_namespace kubernetes_secret kubernetes_resource_quota kubernetes_limit_range kubernetes_peristent_volume kubernetes_persistent_volume_claim kubernetes_component_status kubernetes_service_account Not all ...READ MORE

answered Aug 22, 2019 in Puppet by Sirajul
• 59,190 points
1,916 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