Hello, I have a common bundle per host to store per host variables like ip addresses.
I would like to use $(sys.host) to reference the scope of a variable, the following does not work: ===== promises.cf body common control { bundlesequence => { "test" }; version => "0.0.1"; } bundle common hati { vars: hati:: "ip" string => "192.168.1.2"; } bundle common srv1 { vars: srv1:: "ip" string => "192.168.1.3"; } bundle agent test { classes: "ok" expression => "any"; reports: ok:: "$($(sys.host)_ip)"; } ===== This results in ===== /usr/sbin/cf-agent -K -I R: $(hati_ip) ===== Thanks. -- Daniel Dehennin Récupérer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
pgpd4jMVWl24c.pgp
Description: PGP signature
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine