#258 Add a Vagrantfile and Ansible role
Merged by sayanchowdhury. Opened by jcline.
jcline/fedora-hubs vagrantfile  into  develop

Download 258.patch

This is a first pass at a Vagrantfile and Ansible role to automate the
setup of a development environment. Ths Ansible role is not quite
complete and there are a few manual steps required after vagrant up
which are noted in the VMs message of the day. This also adds a basic
dev guide document which, at the moment, only includes Vagrant
instructions. I plan to organize the documentation and update the README
in a separate commit.

closes #254

Signed-off-by: Jeremy Cline jeremy@jcline.org

This currently fails, but I don't know much about npm so I can only say I think dependencies have changed and no longer provide the right things. The error it produces is:

npm WARN package.json fedora-hubs@0.0.0 No repository field.
npm WARN package.json fedora-hubs@0.0.0 No README data
npm WARN package.json Dependency 'babel-preset-es2015' exists in both dependencies and devDependencies, using 'babel-preset-es2015@~6.9.0' from dependencies
npm WARN package.json Dependency 'babel-preset-react' exists in both dependencies and devDependencies, using 'babel-preset-react@~6.5.0' from dependencies
npm ERR! Linux 4.5.5-300.fc24.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package react@15.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-dom@15.1.0 wants react@^15.1.0
npm ERR! peerinvalid Peer react-timeago@3.1.3 wants react@^15.0.0
npm ERR! peerinvalid Peer react-addons-test-utils@15.3.2 wants react@^15.3.2
npm ERR! peerinvalid Peer react-test-renderer@15.3.2 wants react@^15.3.2
npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/devel/hubs/static/client/npm-debug.log

rebased

I figured out the problem: This is being run outside the virtualenv which uses the Python 3 version of flask-oidc, which has this bug: https://github.com/puiterwijk/flask-oidc/issues/12. The workaround is to run it in the virtualenv where pip installs the Python 2 version.

1 new commit added

  • Update the bashrc to use the hostname for oidc-register

1 new commit added

  • Ansible now runs

rebased

Is this PR missing hubsup, hubsreset?

If I ssh into the box it gives me the error that the given commands are not found

rebased

rebased

I updated the PR - I had changed hubsup to hup and hubsreset to hreset, but neglected updating the message of the day.

This seems to be working for me now :thumbsup:

rebased

Pull-Request has been merged by sayanchowdhury

Metadata