- From: Douglas Garstang <
>
- To:
- Subject: [chef] Attributes merged between roles and environments?
- Date: Tue, 12 Aug 2014 15:03:26 -0700
This seems to be the case, but I thought I'd check, just in case I'm making incorrect assumptions...
Do multi level attributes get 'merged' between environments and roles? Ie, would this environment attribute:
{
"name": "qa",
"default_attributes": {
"mongodb": {
"cluster_name": "test1"
}
}
and this role attribute:
{
"name": "role-mongo-shard1",
"default_attributes": {
"mongodb": {
"shard_name": "shard1",
"config": {
"replSet": "replset1"
}
}
}
}
be merged into this json?
mongodb": {
"cluster_name": "test1",
"shard_name": "shard1",
"config": {
"replSet": "replset1"
}
}
Or, does one wipe the other?
Thanks,
Doug.
- [chef] Attributes merged between roles and environments?, Douglas Garstang, 08/12/2014
Archive powered by MHonArc 2.6.16.