Embed presentation
Downloaded 13 times




![Instead write
include ‘::ntp'
or customize:
class { '::ntp':!
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],!
}](https://image.slidesharecdn.com/dockerug2014-10-13-141021133021-conversion-gate01/75/Automating-Docker-Containers-with-Puppet-2014-10-13-5-2048.jpg)





![Building: puppet apply
FROM jamtur01/puppetbase
MAINTAINER James Turnbull "james@lovedthanlost.net"
!
RUN apt-get -y -q install wget git-core
ADD Puppetfile /
RUN librarian-puppet install
RUN puppet apply --modulepath=/modules -e "class
{ 'nginx': }"
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx"]](https://image.slidesharecdn.com/dockerug2014-10-13-141021133021-conversion-gate01/75/Automating-Docker-Containers-with-Puppet-2014-10-13-11-2048.jpg)









The document discusses the automation of Docker containers using Puppet, detailing two methods for running code: Puppet apply and Puppet agent. It provides examples for building and running containers with specific configurations, such as installing NTP and Nginx. The document also touches on the nuances of running Puppet agents inside containers and the conditions under which they operate.




![Instead write
include ‘::ntp'
or customize:
class { '::ntp':!
servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],!
}](https://image.slidesharecdn.com/dockerug2014-10-13-141021133021-conversion-gate01/75/Automating-Docker-Containers-with-Puppet-2014-10-13-5-2048.jpg)





![Building: puppet apply
FROM jamtur01/puppetbase
MAINTAINER James Turnbull "james@lovedthanlost.net"
!
RUN apt-get -y -q install wget git-core
ADD Puppetfile /
RUN librarian-puppet install
RUN puppet apply --modulepath=/modules -e "class
{ 'nginx': }"
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx"]](https://image.slidesharecdn.com/dockerug2014-10-13-141021133021-conversion-gate01/75/Automating-Docker-Containers-with-Puppet-2014-10-13-11-2048.jpg)








