ansible: Add SLES nodes
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 19 Jun 2017 19:42:17 +0000 (15:42 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 19 Jun 2017 19:42:17 +0000 (15:42 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
25 files changed:
automation/ansible/hosts
automation/ansible/node-sles.yml [new file with mode: 0644]
automation/ansible/roles/babeltrace/tasks/main.yml
automation/ansible/roles/babeltrace/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/babeltrace/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/common/tasks/main.yml
automation/ansible/roles/common/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/common/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/cross-compilers/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/liburcu/tasks/main.yml
automation/ansible/roles/liburcu/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/liburcu/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-analyses/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-modules/tasks/main.yml
automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-modules/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-scope/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-tools/tasks/main.yml
automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-tools/vars/Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-ust/tasks/main.yml
automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml [new file with mode: 0644]
automation/ansible/roles/lttng-ust/vars/Suse.yml [new file with mode: 0644]
automation/ansible/site.retry [new file with mode: 0644]
automation/ansible/site.yml

index 733b6d812db44cee567f4539bd0910fd870b00de..f98ea8531982f371cc4d684bdf039339b5cc3306 100644 (file)
@@ -103,7 +103,9 @@ ci-node-xenial-amd64-05-08
 [node-standalone]
 ci-node-standalone-amd64-02
 ci-node-standalone-amd64-03
-ci-node-alpine-amd64-03
+
+[node-sles]
+ci-node-sles12sp2-amd64-03-01
 
 [node:children]
 node-i386
@@ -113,3 +115,4 @@ node-arm64
 node-powerpc
 node-ppc64el
 node-standalone
+node-sles
diff --git a/automation/ansible/node-sles.yml b/automation/ansible/node-sles.yml
new file mode 100644 (file)
index 0000000..8dcc86b
--- /dev/null
@@ -0,0 +1,8 @@
+- hosts: node-sles
+  roles:
+    - common
+    - babeltrace
+    - liburcu
+    - lttng-ust
+    - lttng-tools
+    - lttng-modules
index 430f3241edabe9f814d5f46c4f439e0b750e560c..2967331fb9598a66cba280482b16ade7ba3d6ccf 100644 (file)
@@ -17,3 +17,6 @@
 
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
diff --git a/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml b/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..33546fd
--- /dev/null
@@ -0,0 +1,4 @@
+---
+- name: Ensure babeltrace build dependencies are installed.
+  zypper: "name={{ item }} state=installed update_cache=yes"
+  with_items: "{{ babeltrace_packages }}"
diff --git a/automation/ansible/roles/babeltrace/vars/Suse.yml b/automation/ansible/roles/babeltrace/vars/Suse.yml
new file mode 100644 (file)
index 0000000..1fe841d
--- /dev/null
@@ -0,0 +1,12 @@
+---
+__babeltrace_packages:
+  - popt-devel
+  - uuid-devel
+  - python3-devel
+#  - python3-sphinx
+  - swig
+  - glib2-devel
+  - glib2-devel-static
+  - libdw-devel
+  - libelf-devel
+  - chrpath
index 6e4253e55e9f31936a7b8d7e4f2c670152f3f38d..9a5107b1179e502193d9f14612e37de1cc88f2c1 100644 (file)
@@ -18,6 +18,9 @@
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
 
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
+
 - name: Remove ubuntu user
   user:
     name: ubuntu
diff --git a/automation/ansible/roles/common/tasks/setup-Suse.yml b/automation/ansible/roles/common/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..62ca568
--- /dev/null
@@ -0,0 +1,13 @@
+---
+- name: Define common_patterns.
+  set_fact:
+    common_patterns: "{{ __common_patterns | list }}"
+  when: common_patterns is not defined
+
+- name: Ensure common patterns are installed.
+  zypper: "name={{ item }} type=pattern state=present update_cache=yes"
+  with_items: "{{ common_patterns }}"
+
+- name: Ensure common packages are installed.
+  zypper: "name={{ item }} type=package state=present update_cache=yes"
+  with_items: "{{ common_packages }}"
diff --git a/automation/ansible/roles/common/vars/Suse.yml b/automation/ansible/roles/common/vars/Suse.yml
new file mode 100644 (file)
index 0000000..b8bb717
--- /dev/null
@@ -0,0 +1,29 @@
+---
+__common_patterns:
+  - base
+  - Minimal
+  - Basis-Devel
+
+__common_packages:
+  - openssh
+  - sudo
+  - java-1_8_0-openjdk-headless
+  - java-1_8_0-openjdk-devel
+  - git-core
+  - vim
+  - tree
+#  - htop
+  - automake
+  - autoconf
+  - libtool
+  - bison
+  - flex
+#  - libtap-harness-archive-perl
+#  - jq
+#  - cppcheck
+#  - cloc
+#  - python-virtualenv
+  - curl
+  - gettext-runtime
+  - libopenssl-devel
+  - psmisc
diff --git a/automation/ansible/roles/cross-compilers/vars/Suse.yml b/automation/ansible/roles/cross-compilers/vars/Suse.yml
new file mode 100644 (file)
index 0000000..7701f01
--- /dev/null
@@ -0,0 +1,10 @@
+---
+__cross_compilers_packages:
+  - gcc-aarch64-linux-gnu
+  - gcc-powerpc64le-linux-gnu
+  - gcc-arm-linux-gnueabihf
+  - gcc-powerpc-linux-gnu
+  - gcc-4.9-aarch64-linux-gnu
+  - gcc-4.9-powerpc64le-linux-gnu
+  - gcc-4.9-arm-linux-gnueabihf
+  - gcc-4.9-powerpc-linux-gnu
index f33db15952ad9afc710156049242134b08a3512f..6bceb9be97249e657dfc1dc6d67dc894d97015d3 100644 (file)
@@ -17,3 +17,6 @@
 
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
diff --git a/automation/ansible/roles/liburcu/tasks/setup-Suse.yml b/automation/ansible/roles/liburcu/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..168dfa2
--- /dev/null
@@ -0,0 +1,4 @@
+---
+- name: Ensure liburcu build dependencies are installed.
+  zypper: "name={{ item }} state=installed update_cache=yes"
+  with_items: "{{ liburcu_packages }}"
diff --git a/automation/ansible/roles/liburcu/vars/Suse.yml b/automation/ansible/roles/liburcu/vars/Suse.yml
new file mode 100644 (file)
index 0000000..c597f60
--- /dev/null
@@ -0,0 +1,2 @@
+---
+__liburcu_packages: []
diff --git a/automation/ansible/roles/lttng-analyses/vars/Suse.yml b/automation/ansible/roles/lttng-analyses/vars/Suse.yml
new file mode 100644 (file)
index 0000000..abb147f
--- /dev/null
@@ -0,0 +1,5 @@
+---
+__lttng_analyses_packages:
+  - virtualenv
+  - python3-pyparsing
+  - python3-progressbar
index 031a28b6acf946482716c07a0b29147d2365fc27..3c7e0fd6747b08e02f58df2ee448f2b0d0c46cb5 100644 (file)
@@ -18,6 +18,9 @@
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
 
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
+
 - name: checkout repo
   git: repo=git://git-mirror.internal.efficios.com/git/linux-all.git
        dest=/home/jenkins/gitcache/linux-stable.git
diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..9626061
--- /dev/null
@@ -0,0 +1,4 @@
+---
+- name: Ensure lttng-modules build dependencies are installed.
+  zypper: "name={{ item }} state=installed update_cache=yes"
+  with_items: "{{ lttng_modules_packages }}"
diff --git a/automation/ansible/roles/lttng-modules/vars/Suse.yml b/automation/ansible/roles/lttng-modules/vars/Suse.yml
new file mode 100644 (file)
index 0000000..7cd1bd1
--- /dev/null
@@ -0,0 +1,6 @@
+---
+__lttng_modules_packages:
+#  - kernel-wedge
+  - libelf-devel
+  - bc
+#  - gcc-4.9
diff --git a/automation/ansible/roles/lttng-scope/vars/Suse.yml b/automation/ansible/roles/lttng-scope/vars/Suse.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
index e71273f11adeab726a08e4100ca4d77e1b9be8ea..291f5b39c5ff540388b6ac83ef35f121d7696b80 100644 (file)
@@ -13,7 +13,7 @@
     lttng_tools_packages_no_recommends: "{{ __lttng_tools_packages_no_recommends | list }}"
   when:
     - lttng_tools_packages_no_recommends is not defined
-    - ansible_os_family == 'Debian'
+    - ansible_os_family == 'Debian' or ansible_os_family == 'Suse'
 
 # Setup/install tasks.
 - include: setup-RedHat.yml
@@ -24,3 +24,6 @@
 
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..f3a40cd
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- name: Ensure lttng-tools build dependencies are installed.
+  zypper: "name={{ item }} state=installed update_cache=yes"
+  with_items: "{{ lttng_tools_packages }}"
+
+- name: Ensure lttng-tools build dependencies are installed (no recommends).
+  zypper: "name={{ item }} state=installed disable_recommends=yes"
+  with_items: "{{ lttng_tools_packages_no_recommends }}"
diff --git a/automation/ansible/roles/lttng-tools/vars/Suse.yml b/automation/ansible/roles/lttng-tools/vars/Suse.yml
new file mode 100644 (file)
index 0000000..e08e01d
--- /dev/null
@@ -0,0 +1,9 @@
+---
+__lttng_tools_packages:
+  - popt-devel
+  - libxml2-devel
+  - bash-completion
+
+__lttng_tools_packages_no_recommends:
+  - asciidoc
+  - xmlto
index 6eab757bef9e1f4b6f78e7afaa90cba0b7b07df7..38990331cfb9f733215a30eb89ab2912d1e6b470 100644 (file)
@@ -17,3 +17,6 @@
 
 - include: setup-Alpine.yml
   when: ansible_os_family == 'Alpine'
+
+- include: setup-Suse.yml
+  when: ansible_os_family == 'Suse'
diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml
new file mode 100644 (file)
index 0000000..39cdbf2
--- /dev/null
@@ -0,0 +1,4 @@
+---
+- name: Ensure lttng-ust build dependencies are installed.
+  zypper: "name={{ item }} state=installed update_cache=yes"
+  with_items: "{{ lttng_ust_packages }}"
diff --git a/automation/ansible/roles/lttng-ust/vars/Suse.yml b/automation/ansible/roles/lttng-ust/vars/Suse.yml
new file mode 100644 (file)
index 0000000..2ea9a25
--- /dev/null
@@ -0,0 +1,8 @@
+---
+__lttng_ust_packages:
+  - uuid-devel
+  - texinfo
+  - python3
+  - log4j
+  - java-1_8_0-openjdk-headless
+  - java-1_8_0-openjdk-devel
diff --git a/automation/ansible/site.retry b/automation/ansible/site.retry
new file mode 100644 (file)
index 0000000..6429dab
--- /dev/null
@@ -0,0 +1 @@
+ci-node-sles12sp2-amd64-03-01
index ded07e2598ac53abe1d1a3c8769570e2d98b2b71..35c1e1b89f46b263561808a594cc019e51af0888 100644 (file)
@@ -7,3 +7,4 @@
 - include: node-i386.yml
 - include: node-amd64.yml
 - include: node-standalone.yml
+- include: node-sles.yml
This page took 0.031357 seconds and 4 git commands to generate.