Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
servers-config
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
servers-config
Commits
cdb902d1
Commit
cdb902d1
authored
Mar 13, 2018
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/firewall: deploy
parent
b98790c4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
roles/common/tasks/firewall.yml
roles/common/tasks/firewall.yml
+1
-1
roles/common/tasks/main.yml
roles/common/tasks/main.yml
+2
-2
roles/common/templates/firewall/firewall.sh
roles/common/templates/firewall/firewall.sh
+1
-1
roles/lxd-container/tasks/networking.yml
roles/lxd-container/tasks/networking.yml
+1
-1
roles/nginx/tasks/setup.yml
roles/nginx/tasks/setup.yml
+1
-1
No files found.
roles/common/tasks/firewall.yml
View file @
cdb902d1
...
...
@@ -2,7 +2,7 @@
-
name
:
create the firewall config dir
file
:
path
:
/
usr/local/share/firewall.d
path
:
/
etc/firewall
mode
:
0700
state
:
directory
...
...
roles/common/tasks/main.yml
View file @
cdb902d1
...
...
@@ -9,8 +9,8 @@
-
name
:
ssh
include
:
ssh.yml
#
- name: firewall
#
include: firewall.yml
-
name
:
firewall
include
:
firewall.yml
#- name: backup
# include: backup.yml
...
...
roles/common/templates/firewall/firewall.sh
View file @
cdb902d1
...
...
@@ -106,7 +106,7 @@ command -A input -j DROP
echo
"Applied basic configuration to the firewall"
# Load other config files
for
file
in
/
usr/local/share/firewall.d
/
*
.sh
;
do
for
file
in
/
etc/firewall
/
*
.sh
;
do
if
[[
-x
"
${
file
}
"
]]
;
then
echo
"Loading script
${
file
}
"
source
"
${
file
}
"
...
...
roles/lxd-container/tasks/networking.yml
View file @
cdb902d1
...
...
@@ -16,7 +16,7 @@
-
name
:
"
Expose
{{
name
}}
ports"
template
:
src
:
firewall.sh.j2
dest
:
"
/
usr/local/share/firewall.d
/lxd-container-{{
name
}}.sh"
dest
:
"
/
etc/firewall
/lxd-container-{{
name
}}.sh"
mode
:
0700
when
:
expose_ports
...
...
roles/nginx/tasks/setup.yml
View file @
cdb902d1
...
...
@@ -35,7 +35,7 @@
-
name
:
Allow http through the firewall
template
:
src
:
firewall.sh
dest
:
/
usr/local/share/firewall.d
/nginx.sh
dest
:
/
etc/firewall
/nginx.sh
mode
:
0700
notify
:
...
...
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