summaryrefslogtreecommitdiffstats
path: root/src/spdk/ansible/tasks/install.yml
diff options
context:
space:
mode:
authorheluwei <heluwei@huawei.com>2017-09-22 15:51:29 +0800
committerheluwei <heluwei@huawei.com>2018-01-06 20:48:16 +0800
commitbf51c0e84ddf5d8abc59fefb49e39de5f874eab4 (patch)
treee4f4a9301b24ad4ab5e94af2307116a1ebec30b6 /src/spdk/ansible/tasks/install.yml
parenteb2d77147b52fcaf9267dc6157b63aef7e7afbca (diff)
Add script files of test and spdk-ansible for SPDK
The runtest.py file and the spdk-ansible are submitted. The runtest.py file is used to execute the scripts of test to validate whether the SPDK is available. The spdk-ansible is used to install SPDK by the ansible tool. Change-Id: I9eca7fb5cfcd2dcf718a0ef99d0ced5f962fd92a Signed-off-by: heluwei <heluwei@huawei.com>
Diffstat (limited to 'src/spdk/ansible/tasks/install.yml')
-rw-r--r--src/spdk/ansible/tasks/install.yml33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/spdk/ansible/tasks/install.yml b/src/spdk/ansible/tasks/install.yml
new file mode 100644
index 0000000..7957ba8
--- /dev/null
+++ b/src/spdk/ansible/tasks/install.yml
@@ -0,0 +1,33 @@
+---
+- name: download spdk source code
+ shell: git clone "{{ remote_url }}"
+ args:
+ chdir: "{{ user_dir }}"
+ when: enabled_install == "spdk_alone"
+
+- name: download spdk source code into ceph
+ shell: git submodule update --init src/spdk
+ args:
+ chdir: "{{ ceph_dir }}"
+ when: enabled_install == "ceph_spdk"
+
+- name: Install the spdk dependency packages
+ shell: sudo ./scripts/pkgdep.sh
+ args:
+ chdir: "{{ spdk_dir }}"
+
+- name: Download dpdk
+ raw: cd {{ spdk_dir }} && sudo git submodule update --init
+
+### deploy spdk in Ubuntu, Debian, Centos, Fedora
+- name: deploy the spdk
+ raw: ((cd {{ spdk_dir }}/dpdk && make install T=x86_64-native-linuxapp-gcc DESTDIR=./) && (cd {{ spdk_dir }} && ./configure --with-dpdk=./dpdk/x86_64-native-linuxapp-gcc)) && (cd {{ spdk_dir }} && make)
+ when:
+ - (system_version == 'Ubuntu' or system_version == 'Debian') or (system_version == 'Centos' or system_version == 'Fedora')
+
+
+### deploy spdk in FreeBSD
+- name: deploy the spdk
+ raw: ((cd {{ spdk_dir }}/dpdk && gmake install T=x86_64-native-linuxapp-gcc DESTDIR=./) && (cd {{ spdk_dir }} && ./configure --with-dpdk=./dpdk/x86_64-native-linuxapp-gcc)) && (cd {{ spdk_dir }} && gmake)
+ when:
+ - system_version == 'FreeBSD'