Let's gooooo
This commit is contained in:
parent
33389e842a
commit
d010d27f20
2 changed files with 29 additions and 2 deletions
6
files/scriptreciver/sysctl-d-gofasta.conf
Normal file
6
files/scriptreciver/sysctl-d-gofasta.conf
Normal 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
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue