From 08243f555d3446e62e554cec64d9b67ed446370f Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 12 Jun 2023 11:42:00 +0200 Subject: [PATCH] Add back index --- manifests/db_type.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/db_type.pp b/manifests/db_type.pp index 8c1a853..7c953b4 100644 --- a/manifests/db_type.pp +++ b/manifests/db_type.pp @@ -29,7 +29,7 @@ define sunetdrive::db_type( $mysql_user_password = safe_hiera('mysql_user_password') $mariadb_dir = '/etc/mariadb' $mycnf_path = 'sunetdrive/mariadb/my.cnf.erb' - $server_id = 1000 + Integer($facts['networking']['hostname']) + $server_id = 1000 + Integer($facts['networking']['hostname'][-1]) ensure_resource('file',$mariadb_dir, { ensure => directory, recurse => true } ) $dirs = ['datadir', 'init', 'conf', 'backups', 'scripts' ] $dirs.each |$dir| {