aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests/scheduler.pp
blob: 99ad17fdbaaa6097500a0032a5570b823d9edd39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class buildsystem::scheduler {
        # until ulri is splitted from main iurt rpm
        include ssh::auth
        include buildsystem::iurt::packages
        include buildsystem::iurt::upload
        include buildsystem::scheduler::var

        $login = $buildsystem::scheduler::var::login
        $homedir = $buildsystem::scheduler::var::homedir        
	$logdir = $buildsystem::scheduler::var::logdir

        buildsystem::sshuser { $login:
            homedir => $homedir,
            comment => 'System user used to schedule builds',
        }

	file { $logdir:
	    ensure => directory,
	    mode => 0755,
	    owner => $login,
	}

	cron { 'dispatch jobs':
	    user    => $login,
	    command => 'ulri; emi',
	    minute  => '*',
	}
}