Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Some more automation in the Vagrantfile. #20

Merged
merged 5 commits into from
Dec 11, 2018

Conversation

zenhack
Copy link
Contributor

@zenhack zenhack commented Dec 7, 2018

Just the last 3 commits. With this, you can just:

  1. Build the executables locally
  2. vagrant up
  3. inside the vm, run ./install.sh

...and have everything working, including selinux stuff.

The meat of this is just the last 3 commits; before that is stuff from #17.

See also #19; a lot of this is kindof awkward because some paths are hard-coded and others aren't. It's super weird to that install.sh puts some stuff in /usr/local and other stuff in /usr.

The replace directive is because the relevant patches haven't been
merged into obmd itself yet; I'm using that to develop locally. Once the
obmd prs are merged we'll remove it.

We also probably want to store the httpserver package somewhere more
neutral at some point; there's no reason hil-vpn should depend on obmd.
The relevant patches have landed in obmd, so this is no longer
necessary.
That does it for calling privop directly, but we still need to get it to
work when run via hil-vpnd.
hil-vpnd tries to invoke privop via sudo, which resets the PATH to the
defaults. In the centos 7 vagrant image, root does not have
/usr/local/bin in its path, so this was failing.

We should make these things configurable; see CCI-MOC#19.
Copy link
Contributor

@naved001 naved001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Copy link
Collaborator

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@ianballou ianballou merged commit d721de8 into CCI-MOC:master Dec 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants