Let's gooooo

This commit is contained in:
Micke Nordin 2025-03-12 11:44:08 +01:00
parent 33389e842a
commit d010d27f20
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,6 @@
net.core.rmem_max=67108864
net.core.wmem_max=67108864
net.ipv4.tcp_rmem="4096 87380 33554432"
net.ipv4.tcp_wmem="4096 87380 33554432"
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr

View file

@ -5,7 +5,19 @@ class sunetdrive::scriptreceiver()
sunet::system_user {'script': username => 'script', group => 'script', managehome => true, shell => '/bin/bash' }
# These tasks correspond to a ${task}.erb.sh template
$tasks = ['list_users', 'list_files_for_user', 'create_bucket', 'backup_db', 'purge_backups', 'maintenancemode', 'restart_sunet_service', 'start_sentinel', 'stop_sentinel', 'removeswap', 'backup_multinode_db']
$tasks = [
'list_users',
'list_files_for_user',
'create_bucket',
'backup_db',
'purge_backups',
'maintenancemode',
'restart_sunet_service',
'start_sentinel',
'stop_sentinel',
'removeswap',
'backup_multinode_db'
]
$environment = sunetdrive::get_environment()
$config = hiera_hash($environment)
@ -35,7 +47,16 @@ class sunetdrive::scriptreceiver()
type => 'ssh-ed25519',
key => $script_pub_key,
}
file { '/etc/sysctl.d/gofasta.conf':
content => file('sunetdrive/scriptreceiver/systctl-d-gofasta.conf'),
mode => '0644',
}
-> exec { 'gofasta_with_sysctl':
command => 'sysctl -p /etc/sysctl.d/gofasta.conf',
path => ['/bin','/usr/bin','/sbin','/usr/sbin'],
subscribe => File['/etc/sysctl.d/gofasta.conf'],
refreshonly => true,
}
file { '/opt/rotate':
ensure => directory,
mode => '0750',