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
GPII-1833: Adds script to provision non-Vagrant environments #80
Conversation
@amatas, @colinbdclark, @gtirloni these changes have been tested on a Fedora 23 VM. I'll aim to do the same on a physical Fedora machine. |
👏 I'll take a look! |
CI job passed. |
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
ok to test |
CI job passed. |
@javihernandez if you have some time could you please review this? Thanks. |
README.md
Outdated
The next section describes an automated deployment approach that involves using Vagrant. If the GPII Linux Framework needs to be set up on a physical or virtual machine without using Vagrant then the ``install.sh`` script in the ``provisioning`` directory can be used. The script will bootstrap the environment to the point where Ansible roles can be used to set up the Framework. You will need administrative privileges (via sudo) and GNOME 3 set up on Fedora 23 or 24 before using the script: | ||
``` | ||
cd provisioning | ||
sudo GPII_FRAMEWORK_DIR=/opt/gpii-linux-framework ./install.sh |
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 command won't work unless you either "chmod +x install.sh" or call "sh ./install.sh"
Ok, tried this into a freshly installed F24 and got into this error: TASK [nodejs : Ensure the application user account exists] ********************* fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "useradd: invalid user name ''\n", "name": "", "rc": 3} to retry, use: --limit @/home/gpii/linux/provisioning/playbook.retry PLAY RECAP ********************************************************************* localhost : ok=16 changed=7 unreachable=0 failed=1 |
Hi guys, could we merge this PR? |
@amatas, do we want to merge it if @javihernandez noticed that an error occurs? Or has this been fixed, or am I just confused? |
@amatas, @colinbdclark I haven't had a chance to look into the issues that @javihernandez identified. I will be doing so tomorrow afternoon though and will update the PR. Until then these changes shouldn't be merged. |
@javihernandez I updated this PR with minor documentation changes based on your feedback. I wasn't able to reproduce the I removed the existing Vagrantfile because I wanted to have a generic Fedora 24 environment to mimic a physical machine:
I copied the git working directory to a non-VirtualBox Shared Folders location due to me being on a Windows 10 host and wanting to avoid any npm symlink issues:
I renamed the
That results in the script finishing without any errors. I don't have a physical machine to try this on at the moment. Please halp 🆘 |
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
Ok, I have repeated the process from the beginning and ended up with the same error. |
updating the system solved the issue with logname but I'm not sure whether we want to leave this as it is or provide a fallback solution just in case. What do you think? Now, I'm facing a new problem, http://pastebin.com/Bi0F390B. Also, I found out that my virtual machine's screen lock now says "Node.js System Account" instead of "gpii". I'd say that we should get rid of this. |
CI job passed. |
ok to test |
CI job failed. Please visit http://lists.gpii.net/pipermail/ci/ for more details. |
The latest changes address feedback from @javihernandez. Do people feel that this wrapper script is still needed? This PR was opened last year when a request was made on the Architecture list for a non-Vagrant provisioning option, it seems now most (all?) people use Vagrant. Thoughts? |
CI job passed. |
Closing this PR after confirming the preference for automated Vagrant setups during today's Arch meeting. |
Addresses the following requirement listed on the Ease of Installation, Setup, Build, and Automation page: