Forum: CFEngine Help Subject: Variable Class Names Author: jordy Link to topic: https://cfengine.com/forum/read.php?3,22838,22838#msg-22838
Hi!! I think this question can be a newbie question, but I've searched for answers and I can't find any. I have a variable that can have different strings depending of the server. The question is that I want to convert the content of this variable in a class name. For example: {bunde agent my_app { vars: server_type => (read from file and it can be: db_server, app_server, dns_server, etc.) files: db_server:: "XXXXXXX" app_server:: "XXXXXXX" dns_server:: "XXXXXXX" etc.. } Anyone knows how can I reach this behavior? Thank you Jorge _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine