Don't create reviewday subdirectory

Perhaps because of the new resource ordering algorithm, on puppet 4 the
/var/lib/reviewday/reviewday file resource blocks the
/var/lib/reviewday/reviewday vcsrepo resource and results in failures
like:

 Error: /Stage[main]/Main/Reviewday::Site[reviewday]/Vcsrepo[/var/lib/reviewday/reviewday]/ensure: change from absent to latest failed: Could not create repository (non-repository at path)

On both puppet 3 and puppet 4 the vcsrepo resource will create the
directory on its own, and it can also manage the directory's owner and
group itself, so there is no need for it to be managed independently.

Change-Id: Ic64d39a9f257d623ca13e9d38708eaa1e32e8c18
This commit is contained in:
Colleen Murphy
2018-07-13 14:27:28 +02:00
committed by Colleen Murphy
parent 3a042122ec
commit 790bf6a783

View File

@@ -67,19 +67,17 @@ define reviewday::site(
}
}
file {'/var/lib/reviewday/reviewday':
ensure => directory,
owner => 'reviewday',
group => 'reviewday',
mode => '0755',
require => File['/var/lib/reviewday/'],
}
vcsrepo { '/var/lib/reviewday/reviewday':
ensure => latest,
provider => git,
source => $git_url,
revision => 'master',
owner => 'reviewday',
group => 'reviewday',
require => [
User['reviewday'],
Group['reviewday'],
]
}
exec { 'install-reviewday-dependencies':