Add testing for icinga2

This commit is contained in:
Jean Flach 2017-03-03 15:16:12 +01:00
parent fb5ba17fb3
commit eb867fd1e7
1 changed files with 18 additions and 0 deletions

18
testing/start_test.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
sudo yum install -y createrepo
createrepo $WORKSPACE/archive
sudo -E su -c "cat << EOF > /etc/yum.repos.d/local.repo
[local]
name=Nyarlathotep
baseurl=file://$WORKSPACE/archive
enabled=1
gpgcheck=0
EOF"
sudo yum update -y
sudo yum install -y icinga2 mariadb-server icinga2-ido-mysql
sudo icinga2 daemon -C