Forum: CFEngine Help
Subject: Re: Convert soft class name to variable
Author: davinken
Link to topic: https://cfengine.com/forum/read.php?3,27338,27361#msg-27361

This implied some renaming/copying in the file server, but did the job well.  
(Those files are being also distributed by a concurrent CF2 server still 
attending part of the network)
Just FYI, the next snippet now works:

vars:
   "brudir" string => "/usr/local/bru-server";
   "bru_executables" slist =>
      {
      "$(brudir)/agent",
      "$(brudir)/bru",
      "$(brudir)/bru-server.cmd",
      "$(brudir)/lzop"
      };

files:
      "$(bru_executables)"
         comment => "BRU binaries, dependent on system architecture.",
         copy_from => remote_dcp( 
"$(def.fcfdir)$(bru_executables).$(sys.arch)", "$(def.goldenfilessrv)" ),
         perms => mog( "750", "root", "root" ),
         handle => "bru_binaries_distribution";

In the file server, those files have been just just named agent.x86_64 / 
agent.i386; bru.x86_64 / bru.i386 and so on.
Thanks

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

Reply via email to