[lxc-users] Macros in profile configurations
MonkZ
i at monkz.de
Fri Mar 24 23:44:59 UTC 2017
Moin,
I think cloud-init won't fit here, and maybe expose a critical part of
my configuration.
To be more specific those LXD containers are unprivileged - so there is
no mount inside those containers.
I want to create one container with mount/"disk" /path/A-master/
and others mounting (with disk-device) /path/A-master/B-$containername/
Those folders might hold containerspecific security material, so they
have to be unable to mount other directories than their own directory.
MfG
MonkZ
Am 24.03.2017 um 08:30 schrieb Jamie Brown:
> Hi,
>
> I’m first going to admit I don’t know the answer to your specific question, though it’s not something I’ve come across.
>
> I’d suggest cloud-init (which is supported by lxd and assignable to profiles) may be more appropriate for this?
> https://cloudinit.readthedocs.io/en/latest/
>
> Jamie
>
> On 22/03/2017, 10:31, "lxc-users on behalf of MonkZ" <lxc-users-bounces at lists.linuxcontainers.org on behalf of i at monkz.de> wrote:
>
> Hi,
>
> is it possible to create a profile that has container specific
> variables/macros?
>
> like:
>
> devices:
> specific-share:
> path: /srv/$CONTAINERNAME-share/
> source: /var/lib/lxd/storage-pools/lxd/custom/share/$CONTAINERNAME/
> type: disk
>
> Regards
> MonkZ
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170325/bacd64c7/attachment.sig>
More information about the lxc-users
mailing list