-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repo-Remi for php7 on CentOS #51
Conversation
Pull in Selinux and drupal user changes
Credit to @DigitLib who did this on their fork (https://github.com/DigitLib/claw-playbook/pulls) in a cleaner way than I initially did.
@@ -0,0 +1,7 @@ | |||
--- | |||
|
|||
php_date_timezone: "America/Toronto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is the same as in php-Debian.yml
so I'd pull it out into a separate variable file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I would be fine simply removing it. The default from geerlingguy is Chicago, but I'm in Las Vegas, so setting a default for Toronto (although consistent w/ Islandora's origin) doesn't really make sense to me. Might as well set it to GMT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seth-shaw-unlv Good point @dannylamb @Natkeeran @jonathangreen what are your feelings on this, do we really need to set the datetime zone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes things complain if it's not set. I'd just make it configurable with a default of GMT.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed this at the CLAW call and the consensus is that as long as it is set (and it is set to Chicago as @seth-shaw-unlv said) then we can remove these
@@ -1,3 +1,8 @@ | |||
- src: geerlingguy.php-mysql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seth-shaw-unlv should this have a version to pin it to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can. I will update the PR to pin the current version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in both Centos and Ubuntu and it builds and installs PHP 7.0.22. I think moving forward we need to get a build infrastructure to test this playbook. I have been guilty of building in Ubuntu and approving and that is causing more and more trouble
@seth-shaw-unlv looking at this one again, what loads the |
I assume it is through geerlingguy (I'm not seeing it in ours). I think that piece, specifically, was taken from @DigitLib who might remember better. |
@whikloj and @seth-shaw-unlv it works when I test this soloution (it works a couple of times) . I tried now but it failed. Try to catch what is going on... |
@whikloj and @seth-shaw-unlv renamed php-Debian.yml and php-RedHat.yml to Debian.yml and RedHat.yml and it passed. |
Well, it appears to have passed for me, too. |
@seth-shaw-unlv Great! Now we wait will it pass @whikloj . It would be good if someone would try it on Ubuntu, so to PR if it work. |
I tried it with both. |
Great!! |
Okay that does work 👍 , my only question is... is that how it is supposed to work? Meaning is geerlingguy expecting us to provide OS specific variable this way? |
@whikloj I think so, because in his php role in ../tasks/main.yml he make this Variable setup.
which is in ../var defined on that way. As you can see in that files he check packages etc... |
Addresses Drupal 8 upcoming requirement for PHP7 (see also this issue on the CLAW repo).
Based on a collection of pulls (see the related comment) on @DigitLib fork who did it a bit cleaner than I originally had.