data_expand in json data

10 views
Skip to first unread message

Bas van der Vlies

unread,
Jul 6, 2017, 5:15:26 PM7/6/17
to help-cfengine
I have the following json file:
{
"config": {
"cua" : {
"user_dn" : ["ou=Users,dc=hpcv,dc=sara,dc=nl"]
},
"ka" : {
"user_dn" : ["ou=Users,dc=ka,dc=surfsara,dc=nl"]
}
}

In cfengine deference works. The json merging is done in the sara_data
bundle:
{{{
reports:
"$(sara_data.openldap[config][cua][user_dn])";

in json data not:
"auth_ldap": {
"auth.ldap.dnpattern": "$(sara_data.openldap[config][cua][user_dn])"
},

Is this a limitation of data_expand?

CFengine version used 3.10.1

regards
--
---
Bas van der Vlies
| Operations, Support & Development | SURFsara | Science Park 140 | 1098
XG Amsterdam
| T +31 (0) 20 800 1300 | bas.van...@surfsara.nl | www.surfsara.nl |

Bas van der Vlies

unread,
Jul 6, 2017, 5:53:30 PM7/6/17
to help-c...@googlegroups.com
Sorry it is a mistake in the json definition. When I send it I realized
it. Must be:
* user_dn = ["ou=Users,dc=hpcv,dc=sara,dc=nl"] must be
"ou=Users,dc=hpcv,dc=sara,dc=nl"

Sorry for the confusion
Reply all
Reply to author
Forward
0 new messages