ine Help: Deleting a Local File
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22518#msg-22518
Did you run cf-promises against this to check for errors and warning?
neil@ettin ~/.cfagent/inputs
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22518#msg-22518
Did you run cf-promises against this to check for errors and warning?
neil@ettin ~/.cfagent/inputs $ cf-promises -f ./test.cf
test/create_folder1/create_folder2"
comment => "delete local folders",
delete => tidy;
}
body copy_from myLocalCopy(from)
{
source => "$(from)";
}
body file_select specifyFile(x)
{
path_name =&
CORRECTION:
Nothing gets deleted but the error provided is correct.
Regards,
j
-Original Message-
From: Jerome Yanga
Sent: Friday, June 17, 2011 1:04 PM
To: 'help-cfengine@cfengine.org'
Subject: RE: Cfengine Help: Re: Cfengine Help: Deleting a Local File
Neil,
Thank you for
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22510#msg-22510
Please notice that I provided a self contained example. You have not. Also
please think about the desired state not how to get
complexity as touched objects = 8, for 8 promises
cf3> -> Writing last-seen observations
cf3> -> Keyring is empty
cf3> -> No lock purging scheduled
Regards,
J
-Original Message-----
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22506#msg-22506
neil@ettin ~/.cfagent/inputs $ cat test.cf
body common control {
bundlesequence => { "test" };
inputs => { &qu
riday, June 17, 2011 10:49 AM
To: help-cfengine@cfengine.org
Subject: Cfengine Help: Re: Cfengine Help: Deleting a Local File
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22504
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22504#msg-22504
Missing rmdirs?
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https
lexity as touched objects = 8, for 8 promises
cf3> -> Writing last-seen observations
cf3> -> Keyring is empty
cf3> -> No lock purging scheduled
Regards,
J
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] O
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22499#msg-22499
This is because the promise is too vague. As a best practise, each promise
should traget a specific directory and no wild card
gt; Keyring is empty
cf3> -> No lock purging scheduled
Regards,
j
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com
Sent: Friday, June 17, 2011 6:10 AM
To: help-cfengine@cfengine.org
Subject: C
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22492#msg-22492
Please try to keep your code to small self contained examples so that we can
quickly look at it for you.
bundle agent
===
cf3>files in bundle deleteLocalFolder (2)
cf3> =========
cf3>
cf3>
cf3> + Private classes augmented:
cf3>
cf3> - Private classes diminished:
cf3>
cf3>
cf3>
cf3>===
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22484#msg-22484
Try rmdirs in the manual. Also I don't think you can delete the top level dir
of your promise. You might need to trail the
ot;Directory not empty""
Regards,
j
-Original Message-
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com
Sent: Tuesday, June 14, 2011 6:50 PM
To: help-cfengine@cfengine.org
Subject: Cfengine Help: Re: Cfengine Hel
Thank you. This worked. :)
Regards,
j
-Original Message-
From: Aleksey Tsalolikhin [mailto:atsaloli.t...@gmail.com]
Sent: Wednesday, June 15, 2011 4:57 PM
To: Jerome Yanga
Cc: help-cfengine@cfengine.org
Subject: Re: Cfengine Help: Deleting a Local File
On Tue, Jun 14, 2011 at 3:50 PM
On Tue, Jun 14, 2011 at 3:50 PM, Jerome Yanga wrote:
> I have been trying to delete a local file and have been unsuccessful.
Does this help? It's a simple example of deleting a local file.
body common control {
inputs => { "/var/cfengine/inputs/cfengine_stdlib.cf" };
}
bundle agent
Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22451#msg-22451
Some delete examples here:
http://cfengine.com/manuals/cf3-solutions.html#Garbage-collection
I have been trying to delete a local file and have been unsuccessful. Help.
/tmp/templates/delete_local_file.cf.test
#
# testing cfengine with following:
# delete local file
#
body common control
{
bundlesequence => { "createFile" , "deleteLocalFile" };
20 matches
Mail list logo