ansible: Add Alpine Linux support
authorMichael Jeanson <mjeanson@efficios.com>
Sat, 4 Jun 2016 18:04:57 +0000 (14:04 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Sat, 4 Jun 2016 18:04:57 +0000 (14:04 -0400)
21 files changed:
automation/ansible/roles/babeltrace/tasks/main.yml
automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/babeltrace/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/common/tasks/main.yml
automation/ansible/roles/common/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/common/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/cross-compilers/tasks/main.yml
automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/cross-compilers/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/liburcu/tasks/main.yml
automation/ansible/roles/liburcu/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/liburcu/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-modules/tasks/main.yml
automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-modules/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-tools/tasks/main.yml
automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-tools/vars/Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-ust/tasks/main.yml
automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml [new file with mode: 0644]
automation/ansible/roles/lttng-ust/vars/Alpine.yml [new file with mode: 0644]

index cd629faca843ac47fbe3f21d9b84223cfa6f243d..430f3241edabe9f814d5f46c4f439e0b750e560c 100644 (file)
@@ -14,3 +14,6 @@
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
diff --git a/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml b/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..29d7980
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure babeltrace build dependencies are installed.
+  apk: "name={{ item }} state=present"
+  with_items: babeltrace_packages
diff --git a/automation/ansible/roles/babeltrace/vars/Alpine.yml b/automation/ansible/roles/babeltrace/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..d0ccd65
--- /dev/null
@@ -0,0 +1,11 @@
+---
+__babeltrace_packages:
+  - popt-dev
+  - util-linux-dev
+  - python3-dev
+#  - python3-sphinx
+  - swig
+  - glib-dev
+  - libdwarf-dev
+  - libelf-dev
+  - chrpath
index 82a7849b676c191cfed2dc5475f3c68634ea1e98..f756faa3a2cb507bc33a0fdb98785a621525c737 100644 (file)
@@ -15,6 +15,9 @@
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
 
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
+
 - name: Create jenkins user
   user:
     name: 'jenkins'
diff --git a/automation/ansible/roles/common/tasks/setup-Alpine.yml b/automation/ansible/roles/common/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..6a03f75
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure common packages are installed.
+  apk: "name={{ item }} state=present"
+  with_items: common_packages
diff --git a/automation/ansible/roles/common/vars/Alpine.yml b/automation/ansible/roles/common/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..7e335ff
--- /dev/null
@@ -0,0 +1,26 @@
+---
+__common_packages:
+  - sudo
+  - openjdk8
+  - git
+  - vim
+  - tree
+  - htop
+  - alpine-sdk
+  - clang
+  - automake
+  - autoconf
+  - libtool
+  - bison
+  - flex
+  - perl
+  - jq
+  - cppcheck
+  - cloc
+  - py-virtualenv
+  - curl
+  - gettext
+  - openssl-dev
+  - coreutils
+  - bash
+  - shadow
index 7a9543146dfd7aa18c469c2c3dfc134d0faea58a..071456aab3ae0d12a4a2324cf93b1a8d81c77076 100644 (file)
@@ -14,3 +14,6 @@
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
diff --git a/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml b/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..99bcae3
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure cross-compilers packages are installed.
+  apk: "name={{ item }} state=present"
+  with_items: cross_compilers_packages
diff --git a/automation/ansible/roles/cross-compilers/vars/Alpine.yml b/automation/ansible/roles/cross-compilers/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..3528230
--- /dev/null
@@ -0,0 +1,3 @@
+---
+# TODO
+__cross_compilers_packages: []
index 867decbb50de78d7599b4d718bfe7b1c90ab580e..f33db15952ad9afc710156049242134b08a3512f 100644 (file)
@@ -14,3 +14,6 @@
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
diff --git a/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml b/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..43f1d44
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure liburcu build dependencies are installed.
+  apk: "name={{ item }} state=present"
+  with_items: liburcu_packages
diff --git a/automation/ansible/roles/liburcu/vars/Alpine.yml b/automation/ansible/roles/liburcu/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..c597f60
--- /dev/null
@@ -0,0 +1,2 @@
+---
+__liburcu_packages: []
index 571bdb3ba391d7d81904b708b91fb2d5b97d3ac6..e7eb36f7dae383651d3790786367aee6884585ae 100644 (file)
@@ -15,6 +15,9 @@
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
 
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
+
 - name: checkout repo
   git: repo=git://artifacts.internal.efficios.com/git/linux-stable.git
        dest=/home/jenkins/gitcache/linux-stable.git
diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..c79686e
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure lttng-modules build dependencies are installed.
+  apk: "name={{ item }} state=present"
+  with_items: lttng_modules_packages
+
diff --git a/automation/ansible/roles/lttng-modules/vars/Alpine.yml b/automation/ansible/roles/lttng-modules/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..571d300
--- /dev/null
@@ -0,0 +1,6 @@
+---
+__lttng_modules_packages:
+#  - kernel-wedge
+  - libelf-dev
+  - bc
+#  - gcc-4.9
index e7261a1319c3d159c84da23f925cc40615203c01..e71273f11adeab726a08e4100ca4d77e1b9be8ea 100644 (file)
@@ -11,7 +11,9 @@
 - name: Define lttng_tools_packages_no_recommends.
   set_fact:
     lttng_tools_packages_no_recommends: "{{ __lttng_tools_packages_no_recommends | list }}"
-  when: lttng_tools_packages_no_recommends is not defined
+  when:
+    - lttng_tools_packages_no_recommends is not defined
+    - ansible_os_family == 'Debian'
 
 # Setup/install tasks.
 - include: setup-RedHat.yml
@@ -19,3 +21,6 @@
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..59bc099
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure lttng-tools build dependencies are installed.
+  apk: "name={{ item }} state=present"
+  with_items: lttng_tools_packages
diff --git a/automation/ansible/roles/lttng-tools/vars/Alpine.yml b/automation/ansible/roles/lttng-tools/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..410e912
--- /dev/null
@@ -0,0 +1,7 @@
+---
+__lttng_tools_packages:
+  - popt-dev
+  - libxml2-dev
+  - bash-completion
+  - asciidoc
+  - xmlto
index 958527511c035037ee35581451f51ed0f796ceb9..6eab757bef9e1f4b6f78e7afaa90cba0b7b07df7 100644 (file)
@@ -14,3 +14,6 @@
 
 - include: setup-Debian.yml
   when: ansible_os_family == 'Debian'
+
+- include: setup-Alpine.yml
+  when: ansible_os_family == 'Alpine'
diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml
new file mode 100644 (file)
index 0000000..faa75df
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Update apk cache.
+  apk: update_cache=yes
+
+- name: Ensure lttng-ust build dependencies are installed.
+  apk: "name={{ item }} state=present"
+  with_items: lttng_ust_packages
diff --git a/automation/ansible/roles/lttng-ust/vars/Alpine.yml b/automation/ansible/roles/lttng-ust/vars/Alpine.yml
new file mode 100644 (file)
index 0000000..b564c17
--- /dev/null
@@ -0,0 +1,7 @@
+---
+__lttng_ust_packages:
+  - util-linux-dev
+  - texinfo
+  - python3
+#  - liblog4j1.2-java
+  - openjdk8
This page took 0.029343 seconds and 4 git commands to generate.