On Wed, Sep 02, 2015 at 06:10:46PM -0700, Aleksey Tsalolikhin wrote:
Is there a simpler way to do this in native CFEngine code?
{{{
vars:
"os"
slist => splitstring(readfile("/etc/issue", 99), "\n", 1);
}}}
I was kind of thinking readline("/path/to/file", 1) but there is no
readline() function
readstringlist?
https://docs.cfengine.com/latest/reference-functions-readintrealstringlist.html
--
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 help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.
Issue is often changed by sysadmins. It should not be relied on. Why are
trying to get this? Isn't it already a hard class: centos_6_6?
--
Is $(sys.os) not correct?
The name of the operating system according to the kernel.
There is $(inventory_os.description) that uses LSB if available.
Or you can use $(sys.flavor).
--
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 help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
In the past I used classes for that kind of thing. E.G., redhat_6_2 vs redhat_6_6.