cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00315
how do I merge local runcmd and cloud-config runcmd?
-
To:
cloud-init@xxxxxxxxxxxxxxxxxxx
-
From:
Stanislav <me@xxxxxxxxxx>
-
Date:
Sat, 10 Oct 2020 02:51:42 -0700
-
Authentication-results:
mail.rooty.name; dmarc=pass (p=reject dis=none) header.from=rooty.name
-
Authentication-results:
mail.rooty.name; spf=pass smtp.mailfrom=me@xxxxxxxxxx
-
User-agent:
Roundcube Webmail/1.4.3
Greetings,
I'm playing with cloud-init 19.3 on AWS EC2, have following:
$ cat /etc/cloud/cloud.cfg.d/15_test.cfg
merge_how:
- name: list
settings: [append]
- name: dict
settings: [no_replace, recurse_list]
runcmd:
- touch /thisisjustatest
=======================================================
Using AWS webui I'm also defining userdata:
#cloud-config
merge_how:
- name: list
settings: [append]
- name: dict
settings: [no_replace, recurse_list]
runcmd:
- touch /fromuserdata
As a result I'm getting file "/fromuserdata" tho not "/thisisjustatest".
When I don't pass userdata from AWS I do get "/thisisjustatest" file
created. I'm trying to achieve to create both files.
Will appreciate any help