Forum: Cfengine Help
Subject: Re: sensible_count ignored
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,17662,17674#msg-17674

Seems to work if the target contents is two or more.  Zero or one returns the 
warning as you say regardless of how low the sensible count is.

$ ../bin/cf-agent -IKf ./bar.cf
Couldn't find a private key (/home/nwatson/.cfagent/ppkeys/localhost.priv) - 
use cf-key to get one
 !!! System error for fopen: "No such file or directory"
 !! Filesystem /tmp/junk has only 1 files/directories.
I: Report relates to a promise with handle ""
I: Made in version 'not specified' of './bar.cf' near line 16
$ mkdir /tmp/junk/foo
$ ls /tmp/junk/
foo  foobar
$ ../bin/cf-agent -IKf ./bar.cf
Couldn't find a private key (/home/nwatson/.cfagent/ppkeys/localhost.priv) - 
use cf-key to get one
 !!! System error for fopen: "No such file or directory"
 -> Filesystem /tmp/junk's content seems to be sensible as promised


BTW self contained examples need also include a bundle sequence.

body common control {
    bundlesequence => { "panfs" };
}

body volume panfs()
{
    sensible_count => "0";
    freespace => "1024K";
}
bundle agent panfs
{
    storage:
    "/tmp/junk"
    volume => panfs;
}


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to