Advertisement
meggenberger

Untitled

Jan 5th, 2019
3,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.90 KB | None | 0 0
  1. class profile::mariadb(
  2.   String $root_password = 'JustSomethingReallyLongBetterYetLonger!'
  3.   ) {
  4.   include '::mysql::server'
  5.  
  6.   apt::source { 'mariadb':
  7.     location => 'http://mirror.mva-n.net/mariadb/repo/10.3/ubuntu',
  8.     release  => $::lsbdistcodename,
  9.     repos    => 'main',
  10.     key      => {
  11.       id     => '177F4010FE56CA3336300305F1656F24C74CD1D8',
  12.       server => 'hkp://keyserver.ubuntu.com:80',
  13.     },
  14.     include  => {
  15.       src => false,
  16.       deb => true,
  17.     },
  18.   }
  19.  
  20.   class {'::mysql::server':
  21.     package_name     => 'mariadb-server',
  22.     service_name     => 'mysql',
  23.     root_password    => $root_password,
  24.     override_options => {
  25.       mysqld      => {
  26.         'log-error' => '/var/log/mysql/mariadb.log',
  27.         'pid-file'  => '/var/run/mysqld/mysqld.pid',
  28.       },
  29.       mysqld_safe => {
  30.         'log-error' => '/var/log/mysql/mariadb.log',
  31.       },
  32.     }
  33.   }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement