Puppet+Docker: In context of running a container, what all commands does puppetlabs/docker module support?

0 votes
Aug 14 in Puppet by Karan
• 5,370 points
23 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 by Sirajul
• 36,820 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
168 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 in Puppet by Sirajul
• 36,820 points
33 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
218 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 in Puppet by Sirajul
• 36,820 points
17 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 21 in Puppet by Sirajul
• 36,820 points
690 views