Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
94d43f55
Commit
94d43f55
authored
8 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
nagios_server updates
parent
911c331e
No related branches found
Branches containing commit
No related tags found
1 merge request
!50
Nagios update
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/nagios_server/tasks/main.yml
+13
-3
13 additions, 3 deletions
roles/nagios_server/tasks/main.yml
roles/nagios_server/templates/cgi.cfg.j2
+7
-8
7 additions, 8 deletions
roles/nagios_server/templates/cgi.cfg.j2
roles/upgrade/tasks/main.yml
+7
-0
7 additions, 0 deletions
roles/upgrade/tasks/main.yml
with
27 additions
and
11 deletions
roles/nagios_server/tasks/main.yml
+
13
−
3
View file @
94d43f55
...
...
@@ -16,12 +16,22 @@
with_items
:
-
nagios3
-
python-passlib
-
libapache2-mod-webauthldap
sudo
:
true
when
:
ansible_os_family == "Debian"
-
name
:
configure nagios authentication
htpasswd
:
path=/etc/nagios3/htpasswd.users name={{ nagios_username }} password={{ nagios_password }}
sudo
:
true
-
name
:
enable apache modules
apache2_module
:
state=present name={{ item }}
with_items
:
-
ldap
-
authnz_ldap
become
:
true
become_user
:
root
-
name
:
install apache site config
template
:
src=nagios3.conf.j2 dest=/etc/apache2/conf-available/nagios3.conf
become
:
true
become_user
:
root
-
name
:
force restart
service
:
name=nagios3 state=started
...
...
This diff is collapsed.
Click to expand it.
roles/nagios_server/templates/cgi.cfg.j2
+
7
−
8
View file @
94d43f55
...
...
@@ -129,7 +129,7 @@ use_ssl_authentication=0
# not use authorization. You may use an asterisk (*) to
# authorize any user who has authenticated to the web server.
authorized_for_system_information=
nagiosadmin,nagios
authorized_for_system_information=
*
...
...
@@ -141,7 +141,7 @@ authorized_for_system_information=nagiosadmin,nagios
# an asterisk (*) to authorize any user who has authenticated
# to the web server.
authorized_for_configuration_information=
nagiosadmin,nagios
authorized_for_configuration_information=
*
...
...
@@ -154,7 +154,7 @@ authorized_for_configuration_information=nagiosadmin,nagios
# You may use an asterisk (*) to authorize any user who has
# authenticated to the web server.
authorized_for_system_commands=
nagiosadmin,nagios
authorized_for_system_commands=
*
...
...
@@ -167,8 +167,8 @@ authorized_for_system_commands=nagiosadmin,nagios
# to authorize any user who has authenticated to the web server.
authorized_for_all_services=
nagiosadmin,nagios
authorized_for_all_hosts=
nagiosadmin,nagios
authorized_for_all_services=
*
authorized_for_all_hosts=
*
...
...
@@ -181,8 +181,8 @@ authorized_for_all_hosts=nagiosadmin,nagios
# authorization). You may use an asterisk (*) to authorize any
# user who has authenticated to the web server.
authorized_for_all_service_commands=
nagiosadmin,nagios
authorized_for_all_host_commands=
nagiosadmin,nagios
authorized_for_all_service_commands=
*
authorized_for_all_host_commands=
*
...
...
@@ -374,4 +374,3 @@ lock_author_names=1
#splunk_url=http://127.0.0.1:8000/
This diff is collapsed.
Click to expand it.
roles/upgrade/tasks/main.yml
+
7
−
0
View file @
94d43f55
---
-
name
:
install aptitude
apt
:
name=aptitude state=installed
become
:
true
become_user
:
root
when
:
ansible_os_family=="Debian"
-
name
:
apt-get upgrade
apt
:
upgrade=safe
sudo
:
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment