sunetdrive/manifests/redis_cluster.pp

27 lines
790 B
ObjectPascal
Raw Normal View History

2023-02-13 09:44:56 +00:00
#Class for SUNET-Drive-Cache
class sunetdrive::redis_cluster (
$location = undef,
)
{
$customer = sunetdrive::get_customer()
$redis_password = safe_hiera('redis_password')
package { 'redis-tools': ensure => latest, provider => 'apt' }
file { '/usr/local/bin/bootstrap_cluster':
ensure => present,
content => template('sunetdrive/redis_cluster/bootstrap_cluster.erb.sh'),
mode => '0700',
}
file { '/usr/local/bin/reset_cluster':
ensure => present,
content => template('sunetdrive/redis_cluster/reset_cluster.erb.sh'),
mode => '0700',
}
2024-10-21 14:13:51 +00:00
exec { 'set_permissions_directory':
command => 'chown -R 999:root /opt/redis/node-*'
}
exec { 'set_permissions_files':
2024-10-21 14:19:04 +00:00
command => 'chown -R 999:999 /opt/redis/node-*/*'
2024-10-21 14:13:51 +00:00
}
2023-02-13 09:44:56 +00:00
}