在 Openstack 中,我启动了图像,并且在启动图像后,我想为该实例注入一个文件。在openstack中可以吗?如果是,那怎么办?
问问题
141 次
1 回答
0
是的,可以使用 cloud init。
Cloud init 已经为您注入了一些文件,例如它管理 ssh 配置,以便您可以在启动后使用您的密钥对登录。
查看写出任意文件部分中的此示例: https ://cloudinit.readthedocs.io/en/latest/topics/examples.html#yaml-examples
您必须基于此示例创建 yaml 文件,并在 openstack 中启动实例时将其添加到用户数据中。
于 2016-08-17T07:55:23.407 回答