Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Ant_Devops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
Ant_Devops
Commits
0159629c
Commit
0159629c
authored
Oct 29, 2018
by
ChongmingDu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update httpd templates
parent
2a1333f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
1 deletions
+122
-1
roles/zabbix_server/files/dingdingrobot.py
+1
-1
roles/zabbix_server/tasks/main.yml
+5
-0
roles/zabbix_server/templates/httpd.conf
+114
-0
roles/zabbix_server/templates/zabbix_server.conf
+2
-0
No files found.
roles/zabbix_server/files/dingdingrobot.py
View file @
0159629c
...
...
@@ -6,7 +6,7 @@ import sys
import
os
headers
=
{
'Content-Type'
:
'application/json;charset=utf-8'
}
api_url
=
""
#dingding token
api_url
=
""
#dingding token
def
msg
(
text
):
json_text
=
{
...
...
roles/zabbix_server/tasks/main.yml
View file @
0159629c
...
...
@@ -24,6 +24,11 @@
notify
:
-
restart zabbix-server
-
name
:
"
copy
apache
httpd
templates"
template
:
src
:
httpd.conf
dest
:
/etc/httpd/conf/httpd.conf
-
name
:
"
run
zabbix
web"
template
:
src
:
zabbix.conf
...
...
roles/zabbix_server/templates/httpd.conf
0 → 100644
View file @
0159629c
ServerRoot
"/etc/httpd"
Listen
1080
Include
conf.modules.d/*.conf
User
apache
Group
apache
ServerAdmin
root@localhost
ServerName
zabbixmayi888.kukahome.com:1080
<
Directory
/
>
AllowOverride
none
Require
all denied
</
Directory
>
DocumentRoot
"/usr/share/zabbix"
<
Directory
"/var/www"
>
AllowOverride
None
# Allow open access:
Require
all granted
</
Directory
>
# Further relax access to the default document root:
<
Directory
"/var/www/html"
>
Options
Indexes
FollowSymLinks
AllowOverride
None
Require
all granted
</
Directory
>
<
IfModule
dir_module
>
DirectoryIndex
index.html
</
IfModule
>
<
Files
".ht*"
>
Require
all denied
</
Files
>
ErrorLog
"logs/error_log"
LogLevel
warn
<
IfModule
log_config_module
>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat
"%h %l %u %t \"%r\" %>s %b" common
<
IfModule
logio_module
>
# You need to enable mod_logio.c to use %I and %O
LogFormat
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</
IfModule
>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access_log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog
"logs/access_log" combined
</
IfModule
>
<
IfModule
alias_module
>
ScriptAlias
/cgi-bin/ "/var/www/cgi-bin/"
</
IfModule
>
<
Directory
"/var/www/cgi-bin"
>
AllowOverride
None
Options
None
Require
all granted
</
Directory
>
<
IfModule
mime_module
>
TypesConfig
/etc/mime.types
AddType
application/x-compress .Z
AddType
application/x-gzip .gz .tgz
AddType
text/html .shtml
AddOutputFilter
INCLUDES .shtml
</
IfModule
>
AddDefaultCharset
UTF-8
<
IfModule
mime_magic_module
>
MIMEMagicFile
conf/magic
</
IfModule
>
EnableSendfile
on
IncludeOptional
conf.d/*.conf
\ No newline at end of file
roles/zabbix_server/templates/zabbix_server.conf
View file @
0159629c
...
...
@@ -8,6 +8,8 @@ PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir
=/
var
/
run
/
zabbix
DBHost
=
localhost
DBName
=
zabbix
DBUser
=
zabbix
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment