Forum: CFEngine Help
Subject: Update a symlink?
Author: usernotfound
Link to topic: https://cfengine.com/forum/read.php?3,23691,23691#msg-23691
I am having trouble updating the target of a symlink using cf-engine 3.2.0. I
have not tested on another version, as I suspect I am doing something wrong
myself.
Here is how I have created the symlink:
files:
host:
"/usr/site/defaultpath/bin/aeros"
link_from=>ln_s("/opt/aeros3/bin/aeros");
and in my standard library:
body link_from ln_s(x)
{
link_type => "symlink";
source => "$(x)";
when_no_source => "force";
}
If i change the target in link_from=>ln_s("/opt/aeros3/bin/aeros"), nothing is
updated on the file system:
cf3> .........................................................
cf3> Promise handle:
cf3> Promise made by: /usr/site/defaultpath/bin/aeros
cf3> .........................................................
cf3>
cf3> -> Using literal pathtype for /usr/site/eas/bin/aeros
cf3> -> Handling file existence constraints on /usr/site/defaultpath/bin/aeros
cf3> !! Link /usr/site/defaultpath/bin/aeros points to /opt/aeros3/bin/aeros
not /opt/aeros4/bin/aeros - not authorized to override
I google'd for "not authorized to override", as well as some other examples of
promises relating to symlinks, but I wasn't able to find anything helpful.
What do I need to add here to edit existing symlinks?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine