]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
skip packages / repo unavailable on aarch64 224/head
authorLoic Dachary <loic@dachary.org>
Wed, 6 Apr 2016 19:04:16 +0000 (21:04 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 8 Apr 2016 16:07:06 +0000 (18:07 +0200)
Signed-off-by: Loic Dachary <loic@dachary.org>
roles/testnode/tasks/apt/packages.yml
roles/testnode/tasks/apt/repos.yml
roles/testnode/tasks/main.yml
roles/testnode/tasks/setup-ubuntu-non-aarch64.yml [new file with mode: 0644]
roles/testnode/tasks/setup-ubuntu.yml
roles/testnode/vars/ubuntu.yml
roles/testnode/vars/ubuntu_14.yml

index c807266920410eb60712bc8fc9e66809ccaed308..44dc75189dc7a9d3d30122c62f42694a2ca0356a 100644 (file)
   with_items: packages_to_upgrade
   when: packages_to_upgrade|length > 0
 
+- name: Upgrade non aarch64 packages
+  apt:
+    name: "{{ item }}"
+    state: latest
+    force: yes
+  with_items: non_aarch64_packages_to_upgrade
+  when:
+    non_aarch64_packages_to_upgrade|length > 0 and
+    ansible_architecture != "aarch64"
+
 - name: Install packages
   apt:
     name: "{{ item }}"
   with_items: packages|list + common_packages|list
   when: packages|length > 0 or
         common_packages|length > 0
+
+- name: Install non aarch64 packages
+  apt:
+    name: "{{ item }}"
+    state: present
+  with_items: non_aarch64_packages|list + non_aarch64_common_packages|list
+  when: ansible_architecture != "aarch64"
index 131923c2877811690b3464f5a7e4ced70299e55e..d1c4cd5eca56c6a82b9a057f78c4b1b8db9553d9 100644 (file)
@@ -29,6 +29,7 @@
     group: root
     mode: 0644
   register: sources
+  when: ansible_architecture != "aarch64"
 
 - name: Install apt keys
   apt_key:
@@ -55,3 +56,4 @@
     mode: 0644
   with_items: apt_repos|list + common_apt_repos|list
   register: local_apt_repos
+  when: ansible_architecture != "aarch64"
index 49f04c1e921603ca07d845dd3faccce8454bf6de..7b0f536b5a6f2f675e786050bb4117211d6244ba 100644 (file)
 - include: setup-ubuntu.yml
   when: ansible_distribution == "Ubuntu"
 
+- include: setup-ubuntu-non-aarch64.yml
+  when:
+    ansible_distribution == "Ubuntu" and
+    ansible_architecture != "aarch64"
+
 # configure debian specific things
 - include: setup-debian.yml
   when: ansible_distribution == "Debian"
diff --git a/roles/testnode/tasks/setup-ubuntu-non-aarch64.yml b/roles/testnode/tasks/setup-ubuntu-non-aarch64.yml
new file mode 100644 (file)
index 0000000..48f2170
--- /dev/null
@@ -0,0 +1,70 @@
+---
+- name: Upload weekly kernel-clean crontab.
+  template:
+    src: cron/kernel-clean
+    dest: /etc/cron.weekly/kernel-clean
+    owner: root
+    group: root
+    mode: 0755
+  notify:
+    - restart cron
+
+- name: Upload /etc/grub.d/02_force_timeout.
+  template:
+    src: grub.d/02_force_timeout
+    dest: /etc/grub.d/02_force_timeout
+    owner: root
+    group: root
+    mode: 0755
+
+- name: Enable kernel logging to console.
+  script: scripts/kernel_logging.sh creates=/kernel-logging-setup
+  register: kernel_logging
+  tags:
+    - kernel_logging
+
+- name: Update grub
+  command: update-grub
+  when: kernel_logging|changed
+  tags:
+    - kernel_logging
+
+- name: Upload ttyS1.conf.
+  template:
+    src: ttyS1.conf
+    dest: /etc/init/ttyS1.conf
+    owner: root
+    group: root
+    mode: 0644
+  notify:
+    - start ttyS1
+
+# this only runs on mira nodes
+- name: Upload ttyS2.conf.
+  template:
+    src: ttyS2.conf
+    dest: /etc/init/ttyS2.conf
+    owner: root
+    group: root
+    mode: 0644
+  notify:
+    - start ttyS2
+  when: ansible_hostname | search("^mira*")
+
+- name: Enable kernel modules to load at boot time.
+  template:
+    src: modules
+    dest: /etc/modules
+    owner: root
+    group: root
+    mode: 0644
+
+- name: Enabling auto-fsck fix to prevent boot hangup.
+  lineinfile:
+    dest: /etc/default/rcS
+    line: "FSCKFIX=yes"
+    regexp: "FSCKFIX=no"
+    # backrefs makes it so that if the regexp
+    # isn't found the file is left unchanged
+    backrefs: yes
+    state: present
index 3e06e7afae8db603c1436b953a743c61a62d2b1a..d3599bf49057e2471d63ab6ecb25e49ed50265ca 100644 (file)
@@ -4,81 +4,11 @@
     path: /etc/ceph
     state: absent
 
-- name: Upload weekly kernel-clean crontab.
-  template:
-    src: cron/kernel-clean
-    dest: /etc/cron.weekly/kernel-clean
-    owner: root
-    group: root
-    mode: 0755
-  notify:
-    - restart cron
-
 # Install and configure cpan and Amazon::S3
 - include: cpan.yml
   tags:
     - cpan
 
-- name: Upload /etc/grub.d/02_force_timeout.
-  template:
-    src: grub.d/02_force_timeout
-    dest: /etc/grub.d/02_force_timeout
-    owner: root
-    group: root
-    mode: 0755
-
-- name: Enable kernel logging to console.
-  script: scripts/kernel_logging.sh creates=/kernel-logging-setup
-  register: kernel_logging
-  tags:
-    - kernel_logging
-
-- name: Update grub
-  command: update-grub
-  when: kernel_logging|changed
-  tags:
-    - kernel_logging
-
-- name: Upload ttyS1.conf.
-  template:
-    src: ttyS1.conf
-    dest: /etc/init/ttyS1.conf
-    owner: root
-    group: root
-    mode: 0644
-  notify:
-    - start ttyS1
-
-# this only runs on mira nodes
-- name: Upload ttyS2.conf.
-  template:
-    src: ttyS2.conf
-    dest: /etc/init/ttyS2.conf
-    owner: root
-    group: root
-    mode: 0644
-  notify:
-    - start ttyS2
-  when: ansible_hostname | search("^mira*")
-
-- name: Enable kernel modules to load at boot time.
-  template:
-    src: modules
-    dest: /etc/modules
-    owner: root
-    group: root
-    mode: 0644
-
-- name: Enabling auto-fsck fix to prevent boot hangup.
-  lineinfile:
-    dest: /etc/default/rcS
-    line: "FSCKFIX=yes"
-    regexp: "FSCKFIX=no"
-    # backrefs makes it so that if the regexp
-    # isn't found the file is left unchanged
-    backrefs: yes
-    state: present
-
 - include: nfs.yml
   tags:
     - nfs
index 7acb8022536f2c11c0d938576c55fd249a521794..f10bd220a2812b24f6d18e165bfddf92ab017cbf 100644 (file)
@@ -24,18 +24,15 @@ common_packages:
   - python-gevent
   # for running ceph
   - libedit2
-  - libssl0.9.8
   - cryptsetup-bin
   - xfsprogs
   - gdisk
   - parted
   ###
   # for setting BIOS settings
-  - smbios-utils
   ###
   - libcrypto++9
   - libuuid1
-  - libfcgi
   - btrfs-tools
   # for compiling helpers and such
   - libatomic-ops-dev
@@ -45,7 +42,6 @@ common_packages:
   - attr
   - dbench
   - bonnie++
-  - iozone3
   - valgrind
   - python-nose
   - mpich2
@@ -60,7 +56,6 @@ common_packages:
   - libacl1-dev
   - bc
   - xfsdump
-  - dmapi
   - xfslibs-dev
   - libattr1-dev
   - quota
@@ -68,7 +63,6 @@ common_packages:
   - libncurses5-dev
   - lvm2
   ###
-  - sysprof
   - vim
   - pdsh
   - collectl
@@ -104,9 +98,19 @@ common_packages:
   - nfs-common
   - nfs-kernel-server
 
+non_aarch64_common_packages:
+  - libssl0.9.8
+  - smbios-utils
+  - libfcgi
+  - iozone3
+  - dmapi
+  - sysprof
+
 packages_to_upgrade:
   - apt
   - apache2
+
+non_aarch64_packages_to_upgrade:
   - libapache2-mod-fastcgi
 
 packages_to_remove:
index e1af418416e36dc6741c90eb3342115f53c23580..6450c14e28163f6d8a1f8d6da7284c1f3f282b76 100644 (file)
@@ -6,9 +6,11 @@
 #  - "deb [arch=amd64] http://{{ mirror_host }}/blkin/ trusty main"
 
 packages:
-  - libgoogle-perftools4
   - libboost-thread1.54.0
   - mpich
   - qemu-system-x86
 #  - blkin
   - lttng-tools
+
+non_aarch64_packages:
+  - libgoogle-perftools4