ansible: Add LTTng-scope
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 13 Mar 2017 18:19:11 +0000 (14:19 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 13 Mar 2017 18:19:11 +0000 (14:19 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/roles/lttng-scope/tasks/main.yml [new file with mode: 0644]
automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml [new file with mode: 0644]
automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml [new file with mode: 0644]
automation/ansible/roles/lttng-scope/vars/Debian.yml [new file with mode: 0644]
automation/ansible/roles/lttng-scope/vars/RedHat.yml [new file with mode: 0644]
automation/ansible/slave-amd64.yml
automation/ansible/slave-i386.yml

diff --git a/automation/ansible/roles/lttng-scope/tasks/main.yml b/automation/ansible/roles/lttng-scope/tasks/main.yml
new file mode 100644 (file)
index 0000000..b45a1b6
--- /dev/null
@@ -0,0 +1,16 @@
+---
+# Include variables and define needed variables.
+- name: Include OS-specific variables.
+  include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Define lttng_scope_packages.
+  set_fact:
+    lttng_scope_packages: "{{ __lttng_scope_packages | list }}"
+  when: lttng_scope_packages is not defined
+
+# Setup/install tasks.
+- include: setup-RedHat.yml
+  when: ansible_os_family == 'RedHat'
+
+- include: setup-Debian.yml
+  when: ansible_os_family == 'Debian'
diff --git a/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml
new file mode 100644 (file)
index 0000000..15fe492
--- /dev/null
@@ -0,0 +1,11 @@
+---
+- name: Update apt cache.
+  apt: update_cache=yes cache_valid_time=86400
+
+- name: Ensure unity is installed.
+  apt: "name=unity install_recommends=no"
+
+- name: Ensure lttng_scope build dependencies are installed.
+  apt: "name={{ item }} state=installed"
+  with_items: "{{ lttng_scope_packages }}"
+
diff --git a/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml
new file mode 100644 (file)
index 0000000..ccd3b7a
--- /dev/null
@@ -0,0 +1,6 @@
+---
+- name: Ensure lttng_scope build dependencies are installed.
+  yum:
+    name: "{{ item }}"
+    state: installed
+  with_items: "{{ lttng_scope_packages }}"
diff --git a/automation/ansible/roles/lttng-scope/vars/Debian.yml b/automation/ansible/roles/lttng-scope/vars/Debian.yml
new file mode 100644 (file)
index 0000000..cc01bab
--- /dev/null
@@ -0,0 +1,12 @@
+---
+__lttng_scope_packages:
+  - openjdk-8-jdk
+  - openjfx
+  - metacity
+  - xfonts-100dpi
+  - xfonts-75dpi
+  - xfonts-scalable
+  - xfonts-cyrillic
+  - xvfb
+  - x11-apps
+  - imagemagick
diff --git a/automation/ansible/roles/lttng-scope/vars/RedHat.yml b/automation/ansible/roles/lttng-scope/vars/RedHat.yml
new file mode 100644 (file)
index 0000000..9ef6947
--- /dev/null
@@ -0,0 +1,3 @@
+---
+# TODO
+__lttng_scope_packages:
index 1ce4964e751d365ea72894fbf14487eb5d754673..9cdf66f1d63764b150487eb72a3d5edd0a6c6a2c 100644 (file)
@@ -8,4 +8,5 @@
     - lttng-tools
     - lttng-modules
     - lttng-analyses
+    - lttng-scope
     - tracecompass
index 460a0fb1c0d18b6bf4adccf164557c2266b94688..7c6449591976dd93f84649db0a346039bd841193 100644 (file)
@@ -8,4 +8,5 @@
     - lttng-tools
     - lttng-modules
     - lttng-analyses
+    - lttng-scope
     - tracecompass
This page took 0.026534 seconds and 4 git commands to generate.