Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nagios-pkgs:
- pkg.installed:
- - pkgs:
- - httpd
- - php
- - gd
- - gd-devel
- - mod_ssl
- - mod_authz_ldap
- install-nagios:
- cmd.run:
- - name: |
- /usr/sbin/usermod -G nagios apache
- cd /usr/local/src
- wget -c http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
- wget -c http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
- tar -xzf nagios-4.0.8.tar.gz
- cd nagios-4.0.8
- ./configure --with-command-group=nagios
- make all
- make install
- make install-config
- make install-commandmode
- mkdir /etc/httpd/certs/
- mkdir /etc/httpd/conf/extra
- - cwd: /usr/local/src
- - shell: /bin/bash
- - timeout: 300
- - unless: test -x /usr/local/nagios/bin/nagios
- - require:
- - nagios-pkgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement