Advertisement
meggenberger

Untitled

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