This message was deleted.
# forge-modules
s
This message was deleted.
h
apt::backports calls apt::setting which does a notify to Class['apt::update'} if notify_update is true (which it is by default) and apt::update calls the exec.
b
Okay, I see the relationship now, but it doesn't explain why the
puppet apply
would succeed yet the backports file remain unwritten just because the notified
exec
changed.
h
how did you call
puppet apply
h
what error do you get? what parameters (if any) are you feeding that class?
b
Only the default parameters. The error is that the
apt policy | grep --quiet backports
exits with code 1, meaning that the output of
apt policy
did not include a
backports
substring.
I've tested locally, and the output of
apt policy
does not depend on whether
apt update
has been run since the last change to a
/etc/apt/sources.list.d/
file.
h
what changed in the exec?
if you can get in to the test environment, I'd look for whether or not the sources.list file exists
or just have the test spit out apt-policy
based on my reading, you should get an
apt::source { 'backports': release => focal-backports, pin => { priority => 200, release => 'focal' } }
if it were run on 20.04
b
The test passes on 20.04. It fails on Debian 10 and Debian 11.
And no, I can't get access to the github-actions test environment.