Notas – puppet / docker

test#install docker-puppet interface
  puppet module install garethr-docker

#BEGIN
include ‘docker’

docker::image { ‘httpd’:
image_tag => ‘latest’,
}

docker::image { ‘httpd’:
image_tag => ‘latest’,
}

docker::image { ‘mysql’:
image_tag => ‘latest’,
}

docker::run { ‘test’:
image => ‘mysql’,
command => ‘docker run -p 192.168.0.244:3306:3306 –name test -e MYSQL_ROOT_PASSWORD=1234 -d mysql:latest’,
}

docker::run { ‘apache1’:
image => ‘httpd’,
command => ‘docker run -p 192.168.0.244:80:80 -it –name apache1 -v “$PWD”:/root/htdocs -d httpd:latest’,
}

package {‘awscli’:
ensure =>present,
ensure => installed,
}

Leave a Comment