From ce1722f21da341293ab44be9fba9d1548e13a268 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sun, 30 Aug 2015 14:30:25 -0400 Subject: [PATCH] Initial support for CentOS 7 host Signed-off-by: Paul Belanger --- tasks/install.yaml | 3 +++ tasks/install/redhat.yaml | 9 +++++++++ vars/RedHat.yaml | 15 +++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 tasks/install/redhat.yaml create mode 100644 vars/RedHat.yaml diff --git a/tasks/install.yaml b/tasks/install.yaml index 2806658..a2ecbd7 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -12,6 +12,9 @@ - include: install/debian.yaml when: ansible_os_family == 'Debian' +- include: install/redhat.yaml + when: ansible_os_family == 'RedHat' + - include: install/git.yaml when: nodepool_install_method == 'git' diff --git a/tasks/install/redhat.yaml b/tasks/install/redhat.yaml new file mode 100644 index 0000000..c578b02 --- /dev/null +++ b/tasks/install/redhat.yaml @@ -0,0 +1,9 @@ +--- +- name: Ensure build dependencies are installed. + yum: "pkg={{ item }} state=installed" + with_items: nodepool_build_depends + when: nodepool_install_method == 'git' or nodepool_install_method == 'pip' + +- name: Ensure dependencies are installed. + yum: "pkg={{ item }} state=installed" + with_items: nodepool_depends diff --git a/vars/RedHat.yaml b/vars/RedHat.yaml new file mode 100644 index 0000000..d7b3a13 --- /dev/null +++ b/vars/RedHat.yaml @@ -0,0 +1,15 @@ +--- +__nodepool_build_depends: + - gcc + - gcc-c++ + - libffi-devel + - libxml2-devel + - libxslt-devel + - openssl-devel + - python-devel + - python-pip + - zlib-devel + +__nodepool_depends: + - debootstrap + - qemu-img