-
Notifications
You must be signed in to change notification settings - Fork 33
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
Added Java Conditional check #20
base: develop
Are you sure you want to change the base?
Conversation
Check to see if we need to install java.
Added `spark_install_java: True` to allow java to be conditionally installed
Add spark commands to path
Variable to see if the path should be added.
Check to see if the bin directory needs to be added to the path
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 looks good to me; thank you and congrats on your first contribution! 🎉 @darkedges would you mind rebasing this into 2 commits: one to add the JAVA check, and one for creating /etc/profile.d/spark.sh
? Thanks!
@@ -13,4 +13,4 @@ galaxy_info: | |||
categories: | |||
- system | |||
dependencies: | |||
- { role: "azavea.java" } | |||
- { role: "azavea.java", when: spark_install_java } |
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.
awesome 👍 ( somehow didn't come to this idea, that when
works here!)
This fix could also allow us to re-align our fork (in which I just removed the whole dependency)
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.
@tnation14 I'm motivated to get half of this PR with the spark_install_java
part merged (essentially the first 3 commits), or the full changes ok too.
As I don't have committer perms here... I've done #26
very much useful also for us 👍 |
Since #26 has been merged this PR needs to be rebased, keeping only the profile/spark.sh related changes.. and if those aren't required anymore, PR can be closed |
I had already deployed Java and so added a conditional check on the
meta\main.yml
to allow me to override the installation of Java. By default it will install and the variablespark_install_java
must be overridden to stop the installation.