-
Notifications
You must be signed in to change notification settings - Fork 97
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
Simplifying deployment to GCP using Ansible #256
Comments
Hmmm. Ansible is a good idea. It's on our TODO list for GSoC 2020 project Sugarizer School Portal. |
I think Ansible package in the Sugarizer School Portal project is to bring the K8s Infrastructure up. It is not for installing Sugarizer Server using Ansible. Even in the Sugarizer School Portal a Helm chart will be created to install Sugarizer-Server. Currently, Sugarizer-Server can be very easily installed using Docker so I think there is no need for Ansible. One drawback is that we have to depend on ansible for simple setup. |
@llaske I agree with @NikhilM98 , for simple docker deployment on localhost an ansible package will be as good as a simple script. However, I think at least for deployment to GCP specifically, an ansible package would make sense for reasons mentioned before. #257 - proposes an ansible package for deployment to GCP I am also working upon the sugarizer school portal ansible package which creates a cluster onto Google Kubernetes Engine and installs the helm chart for sugarizer-server. Its a work in progress, would love to have your feedback on the current build. |
@ksraj123 @NikhilM98 the idea is not to replace the current way to deploy Sugarizer Server with docker. But ansible could be useful in two ways:
|
Here is the link to the Sugarizer Installation script in IIAB Repository (The above link was not working). I opened PR #68 last year to install Sugarizer-Server using Shell script. The PR was WIP (features were incomplete), but it was turned down and closed at that time because docker was the preferred way to install Sugarizer-Server.
Even if we use Ansible, as @ksraj123 mentioned, it will be as good as a simple script. @llaske what do you think will be a more efficient way of installation? |
@NikhilM98 it make sense. Look like using Ansible is not a so good idea. Thanks for this explanation. BTW I don't think it's a good idea to remove Docker dependency in Sugarizer-School-Box. We had lot of issues with node.js/MongoDB install in the past, it's better to have a packaged version of these software to be sure it will work. IMHO the main issue in Sugarizer-School-Box is that it's linked to the rpi23-gen-image script and existing scripts are called by it. |
Solved in #257 |
Thanks @ksraj123. I'm closing issue only when a new version is release. |
I think deployment of sugarizer-server onto the Google Cloud Platform makes sense for many schools or other organisations trying to setup sugarizer deployment themselves as they provide free credit initially.
But the process for deployment is lengthy and may seem complex or intimidating to non-developers.
The UI of Google Cloud Platform is not very user friendly for non-developers in my opinion but the current deployment process requires to user to create and configure vm instances and firewalls themselves by navigating though the UI and then ssh into the vm to execute a script.
I think deployment will be much simpler if an ansible package is realised which would create a vm instance, firewall and execute required scripts with a single command.
The user will provide essential information like project id and authentication details and will be able to modify other variables like machine type, os etc if needed.
I am working on this, will open a PR soon.
Please share suggestions.
The text was updated successfully, but these errors were encountered: