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,610 points
906 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,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,516 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,230 points
753 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,715 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,230 points
692 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,230 points
1,277 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