cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00220
Merge userdata and vendordata?
-
To:
"cloud-init@xxxxxxxxxxxxxxxxxxx" <cloud-init@xxxxxxxxxxxxxxxxxxx>
-
From:
Thomas Stringer <Thomas.Stringer@xxxxxxxxxxxxx>
-
Date:
Tue, 20 Aug 2019 19:51:22 +0000
-
Accept-language:
en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4gWW6tMb1HBXw0OAGTJACuyo7P3eatjZnbLAtHS/VGk=; b=UQUTIlW2l8EpoeLitqIgDruOLo68vgTymEB0hcfFGKR5UVccxCys5nwtktsij5YBn39bQNleLDL/1jAIXiXLTaDNDs9t58awR9/yXDWKmBRTNpol/NMwuwvu3puobUnW5tyxuQEFJfB8RuF/laEd809kcsLHertaYihGBDqBWMQFv0TiIhLANaT4XzrqNJGKnhWDbXPKk2yYCr98QBLYIsis6on4UHZCEOlna11cdvEJXon5aJWd+6Fz4RzcqRmr0mTLvYmPuZV05dCiLcFhWdWEu0/G9+Emsb8kCcA7trvjYRF6NiSO/2uud28TTqYZqMTm2fy7VBPUb935J8VamQ==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZZ88kn9VgnkqfHIYfqcB+aP/KCx4ORM6MSOU02GKxev824cxAOTlSLU7attaPBpUH/HzXORjlyXQx/n+4nCrqGcsLdgXeY8gzUKTpKiPUz5efN0KLaoiWkvpb1zZicpSWTWXf6aadArN65anJfeOV4bqq6tQM/+QXhuVZa9K5RRTw4tAy7eXJ0aiETVu/a2cP368ejKxIX24nHddlStOaC0mn5SnLyFN/VbkvSYJVfKRrTozzhbdUiLIXjmcRIdag3NL1iLLJmFqbZ8+z5lfi/qJglKq8Id3m5ho7kaEjHu1fIsUSaAz3MaTz6ekD0GRpAAWFmoMRtud49RL73K1dw==
-
Authentication-results:
spf=none (sender IP is ) smtp.mailfrom=Thomas.Stringer@xxxxxxxxxxxxx;
-
Msip_labels:
MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=71a38349-5c22-4817-b25c-00002a6dfc69; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2019-08-20T19:47:13Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;
-
Thread-index:
AQHVV5Ck16PFr/Ymwk+1LAwvfxc24w==
-
Thread-topic:
Merge userdata and vendordata?
I'm currently trying to figure out how to prevent userdata from overwriting vendordata. I was under the impression that specifying merge_how for _both_ userdata and vendordata might be the solution, but in my testing I am not seeing this.
Userdata - /var/lib/cloud/instance/user-data.txt
===========================
#cloud-config
merge_how:
- name: list
settings: [append]
- name: dict
settings: [no_replace, recurse_list]
runcmd:
- echo hello world from user > /run/hello_world_user
Vendordata - /var/lib/cloud/instance/vendor-data.txt
===========================
#cloud-config
merge_how:
- name: list
settings: [append]
- name: dict
settings: [no_replace, recurse_list]
runcmd:
- echo hello world from vendor > /run/hello_world_vendor
I would expect the existence of _both_ files, /run/hello_world_user and /run/hello_world_vendor. But only /run/hello_world_user exists. Am I doing something wrong? If merge_how isn't the way to merge vendordata and userdata, is there another way?
Thank you in advance!
Thomas
Follow ups