Editing /etc/cloud/cloud.cfg
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <code> | + | <code>/etc/cloud/cloud.cfg</code> configuration file included in <code>[[cloud-init]]</code> package |
/etc/cloud/cloud.cfg | /etc/cloud/cloud.cfg | ||
− | + | preserve_hostname=true | |
Related terms: <code>[[hostnamectl set-hostname]]</code> | Related terms: <code>[[hostnamectl set-hostname]]</code> | ||
Line 21: | Line 21: | ||
== Example == | == Example == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
+ | users: | ||
+ | - default | ||
+ | disable_root: true | ||
+ | preserve_hostname: true | ||
+ | cloud_init_modules: | ||
+ | - migrator | ||
+ | - seed_random | ||
+ | - bootcmd | ||
+ | - write-files | ||
+ | - growpart | ||
+ | - resizefs | ||
+ | - disk_setup | ||
+ | - mounts | ||
- set_hostname | - set_hostname | ||
- update_hostname | - update_hostname | ||
Line 90: | Line 89: | ||
.../... | .../... | ||
</pre> | </pre> | ||
+ | |||
== See also == | == See also == | ||
− | * {{ | + | * {{hotsnameclt}} |
− | |||
* {{systemd}} | * {{systemd}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Advertising: