read the squid options at their new path in the otel fixture; pin the env on a host with a store identity
This commit is contained in:
parent
da16487800
commit
fa5293e90a
1 changed files with 11 additions and 8 deletions
|
|
@ -1667,7 +1667,6 @@ let
|
|||
"selfcheck.canary"
|
||||
]
|
||||
&& !(warned bare "allowedDomains")
|
||||
&& old.systemd.services.hive-c0re.environment.HIVE_SQUID_USERS_FILE == "/var/lib/legacy-squid/users"
|
||||
&& old.services.squid.configText == new.services.squid.configText
|
||||
&& lib.hasInfix "legacy-c.example" old.services.squid.configText
|
||||
&& !(lib.hasInfix "legacy-c.example" bare.services.squid.configText);
|
||||
|
|
@ -1675,14 +1674,18 @@ let
|
|||
{
|
||||
# The default render, pinned so moving the options changes none of it:
|
||||
# the listen address squid binds and hive-c0re hands out, and the users
|
||||
# file hive-c0re writes.
|
||||
# file hive-c0re writes, on a hive holding a store identity.
|
||||
name = "squid's default listen address and users file reach squid.conf and hive-c0re unchanged";
|
||||
ok =
|
||||
let
|
||||
e = bare.systemd.services.hive-c0re.environment;
|
||||
conf = bare.services.squid.configText;
|
||||
withIdentity = hiveWithController {
|
||||
deploy.bao.enable = true;
|
||||
deploy.authelia.enable = true;
|
||||
};
|
||||
e = withIdentity.systemd.services.hive-c0re.environment;
|
||||
conf = withIdentity.services.squid.configText;
|
||||
in
|
||||
e.HIVE_SQUID_PROXY == "${bare.services.hyperhive.network.bridgeIp}:3128"
|
||||
e.HIVE_SQUID_PROXY == "${withIdentity.services.hyperhive.network.bridgeIp}:3128"
|
||||
&& e.HIVE_SQUID_USERS_FILE == "/var/lib/hive-squid/users"
|
||||
&& lib.hasInfix "http_port ${e.HIVE_SQUID_PROXY}" conf
|
||||
&& lib.hasInfix "basic_ncsa_auth /var/lib/hive-squid/users" conf
|
||||
|
|
|
|||
Loading…
Reference in a new issue