Project

General

Profile

Actions

Question #10291

closed

properties file in /var/rudder/share/<node-id>/rules/cfengine-community/properties.d not being picked up by node

Added by Hamlyn Mootoo over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
N/A
Category:
Agent
Target version:
Regression:

Description

The properties file properties.json in /var/rudder/share/<node-id>/rules/cfengine-community/properties.d contains the following contents:
------------------------------- {
"properties": {
"datcenter": [{"location": "Andover"}]
}
}
-------------------------------

I have a variable defined in an MOTD directive that does not get translated : ${node.properties[datacenter][location]}

A screenshot of the directive is attached.

My /etc/motd on the client comes out with the following contents:
[root@rclient41-1 ~]# more /etc/motd
aaaaa
${node.properties[datacenter][location]}

What am I doing wrong? I 'm not sure that I understand how this is supposed to work.

Thanks


Files

motd.JPG (63.4 KB) motd.JPG Hamlyn Mootoo, 2017-02-24 23:41
Actions

Also available in: Atom PDF