From bf51c0e84ddf5d8abc59fefb49e39de5f874eab4 Mon Sep 17 00:00:00 2001 From: heluwei Date: Fri, 22 Sep 2017 15:51:29 +0800 Subject: 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 --- src/spdk/ansible/README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/spdk/ansible/README.md (limited to 'src/spdk/ansible/README.md') diff --git a/src/spdk/ansible/README.md b/src/spdk/ansible/README.md new file mode 100644 index 0000000..20299a7 --- /dev/null +++ b/src/spdk/ansible/README.md @@ -0,0 +1,36 @@ +# spdk-ansible: deploy spdk +## Install ssh server + sudo apt-get install openssh-server + + if you use root to run spdk-ansible, you should open the file of + /etc/ssh/sshd_config and modify: + PermitRootLogin yes + sudo /etc/init.d/ssh restart + + generate ssh-token: + ssh-keygen -t rsa + ssh-copy-id -i ~/.ssh/id_rsa.pub + +## Install the ansible tool: + sudo add-apt-repository ppa:ansible/ansible + sudo apt-get update + sudo apt-get install ansible + +## Configure Inventory, default in /etc/ansible/hosts: + [spdk_server] + your_host_name or your_host_ip + +## Check if the hosts could be reached: + ansible all -m ping + +## Download spdk-ansible + git clone https://github.com/hellowaywewe/spdk-ansible.git + +## configure spdk-ansible + Configure common.yml according to required vars. + Configure site.yml according to required tasks. + +## Run ansible playbook: (under spdk-ansible root directory) + ansible-playbook site.yml --extra-vars "ansible_sudo_pass=your_user_password" + if you use root to run,you can execute directly: + ansible-playbook site.yml -- cgit 1.2.3-korg