jenkins-bot has submitted this change and it was merged.
Change subject: Don't provision hhvm config files before package
......................................................................
Don't provision hhvm config files before package
Ensure that Puppet orders creation of hhvm configuration files after the
installation of the hhvm package. This should avoid race conditions
where the package and Puppet both want to control config files which
cause apt to fail on initial package install.
Bug: T115450
Change-Id: I107f3c164669928c00ca8ee31614459c371bea46
---
M puppet/modules/hhvm/manifests/init.pp
1 file changed, 7 insertions(+), 0 deletions(-)
Approvals:
Ori.livneh: Looks good to me, approved
Mobrovac: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/puppet/modules/hhvm/manifests/init.pp
b/puppet/modules/hhvm/manifests/init.pp
index 6765d5d..7c4b3dd 100644
--- a/puppet/modules/hhvm/manifests/init.pp
+++ b/puppet/modules/hhvm/manifests/init.pp
@@ -64,6 +64,13 @@
notify => Service['hhvm'],
}
+ # T115450: Make all file resources declared here wait until after the hhvm
+ # package is installed. This should avoid race conditions where the hhvm
+ # package creates files that we are intending to overwrite.
+ File {
+ require => Package['hhvm'],
+ }
+
env::alternative { 'hhvm_as_default_php':
alternative => 'php',
target => '/usr/bin/hhvm',
--
To view, visit https://gerrit.wikimedia.org/r/246254
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I107f3c164669928c00ca8ee31614459c371bea46
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
Gerrit-Reviewer: Dduvall <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits