bts_defs.json; require vcsrepo, not file

The creation of this file should depend on the Vcsrepo, not on the File
directive, otherwise on an initial install if the file is created first,
then Vcsrepo will refuse to clone the repo:

  Error: Path /var/rhizomatica exists and is not the desired repository.
This commit is contained in:
Keith Whyte 2020-09-11 19:02:33 +02:00
parent 00de9779f1
commit b7528bbc26

View file

@ -415,7 +415,7 @@ schedule { 'never':
file { '/var/rhizomatica/bts_defs.json':
ensure => present,
content => template('rhizo_base/bts_defs.json.erb'),
require => File['/var/rhizomatica'],
require => Vcsrepo['/var/rhizomatica'],
}
file { '/var/meas/www/meas-web/bts_defs.js':