conform to new build format for vagrant (#153)
* conform to new build format for vagrant
This commit is contained in:
parent
91f7b9c049
commit
5c126cd42b
|
@ -2,22 +2,7 @@
|
||||||
|
|
||||||
This guide is intended to bring up a vagrant environment with 1 lighthouse and 2 generic hosts running nebula.
|
This guide is intended to bring up a vagrant environment with 1 lighthouse and 2 generic hosts running nebula.
|
||||||
|
|
||||||
## Pre-requisites
|
## Creating the virtualenv for ansible
|
||||||
|
|
||||||
There are two pre-requisites prior to bringing up the vagrant environment
|
|
||||||
|
|
||||||
- build the binaries locally for the vagrant deploy
|
|
||||||
- create a virtualenv for ansible
|
|
||||||
|
|
||||||
### Building the binaries
|
|
||||||
|
|
||||||
Build the `nebula` and `nebula-cert` binaries for vagrant by doing the following
|
|
||||||
|
|
||||||
`make bin-vagrant` (under the src directory with Makefile)
|
|
||||||
|
|
||||||
For convenience, ansible will run this for you in every deploy (see `ansible/playbook.yml`)
|
|
||||||
|
|
||||||
### Creating the virtualenv
|
|
||||||
|
|
||||||
Within the `quickstart/` directory, do the following
|
Within the `quickstart/` directory, do the following
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
connection: local
|
connection: local
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
- command: chdir=../../../ make bin-vagrant
|
- command: chdir=../../../ make build/linux-amd64/"{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- nebula
|
||||||
|
- nebula-cert
|
||||||
tags:
|
tags:
|
||||||
- build-nebula
|
- build-nebula
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
- nebula-conf
|
- nebula-conf
|
||||||
|
|
||||||
- name: install built nebula binary
|
- name: install built nebula binary
|
||||||
copy: src=../../../../../{{ item }} dest=/usr/local/bin mode=0755
|
copy: src="../../../../../build/linux-amd64/{{ item }}" dest="/usr/local/bin" mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
- nebula
|
- nebula
|
||||||
- nebula-cert
|
- nebula-cert
|
||||||
|
|
Loading…
Reference in New Issue