icinga2.ssh_client
This commit is contained in:
51
icinga2/server.sls
Normal file
51
icinga2/server.sls
Normal file
@@ -0,0 +1,51 @@
|
||||
include:
|
||||
- nginx
|
||||
|
||||
icinga_packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- vim-icinga2
|
||||
- icinga2
|
||||
- icingaweb2
|
||||
- icinga2-ido-mysql
|
||||
- certbot
|
||||
- python-certbot-nginx
|
||||
|
||||
apache2:
|
||||
service.dead:
|
||||
- enable: False
|
||||
- require_by:
|
||||
- pkg: nginx
|
||||
file.absent:
|
||||
- name: /etc/apache2
|
||||
|
||||
icingaweb2_vhost:
|
||||
file.managed:
|
||||
- name: /etc/nginx/sites-available/icingaweb2
|
||||
- source: 'salt://icinga2/files/icingaweb2.jinja'
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- require:
|
||||
- pkg: nginx
|
||||
- watch_by:
|
||||
- service: nginx
|
||||
|
||||
/etc/icinga2/conf.d:
|
||||
git.cloned:
|
||||
- name: ssh://keiran5@git.keiran.us:9022/config-mgmt/icinga2-conf.d.git
|
||||
- target: /etc/icinga2/conf.d
|
||||
|
||||
# icingacli setup config directory
|
||||
# icingacli setup token create
|
||||
# icingacli setup token show
|
||||
# visit /icingaweb2/setup
|
||||
|
||||
icingaweb2_enable:
|
||||
file.symlink:
|
||||
- name: /etc/nginx/sites-enabled/icingaweb2
|
||||
- target: /etc/nginx/sites-available/icingaweb2
|
||||
- watch_by:
|
||||
- service: nginx
|
||||
|
||||
# apt --no-install-recommends install nagios-nrpe-plugin
|
||||
Reference in New Issue
Block a user