Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class profile::wordpress {
- include 'docker'
- package { 'deltarpm':
- ensure => installed,
- }
- package { 'lvm2':
- ensure => absent,
- }
- docker::image { 'wordpress':
- ensure => 'present',
- }
- docker::run { 'wordpress':
- image => 'wordpress',
- require => Docker::Image['wordpress'],
- env => [
- 'WORDPRESS_DB_PASSWORD=wordpress',
- 'WORDPRESS_DB_USER=wordpress',
- 'WORDPRESS_DB_NAME=wordpress',
- "WORDPRESS_DB_HOST=${::ipaddress}"
- ],
- ports => ['8081:80'],
- expose => ['80'],
- }
- class { '::mysql::server':
- override_options => {
- 'mysqld' => {
- 'bind-address' => '0.0.0.0',
- }
- }
- }
- mysql::db { "wordpress":
- user => 'wordpress',
- password => 'wordpress',
- host => '%',
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement