summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2021-04-22 11:54:56 +0100
committerAnoop C S <anoopcs@cryptolab.net>2021-04-23 16:47:09 +0530
commit57b5836b59d5333f85110a9229e840ae1af88b3c (patch)
tree1ccf50b13f712c7eedc0c40612efe1f323c497d5
parent16c4d45090bc58415a661ad09880c2f4f52fc77c (diff)
downloadsamba-integration-57b5836b59d5333f85110a9229e840ae1af88b3c.tar.gz
samba-integration-57b5836b59d5333f85110a9229e840ae1af88b3c.tar.xz
samba-integration-57b5836b59d5333f85110a9229e840ae1af88b3c.zip
Setup CentOS7 Samba build environment
Setup samba build environments on CentOS 7 storage* vms. This is useful when having to rebuild samba to test build failures on the system setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r--devel/Makefile3
-rw-r--r--devel/README.md3
-rw-r--r--devel/centos7_build_setup.yml93
3 files changed, 99 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 98d0e12..777ca3c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2,3 +2,6 @@ INVENTORY := ./inventory
fix_ssh:
@ansible-playbook -i ${INVENTORY} fix_ssh.yml
+
+centos7_build_setup:
+ @ansible-playbook -i ${INVENTORY} centos7_build_setup.yml
diff --git a/devel/README.md b/devel/README.md
index 2ae91f2..6fbcca0 100644
--- a/devel/README.md
+++ b/devel/README.md
@@ -5,3 +5,6 @@ The Makefile targets are as follows
##fix_ssh:
Fix the ssh on the test machines so that you can directly ssh into them. Before you can use this target, you will need to create authorized_keys file in the directory which will be copied to /root/.ssh/authorized_keys on the test machine.
+##centos7_build_setup:
+Install the required packages needed to setup a samba build environment on the storage* hosts. This is useful when instrumenting samba on these machines to check for a root cause for test failures
+
diff --git a/devel/centos7_build_setup.yml b/devel/centos7_build_setup.yml
new file mode 100644
index 0000000..f853a70
--- /dev/null
+++ b/devel/centos7_build_setup.yml
@@ -0,0 +1,93 @@
+---
+- hosts: cluster
+ become: yes
+ tasks:
+
+ - name: Install required rpms
+ yum:
+ name:
+ - git
+ - gdb
+ - gcc
+ - python
+ - perl
+ - automake
+ - autoconf
+ - libtool
+ - flex
+ - bison
+ - openssl-devel
+ - libxml2-devel
+ - python-devel
+ - libaio-devel
+ - libibverbs-devel
+ - librdmacm-devel
+ - readline-devel
+ - lvm2-devel
+ - glib2-devel
+ - userspace-rcu-devel
+ - libcmocka-devel
+ - libacl-devel
+ - sqlite-devel
+ - fuse-devel
+ - cups-devel
+ - dbus-devel
+ - docbook-style-xsl
+ - libarchive-devel
+ - libcap-devel
+ - libxslt
+ - openldap-devel
+ - pam-devel
+ - perl-ExtUtils-MakeMaker
+ - perl-Parse-Yapp
+ - perl-Test-Simple
+ - popt-devel
+ - python-tdb
+ - python-tevent
+ - quota-devel
+ - gnutls-devel
+ - libtirpc
+ - libtirpc-devel
+ - jansson-devel
+ - python3-devel
+ - zlib-devel
+ - glusterfs-api-devel
+ - glusterfs-devel
+ - python36-pyasn1-modules.noarch
+ - python-setuptools
+ state: latest
+
+ - name: add copr to get compat-gnutls34
+ command: yum -y copr enable sergiomb/SambaAD
+
+ - name: modify copr repo to only use it for compat-gnutls packages
+ lineinfile:
+ dest: /etc/yum.repos.d/_copr_sergiomb-SambaAD.repo
+ line: "includepkgs=compat-gnutls34.* compat-nettle32.*"
+ insertafter: '\[copr:copr.fedorainfracloud.org:sergiomb:SambaAD\]'
+
+ - name: Remove RHEL 7 packages which are not needed
+ yum:
+ name:
+ - gnutls-dane
+ - nettle-devel
+ - gnutls-c++
+ - gnutls
+ state: absent
+
+ - name: Install latest devel packages from sergiomb/SambaAD
+ yum:
+ name:
+ - https://copr-be.cloud.fedoraproject.org/results/sergiomb/SambaAD/epel-7-x86_64/01637734-compat-gnutls34/compat-gnutls34-devel-3.4.17-7.el7.x86_64.rpm
+ - https://copr-be.cloud.fedoraproject.org/results/sergiomb/SambaAD/epel-7-x86_64/01637734-compat-gnutls34/compat-gnutls34-dane-3.4.17-7.el7.x86_64.rpm
+ - https://copr-be.cloud.fedoraproject.org/results/sergiomb/SambaAD/epel-7-x86_64/01637734-compat-gnutls34/compat-gnutls34-c++-3.4.17-7.el7.x86_64.rpm
+ - https://copr-be.cloud.fedoraproject.org/results/sergiomb/SambaAD/epel-7-x86_64/00839529-compat-nettle32/compat-nettle32-devel-3.2-3.el7.x86_64.rpm
+ state: present
+
+ - name: Install python modules
+ pip:
+ executable: /usr/bin/pip3
+ name:
+ - cryptography==3.3.1
+ - iso8601
+ - asn1