Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cloud-init runcmd modules does not run the scripts.

Mohan Raj BMay 6 2024 — edited May 6 2024

Hi,

I am trying to configure oracle linux with scripts on initial boot using cloud-init. for this purpose I am using Ansible tool with ovirt.ovirt collection to automate VM creation.

The VM created fine, but the runcmd does not works as expected

for testing purpose, I am trying to create a directory in the path /root/test, the log shows its success, but the directory test is missing from the path /root.

custom script used for cloud-init config

cloud_init:
custom_script: |
runcmd:
- mkdir /root/test

cloud-init log.

from the above it seems the config-runcmd is success, but the the desired directory is missing.

how to fix this issue?

Thanks,

Mohan

Comments
Post Details
Added on May 6 2024
1 comment
848 views