diff --git a/skydive/README.md b/skydive/README.md index 646b1925..1cdf3907 100644 --- a/skydive/README.md +++ b/skydive/README.md @@ -172,17 +172,20 @@ This config will provide access to the web UI for both **skydive** and ##### OpenStack Integration -Skydive can be configured to work with OpenStack. For this to work a -`clouds.yaml` must be present on one of the nodes used within the deployment; -the path is typically to the clouds config is typically -`$HOME/.config/openstack/clouds.yaml`. The playbooks will use the -`clouds.yaml` file to read nessisary credentials used to create a new users -and roles to be used with `skydive` and to enable neutron probes within the -`skydive` agent. +Skydive can be configured to work with OpenStack. For this to be enabled, a +`clouds.yaml` file must be present on one of the nodes used within the +deployment. + +> The default check path for the `clouds.yaml` file is: + `$HOME/.config/openstack/clouds.yaml` + +The playbooks will use the `clouds.yaml` file to read nessisary credentials +used to create a new user and role, which will provide the skydive-agents +access to neutron. When OpenStack integration is enabled, all authentication will be done through -keystone. User access to the skydive UI will be restricted to only users that -have the skydive role assigned to them. +keystone. User access to the skydive UI will be restricted to only users with +the `skydive` role assigned to them. All available options for the OpenStack integration can be found in the `defaults/main.yml` file. diff --git a/skydive/roles/make_skydive/defaults/main.yml b/skydive/roles/make_skydive/defaults/main.yml index 1a4446d8..bc31e86f 100644 --- a/skydive/roles/make_skydive/defaults/main.yml +++ b/skydive/roles/make_skydive/defaults/main.yml @@ -13,17 +13,25 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Build properties skydive_build_version: HEAD +skydive_build_git_repo: https://github.com/skydive-project/skydive.git + skydive_build_path: "/opt/skydive-build/{{ skydive_build_version }}" skydive_build_go_path: "{{ skydive_build_path }}/go" skydive_build_project_path: "{{ skydive_build_go_path }}/src" +# Skydive has a number of build flags, most of which are undocumented. That said, +# Please review the documentation for more on build properties: +# http://skydive.network/documentation/build skydive_build_use_flags: >- WITH_EBPF=true WITH_NEUTRON=true WITH_LXD=true WITH_PROF=true WITH_CDD=true + WITH_LIBVIRT=true + WITH_SCALE=true diff --git a/skydive/roles/make_skydive/tasks/main.yml b/skydive/roles/make_skydive/tasks/main.yml index 717167d5..a689cff6 100644 --- a/skydive/roles/make_skydive/tasks/main.yml +++ b/skydive/roles/make_skydive/tasks/main.yml @@ -45,7 +45,7 @@ - name: Get the skydive archive git: dest: "{{ skydive_build_project_path }}/github.com/skydive-project/skydive" - repo: https://github.com/skydive-project/skydive.git + repo: "{{ skydive_build_git_repo }}" force: yes track_submodules: yes clone: yes @@ -53,12 +53,12 @@ recursive: yes version: "{{ skydive_build_version }}" -- name: Make install skydive +- name: Make static skydive shell: | source /etc/default/go export PATH="{{ skydive_build_go_path }}/bin:${PATH}" export GOPATH="{{ skydive_build_go_path }}" - make install {{ skydive_build_use_flags }} + make static {{ skydive_build_use_flags }} args: chdir: "{{ skydive_build_project_path }}/github.com/skydive-project/skydive" executable: "/bin/bash"