Puppet Class: aide::firstrun
- Defined in:
- manifests/firstrun.pp
Summary
This class creates the initial database used for performing checks. For all params reference README.Overview
Copyright © 2022 The Trustees of Indiana University SPDX-License-Identifier: BSD-3-Clause
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/firstrun.pp', line 14
class aide::firstrun (
String $aide_path,
String $conf_path,
String $db_temp_path,
String $db_path,
Integer $init_timeout,
) {
exec { 'aide init':
command => "nice ionice -c3 ${aide_path} --init --config ${conf_path}",
user => 'root',
path => ['/usr/bin', '/bin'],
timeout => $init_timeout,
refreshonly => true,
subscribe => Concat['aide.conf'],
}
exec { 'install aide db':
command => "/bin/cp -f ${db_temp_path} ${db_path}",
user => 'root',
refreshonly => true,
subscribe => Exec['aide init'],
}
file { $db_path:
ensure => file,
owner => root,
group => root,
mode => '0600',
require => Exec['install aide db'],
}
file { $db_temp_path:
owner => root,
group => root,
mode => '0600',
require => Exec['aide init'],
}
}
|