Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
config
Commits
99a23d00
Commit
99a23d00
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix smokescreen configuration
parent
14d155b0
No related branches found
No related tags found
1 merge request
!214
Add a proxy for outbound HTTP traffic
Pipeline
#56795
failed
1 year ago
Stage: deploy
Stage: run
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/outbound-proxy/tasks/main.yml
+20
-3
20 additions, 3 deletions
roles/outbound-proxy/tasks/main.yml
services.common.yml
+2
-2
2 additions, 2 deletions
services.common.yml
with
22 additions
and
5 deletions
roles/outbound-proxy/tasks/main.yml
+
20
−
3
View file @
99a23d00
...
@@ -2,18 +2,35 @@
...
@@ -2,18 +2,35 @@
-
set_fact
:
-
set_fact
:
smokescreen_config
:
smokescreen_config
:
allow_missing_role
:
true
smokescreen_acl_config
:
version
:
"
v1"
version
:
"
v1"
services
:
"
{{
outbound_proxy_services
|
default([])
}}"
services
:
"
{{
outbound_proxy_services
|
default([])
}}"
default
:
default
:
name
:
"
default"
project
:
"
default"
project
:
"
default"
policy
:
"
{{
outbound_proxy_default_policy
|
default('open')
}}"
action
:
"
{{
outbound_proxy_default_policy
|
default('open')
}}"
global_allow_list
:
"
{{
outbound_proxy_global_allow_list
|
default([])
}}"
global_allow_list
:
"
{{
outbound_proxy_global_allow_list
|
default([])
}}"
global_deny_list
:
"
{{
outbound_proxy_global_deny_list
|
default([])
}}"
global_deny_list
:
"
{{
outbound_proxy_global_deny_list
|
default([])
}}"
-
name
:
Create /etc/smokescreen
file
:
path
:
"
/etc/smokescreen"
state
:
directory
owner
:
root
group
:
docker-outbound-proxy
mode
:
"
0750"
-
name
:
Configure smokescreen
-
name
:
Configure smokescreen
copy
:
copy
:
dest
:
"
/etc/smokescreen
.yml
"
dest
:
"
/etc/smokescreen
/{{
item.dest
}}
"
content
:
"
{{
smokescreen_config
|
to_nice_yaml
}}
\n
"
content
:
"
{{
item.content
|
to_nice_yaml
}}
\n
"
owner
:
root
owner
:
root
group
:
docker-outbound-proxy
group
:
docker-outbound-proxy
mode
:
"
0640"
notify
:
reload outbound-proxy
notify
:
reload outbound-proxy
loop
:
-
dest
:
"
config.yml"
content
:
"
{{
smokescreen_config
}}"
-
dest
:
"
acl.yml"
content
:
"
{{
smokescreen_acl_config
}}"
This diff is collapsed.
Click to expand it.
services.common.yml
+
2
−
2
View file @
99a23d00
...
@@ -362,10 +362,10 @@ outbound-proxy:
...
@@ -362,10 +362,10 @@ outbound-proxy:
containers
:
containers
:
-
name
:
http
-
name
:
http
image
:
registry.git.autistici.org/ai3/docker/smokescreen:master
image
:
registry.git.autistici.org/ai3/docker/smokescreen:master
args
:
"
--listen-port
2142
--egress-acl-file
/etc/smokescreen.yml"
args
:
"
--listen-port
2142
--config-file
/etc/smokescreen/config.yml
--egress-acl-file
/etc/smokescreen
/acl
.yml"
port
:
2142
port
:
2142
volumes
:
volumes
:
-
/etc/smokescreen
.yml
:
/etc/smokescreen
.yml
-
/etc/smokescreen
:
/etc/smokescreen
ports
:
ports
:
-
2142
-
2142
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