Put hound sync lock in /var/run

/var/run/hound isn't a directory, so this fails.  It was supposed to
just be in /var/run.

Also, we don't want to run it every minute of 4am ...

Change-Id: I7298a0e18a63bf8331686bd4c44e3a12b9c77176
This commit is contained in:
Ian Wienand 2017-12-18 15:11:25 +11:00
parent b98a281adb
commit de79f06585

View File

@ -33,7 +33,8 @@ class openstack_project::codesearch (
cron { 'hound':
user => root,
hour => '4',
command => 'flock -n /var/run/hound/sync.lock resync-hound-config 2>&1 >> /var/log/hound.sync.log',
minute => '0',
command => 'flock -n /var/run/hound.sync.lock resync-hound-config 2>&1 >> /var/log/hound.sync.log',
environment => [
'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
"PROJECTS_YAML=${::project_config::jeepyb_project_file}",