Hi,
You will need to refer the cloud-init docs for that.
You have examples in:
https://cloudinit.readthedocs.io/en/latest/topics/examples.html

The modules in:
https://cloudinit.readthedocs.io/en/latest/topics/modules.html

Regards,
Liran.

On Tue, Mar 17, 2020 at 12:03 PM zhouhao@vip.friendtimes.net <zhouhao@vip.friendtimes.net> wrote:
My VM's system is centos7,I have configured the hostname and IP address successfully through the cloud-init.
But I dont know how to configure the custom script,Is here anyone can help me?
For example:
      I want to format the disk-sdb,then mount it on /data.
'''
3 steps
mkfs.xfs  /dev/sdb
mount /dev/sdb /data
echo"/dev/sdb /data xfs defaults  0 0" >>/etc/fstab
'''
      How do I write this script?





_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/GZI4EHMVG4LQ2FQCAYJ5RLJWXCQXNMET/