From db024287a8ebc250ff190947f78cda3595457c03 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson <alexander.olofsson@liu.se> Date: Thu, 3 Nov 2016 14:16:13 +0100 Subject: [PATCH] Add MySQL --- manifests/init.pp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 4334536..1f24717 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -52,6 +52,7 @@ class skadereg { } include skadereg::firewall + include ::yum::centos_scl include ::apache class { '::apache::mod::php': @@ -64,8 +65,6 @@ class skadereg { 'php55-php-common': ensure => installed; } - - file { '/etc/httpd/modules/libphp5.so': ensure => link, target => '/opt/rh/httpd24/root/usr/lib64/httpd/modules/libphp55-php5.so', @@ -116,13 +115,18 @@ class skadereg { user => 'andal699' } - include ::yum::centos_scl - - file { '/tmp/example': - ensure => file, - content => template('skadereg/example.erb'), - owner => andal699, - group => andal699, - mode => '0400', + class { '::mysql::server': + root_password => 'ControlAvHandboll', + databases => { + 'homestead' => { + ensure => present, + charset => 'utf8', + } + }, + override_options => { + mysqld => { + port => 33060 + } + } } } -- GitLab