Re: Creating partitions/vgs/lvms

"'Vratislav Podzimek' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
On Tue, 2021-11-16 at 13:20 +0100, Stefan Skoglund wrote:
> tis 2021-11-16 klockan 03:41 -0800 skrev Murray Collier:
> > Hi,
> > I am struggling to find an obvious way to work with partions and lvm
> > in cfengine. Is this possible within cfengine?
Not in any easy/nice way, unfortunately.

> > 
> > Thanks,
> > Murray.
> 
> lvm itself can export information as json (and then convert that into
> an data container and do decisions after that.)
Yes, that's possible.

But I would encourage you to look at the Custom promise types functionality [1] availble in the
recent versions of CFEngine. Writing a custom promise module working with LVM will definitely be
easier than doing a lot of JSON data manipulation in CFEngine policy and using lots of 'commands'
promises. Especially if you use things like libblockdev [2] or blivet [3]. It would be great to have
a 'block_device' promise type implemented as a custom promise type! (I could help a lot with its
development, I believe).

[1] https://docs.cfengine.com/docs/master/reference-promise-types-custom.html
[2] https://github.com/storaged-project/libblockdev
[3] https://github.com/storaged-project/blivet

--
Vratislav

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/1a881dff52cf17689094669506be55204de41727.camel%40northern.tech.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEENAH7ns+FyuCe6j1XmyV2peQQR/QFAmGUwp8ACgkQmyV2peQQ
R/Q73g//XsOz8hFZc6NhpK9wh/hw9vf3BD0bej1Nps+X/aylX1+OCT0MLY1JiQg5
d9rAIQRujqPIQXEB2MHaDhy0XiffTN2tFsDgmNu28LnIdkC11+KoigH269lmTMyd
XXr11/exRdg1wsFw6WEZZQ8E8e/Dx4UCfwds6zZIVJY6NdDzDDnDsQSlx5LPXKhR
UJ3QP8JeqzW1RXO+7aERyf2RyQ+RmbDVrKPgMb6hlLe/Rpzx1zAeD5JilBCizRHw
66FFdi6RSyp+bPltVme5XyJMyzfh80R94cpd9aUawMCeQQKPUjwrekit2LTF9X7u
OH7IqU0mKbOMSTSvs3avedKGZ3oFo8aB2ZFj0zOQMre+Hmh7KwrTCXNNHIbPMjTj
dIVX3PwBldeXMLAs6Im7+HWArvMiQusGWSvgRfMoglH9pMLDweNuzogjwcyE9hoS
Ika+gl60oKW4trPcgAhnRv86/DZ1fEtyUx/y6jnQ9RH25wm8+FafZ9C64Hk55F3f
9APjRmiyWZy3MVAV+6XAz4s9HMJ3jpMvZGqeoa/sSi6hp43Q+pNIyasQmbum/5os
KGB0fRmVD+LatV9d9cIeN+hASmk2G67DysVo9Vl1Y5A485GGtjcsyAieer7CZyyK
aj45bU1rmb9FOg1wV7yzVgElkhG3qxfxjezP2ntFdy15KcP32lM=
=/Q/u
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.