Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fuss-client
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
FUSS
fuss-client
Commits
6075dadb
Commit
6075dadb
authored
2 years ago
by
Elena Grandi
Browse files
Options
Downloads
Patches
Plain Diff
Use squid-deb-proxy on the server to access apt repositories
parent
ec1bebf6
No related branches found
Branches containing commit
Tags
fuss/11.0.2
Tags containing commit
No related merge requests found
Pipeline
#372
failed with stage
Stage:
in 28 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/roles/network/defaults/main.yml
+3
-0
3 additions, 0 deletions
ansible/roles/network/defaults/main.yml
ansible/roles/network/tasks/main.yml
+11
-0
11 additions, 0 deletions
ansible/roles/network/tasks/main.yml
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
with
20 additions
and
0 deletions
ansible/roles/network/defaults/main.yml
0 → 100644
+
3
−
0
View file @
6075dadb
---
# whether there is squid-deb-proxy on the server
squid_deb_proxy
:
true
This diff is collapsed.
Click to expand it.
ansible/roles/network/tasks/main.yml
+
11
−
0
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
...
...
This diff is collapsed.
Click to expand it.
debian/changelog
+
6
−
0
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 ]
...
...
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