Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class profile::mariadb(
- String $root_password = 'JustSomethingReallyLongBetterYetLonger!'
- ) {
- include '::mysql::server'
- apt::source { 'mariadb':
- location => 'http://mirror.mva-n.net/mariadb/repo/10.3/ubuntu',
- release => $::lsbdistcodename,
- repos => 'main',
- key => {
- id => '177F4010FE56CA3336300305F1656F24C74CD1D8',
- server => 'hkp://keyserver.ubuntu.com:80',
- },
- include => {
- src => false,
- deb => true,
- },
- }
- class {'::mysql::server':
- package_name => 'mariadb-server',
- service_name => 'mysql',
- root_password => $root_password,
- override_options => {
- mysqld => {
- 'log-error' => '/var/log/mysql/mariadb.log',
- 'pid-file' => '/var/run/mysqld/mysqld.pid',
- },
- mysqld_safe => {
- 'log-error' => '/var/log/mysql/mariadb.log',
- },
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement