-
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
Fix for defining php variables for external role. #59
Conversation
I think this is the way to go. We could do it in vars + bootstrap.yml, but since geerlingguy's role already provides the logic this seems the better solution. |
I agree with @seth-shaw-unlv this solution work fine and follow a geerlingguy role-php. |
Oddly enough, I just discovered that this doesn't actually work. Ansible doesn't complain and a CentOS provision works, but when I spun up a Debian-based Islandora the apache php library wasn't there. I removed the Debian.yml file altogether and it actually worked then. To be honest, I'm not sure what is going on with the Debian php_packages_extra here. |
Alright we can't hack geerlingguy's role, so we need to store these variables using a separate named variable file and include based on ansible_os_family at the start of the bootstrapping. I'm closing this. |
Can someone try this out. It seems to work, but then I thought the last attempt worked too 🤣 |
@whikloj for some reason geerligguy.php role didn't saw /var/RedHat.yml... (in my case) |
May not be related this PR! |
@DigitLib / @Natkeeran thanks...I'll try burning my setup down and pulling fresh to see what is happening. |
@whikloj this /var files seem to work today. I try it on Manjaro Linux, yesterday it won't on Fedora 26... Tried Ubuntu and CentOS it works on both. Without added gather_facts: false... |
Thanks @DigitLib / @Natkeeran, I am getting an error but not until building the Grok dependencies. That was on Centos, I'll tear it down and try again with Ubuntu |
@whikloj You can ignore the previous error I posted. I may not have installed the requirements! (was sleeping!). This PR installs without error, but get the same php error related to missing library: |
@Natkeeran @mjordan @DigitLib Moving it into the tasks and using We could also use more specific files if necessary and the
|
Tested both Ubuntu and CentOS today. Both work for me now. |
Hopefully resolves Islandora/documentation#801
To define the variables for use in geerlingguy.php to use different versions of
php_packages_extra
this seems to work as his role includes these file names.Perhaps the better way is to move this stuff to a
/vars
directory, but then I don't know how you set a variable in the inventory. Would we do that in thebootstrap.yml
?If there is a better way, please tell me. But this seems to work.
Interested parties
@seth-shaw-unlv @DigitLib @Natkeeran @MarcusBarnes @jonathangreen