Compare commits
No commits in common. "722a8bdb6856302dc85642d30b6951393d534ee1" and "07d54eba92531a7d01130f424a9b142917cec1d3" have entirely different histories.
722a8bdb68
...
07d54eba92
|
@ -90,11 +90,6 @@ define sunetdrive::db_type(
|
||||||
ok_criteria => ['exit_status=0','max_age=2d'],
|
ok_criteria => ['exit_status=0','max_age=2d'],
|
||||||
warn_criteria => ['exit_status=1','max_age=3d'],
|
warn_criteria => ['exit_status=1','max_age=3d'],
|
||||||
}
|
}
|
||||||
file { '/usr/local/bin/mysql':
|
|
||||||
ensure => present,
|
|
||||||
content => template('sunetdrive/mariadb/mysql.erb.sh'),
|
|
||||||
mode => '0744',
|
|
||||||
}
|
|
||||||
file { '/usr/local/bin/size-test':
|
file { '/usr/local/bin/size-test':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => template('sunetdrive/mariadb/size-test.erb'),
|
content => template('sunetdrive/mariadb/size-test.erb'),
|
||||||
|
|
|
@ -109,12 +109,12 @@ class sunetdrive::script (
|
||||||
require => Package['python3'],
|
require => Package['python3'],
|
||||||
}
|
}
|
||||||
file { '/opt/backups':
|
file { '/opt/backups':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0700'
|
mode => '0700'
|
||||||
}
|
}
|
||||||
file { '/opt/backups/scripts':
|
file { '/opt/backups/scripts':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => '0700'
|
mode => '0700'
|
||||||
}
|
}
|
||||||
file { '/root/.ssh/':
|
file { '/root/.ssh/':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
pw=$(yq -r '.services.db.environment[0]' /opt/mariadb/docker-compose.yml | awk -F '=' '{print $2}')
|
|
||||||
|
|
||||||
docker exec -ti mariadb_db_1 mysql -u root -p"${pw}" -e "${@}"
|
|
Loading…
Reference in a new issue