Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FUSS
fuss-client
Commits
6075dadb
Commit
6075dadb
authored
Jul 01, 2022
by
Elena Grandi
Browse files
Use squid-deb-proxy on the server to access apt repositories
parent
ec1bebf6
Pipeline
#372
failed with stage
in 28 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ansible/roles/network/defaults/main.yml
0 → 100644
View file @
6075dadb
---
# whether there is squid-deb-proxy on the server
squid_deb_proxy
:
true
ansible/roles/network/tasks/main.yml
View file @
6075dadb
...
...
@@ -50,6 +50,16 @@
line
:
'
session
required
pam_env.so
readenv=1'
regexp
:
'
session
required
pam_env.so*'
backup
:
yes
-
name
:
Set proxy for apt through squid-deb-proxy
blockinfile
:
dest
:
/etc/apt/apt.conf
marker
:
"
#
{mark}
ADDED
BY
FUSS_CLIENT"
block
:
|
Acquire::http::proxy "http://{{ server }}:8000";
Acquire::https::proxy "http://{{ server }}:8000";
backup
:
yes
create
:
yes
when
:
squid_deb_proxy
-
name
:
Set proxy for apt
blockinfile
:
dest
:
/etc/apt/apt.conf
...
...
@@ -59,6 +69,7 @@
Acquire::https::proxy "http://{{ server }}:8080";
backup
:
yes
create
:
yes
when
:
not squid_deb_proxy
-
name
:
Configure timesyncd to use our server
lineinfile
:
dest
:
/etc/systemd/timesyncd.conf
...
...
debian/changelog
View file @
6075dadb
fuss-client (11.0.2) unstable; urgency=medium
* Use squid-deb-proxy on the server to access apt repositories
-- Elena Grandi <elena@truelite.it> Fri, 01 Jul 2022 14:10:33 +0200
fuss-client (11.0.1) unstable; urgency=medium
[ Elena Grandi ]
...
...
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