Compare commits

..

No commits in common. "aade6fb2c7d6647befd8ece45f4cd8c64d70c8df" and "0bf3ebfc533fdc9cb55c1ea9a016c88a11635e20" have entirely different histories.

3 changed files with 4 additions and 13 deletions

View file

@ -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'),

View file

@ -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}" "${@}"