fix the lz4 packages dependence 19/49619/4
authorwutianwei <wutianwei1@huawei.com>
Mon, 25 Dec 2017 07:39:50 +0000 (15:39 +0800)
committerwutianwei <wutianwei1@huawei.com>
Mon, 25 Dec 2017 10:58:17 +0000 (18:58 +0800)
1. install pkgconfig
2. mv the tasks of fixing pip issue out of the main script

Change-Id: Icc08a3c461690d1d6747455479df0a58d87d22da
Signed-off-by: wutianwei <wutianwei1@huawei.com>
deploy/adapters/ansible/roles/config-osa/tasks/fix_pip_version.yml [new file with mode: 0644]
deploy/adapters/ansible/roles/config-osa/tasks/main.yml

diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/fix_pip_version.yml b/deploy/adapters/ansible/roles/config-osa/tasks/fix_pip_version.yml
new file mode 100644 (file)
index 0000000..61d263b
--- /dev/null
@@ -0,0 +1,25 @@
+# #############################################################################
+# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+# #############################################################################
+---
+- name: copy the repo_fix_andas.yml
+  template:
+    src: repo_fix_pandas.yml
+    dest: /etc/ansible/roles/repo_build/tasks/repo_fix_pandas.yml
+
+- name: fix the python-ldap version
+  lineinfile:
+    dest: /etc/ansible/roles/os_keystone/defaults/main.yml
+    regexp: '^  - python-ldap'
+    line: '  - python-ldap==2.5.2'
+
+- name: add pkgconfig in gnocchi requires pip packages
+  lineinfile:
+    dest: /etc/ansible/roles/repo_build/defaults/main.yml
+    insertafter: "repo_pip_packages:"
+    line: '  - pkgconfig'
index 49e4e26..855412a 100755 (executable)
   when:
     - "{{ hostvars[inventory_hostname]['groups']['controller'] | length < 2 }}"
 
-- name: copy the repo_fix_andas.yml
-  template:
-    src: repo_fix_pandas.yml
-    dest: /etc/ansible/roles/repo_build/tasks/repo_fix_pandas.yml
-
 # - name: change repore build
 #  lineinfile:
 #    dest: /etc/ansible/roles/repo_build/tasks/main.yml
 
 - include: meters.yml
 
-- name: fix the python-ldap version
-  lineinfile:
-    dest: /etc/ansible/roles/os_keystone/defaults/main.yml
-    regexp: '^  - python-ldap'
-    line: '  - python-ldap==2.5.2'
+- include: fix_pip_version.yml
 
 - include: fix_rescue.yml