summaryrefslogtreecommitdiff
path: root/doc/forum/Getting_Info_from_containers/comment_5_45f48be3688d2879098cc72be334cb8d._comment
blob: f94daf580a8162e6d30a644708df1147b550d1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[[!comment format=mdwn
 username="joey"
 subject="""comment 5"""
 date="2019-07-21T15:18:51Z"
 content="""
This seems like a reasonable change to make, although I am not sure I
understand how you'd practially use it.

But as far as how to implement it, you merely need to make an IsInfo
instance for Host (or for [Host]) and then each of the container properties
can add the Host of their container to the Info.

Hmm, actually, this info is already provided in another way.
In Propellor.Types.Chroot there is a ChrootInfo that builds up a map from
chroot location to Host, and that gets added to the Info of the host where the
chroot is used.

As well as being used for regular chroots, the systemd containers are based
on a chroot and so also use and provide it. Docker does not currently use
it though. It has a separate DockerInfo that also happens to include the
Host corresponding to the docker container.

Anyway, I guess I'm a little bit unclear on what your original problem was,
it might help if you could restate it in more detail to see if this would
really help with it.
"""]]