Forum: CFEngine Help
Subject: Re: Var in var : limitation ?
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26678,26683#msg-26683
MMmm, good to know.
I really like this community which is very fast : good for my project ;-).
.... I'm not sure to understand ... global var should only work under "vars::"
section ? I got a bundle agent which is woring fine and there is no "vars::" at
all :
bundle agent pam {
files:
winbind::
"/etc/pam.d/password-auth"
link_from => ln_s("password-auth-ad"),
comment => "Switch authentication to
Winbind";
"/etc/pam.d/password-auth-ad"
comment => "Copy 'password-auth-ad'
configuration file (for REMOTE user authentication through AD, not local).",
copy_from =>
no_backup_rcp("$(g.location_services)/$(g.service_detected)/etc/pam.d/password-auth-ad",
"$(sys.policy_hub)"),
perms => mog(644, "root", "root");
}
Result :
-> Updated /etc/pam.d/password-auth-ad from source
/var/cfengine/data/config/services/management/etc/pam.d/password-auth-ad on
10.76.127.1
-> Object /etc/pam.d/password-auth-ad had permission 600, changed it to 644
(new file has been transmitted correctly)
I simply don't understand .. yet
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine