Skip to content

Commit

Permalink
more fixes for ubuntu 16 and 18
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodav committed Jan 7, 2019
1 parent a299de8 commit d351b04
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 19 deletions.
28 changes: 14 additions & 14 deletions molecule/local/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ platforms:
groups:
- group1

- name: ansible_test-01_2
image: paulfantom/ubuntu-molecule:18.04
privileged: True
command: /sbin/init
capabilities:
- SYS_ADMIN
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
groups:
- group1
# - name: ansible_test-01_2
# image: paulfantom/ubuntu-molecule:18.04
# privileged: True
# command: /sbin/init
# capabilities:
# - SYS_ADMIN
# volumes:
# - "/sys/fs/cgroup:/sys/fs/cgroup:ro"
# groups:
# - group1

- name: ansible_test-02
image: ubuntu:trusty
groups:
- groupold
# - name: ansible_test-02
# image: ubuntu:trusty
# groups:
# - groupold
#
# - name: ansible_test-03
# image: centos/systemd
Expand Down
8 changes: 6 additions & 2 deletions tasks/config_thruk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
src=thruk_local.conf.j2
dest=/etc/thruk/thruk_local.conf
owner=www-data group=www-data mode=660
notify: Restart Thruk
notify:
- Restart Apache
- Restart Thruk

- name: link images/logos for thruk theme Exfoliation
file: src={{ item.src }} dest={{ item.dest }} state=link
Expand All @@ -79,9 +81,11 @@
apache2_module:
state: present
name: fastcgi
when: thruk_enable_fastcgi

# enables the Apache2 module "fcgid"
- name: enable fastcgi on apache for thruk installation
- name: enable fcgid on apache for thruk installation
apache2_module:
state: present
name: fcgid

4 changes: 3 additions & 1 deletion tasks/install_thruk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
- name: Install thruk packages
package: name={{ thruk_packages| join(',') }} state=present
environment:
DEBIAN_FRONTEND: noninteractive
DEBIAN_FRONTEND: noninteractive
notify: Restart Apache

8 changes: 7 additions & 1 deletion tasks/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@
state: started

- name: test if "{{ nagios_live_sock }}" exist for thruk connection
file: path="{{ nagios_live_sock }}" state=file
file: path="{{ nagios_live_sock }}" state=file

- name: ensure thruk is started
service:
name: "thruk"
state: started

8 changes: 7 additions & 1 deletion tasks/thruk_fixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@

- name: delete /etc/apache2/conf-enabled/thruk_cookie_auth_vhost.conf fixes https://github.com/sni/Thruk/issues/504
file: path='/etc/apache2/conf-enabled/thruk_cookie_auth_vhost.conf' state=absent
notify: Reload Apache
notify: Restart Apache

- name: ensure /usr/share/thruk/var exists
file:
path: /usr/share/thruk/var
state: directory

3 changes: 3 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ thruk_dependencies:

thruk_packages:
- thruk # on repository

thruk_enable_fastcgi: true

3 changes: 3 additions & 0 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ thruk_dependencies:

thruk_packages:
- thruk # on repository

thruk_enable_fastcgi: false

3 changes: 3 additions & 0 deletions vars/Ubuntu-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ thruk_dependencies:

thruk_packages:
- thruk # on repository

thruk_enable_fastcgi: false

0 comments on commit d351b04

Please sign in to comment.