Project

General

Profile

Actions

Bug #20671

open

Format error in APT settings technique

Added by Stefan Schmitt almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
-
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
52
Name check:
To do
Fix check:
To do
Regression:

Description

Problem with Proxyserver on Debian 10+11 (Buster + Bullseye)
When executing a rudder agent run with agent 7.0.0-debian10

Directive: Package sources and settings (APT) - Technique Version 3.1 shows an error:

Error-Output

error: No matched line to edit fields of for pattern '#+Acquire::http::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise '#+Acquire::http::Proxy\s+.*'
error: No matched line to edit fields of for pattern '#+Acquire::ftp::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise '#+Acquire::ftp::Proxy\s+.*'
error: No matched line to edit fields of for pattern 'Acquire::http::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise 'Acquire::http::Proxy\s+.*'
error: No matched line to edit fields of for pattern 'Acquire::ftp::Proxy\s+.*' in '/etc/apt/apt.conf.d/99rudder'
error: Errors encountered when actuating fields_edit promise 'Acquire::ftp::Proxy\s+.*'

Problem + Resolve:

Technique results in file /etc/apt/apt.conf.d/99rudder with content:
// ### File managed by Rudder, edit with care ###
Acquire::http::Proxy "http://192.168.0.1:3142";
Acquire::ftp::Proxy "";

Should be written in curly braces instead:
// ### File managed by Rudder, edit with care ###
Acquire::http { Proxy "http://192.168.0.1:3142"; }
Acquire::ftp { Proxy ""; }

Actions

Also available in: Atom PDF