I am evaluating CFEngine.
Working on company that relays on Microsoft solutions I tried to install cfengine on my laptop Windows 10 with:
https://cfengine.com/product/cfengine-enterprise-free-25/https://cfengine-package-repos.s3.amazonaws.com/enterprise/Enterprise-3.10.2/agent/windows_x86_64/cfengine-nova-3.10.2-x86_64.msiI started with simple policy:
body common control
{
bundlesequence => { "hello_world" };
}
bundle agent hello_world
{
reports:
any::
"Hello World!";
}
but I got
$ cf-agent -KIf
hello.cf error: Could not open registry log key
error: Could not check for logging key in registry
error: Unable to make directory: C:\Program Files\Cfengine\bin (mkdir: Access is denied.)
error: Unable to make directory: C:\Program Files\Cfengine\outputs (mkdir: Access is denied.)
error: Unable to make directory: C:\Program Files\Cfengine\lastseen (mkdir: Access is denied.)
error: Unable to make directory: C:\Program Files\Cfengine\reports (mkdir: Access is denied.)
error: Unable to make directory: C:\Program Files\Cfengine\state (mkdir: Access is denied.)
error: Fatal CFEngine error: No access to WORKSPACE/outputs dir
even that I installed MSI package as:
msiexec TARGETDIR=c:\opt\cfengine /a cfengine-nova-3.10.2-x86_64.msi
Previously I installed to default C:\Program Files\Cfengine and I know that C:\Program Files\ is a subject of special permissions from Windows, I tried to install it to another place.
Also c:\Program Files\Cfenginelog folder was created. I don't like to have logs inside package paths. Is there a way to configure that place?