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>[[/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
+
  preserve_hostname=true
 
 
Related terms: <code>[[hostnamectl set-hostname]]</code>
 
 
 
 
 
Configuration file '/etc/cloud/cloud.cfg'
 
==> Modified (by you or by a script) since installation.
 
==> Package distributor has shipped an updated version.
 
  What would you like to do about it ?  Your options are:
 
    Y or I  : install the package maintainer's version
 
    N or O  : keep your currently-installed version
 
      D    : show the differences between the versions
 
      Z    : start a shell to examine the situation
 
The default action is to keep your current version.
 
*** cloud.cfg (Y/I/N/O/D/Z) [default=N] ?
 
  
  
== Example ==
 
 
users:
 
    - default
 
disable_root: true
 
preserve_hostname: true
 
cloud_init_modules:
 
  - [[migrator]]
 
  - seed_random
 
  - bootcmd
 
  - write-files
 
  - growpart
 
  - resizefs
 
  - disk_setup
 
  - mounts
 
<pre>
 
- set_hostname
 
- update_hostname
 
- update_etc_hosts
 
- ca-certs
 
- rsyslog
 
- users-groups
 
- ssh
 
cloud_config_modules:
 
- emit_upstart
 
- snap
 
- ssh-import-id
 
- locale
 
- set-passwords
 
- grub-dpkg
 
- apt-pipelining
 
- apt-configure
 
- ubuntu-advantage
 
- ntp
 
- timezone
 
- disable-ec2-metadata
 
- runcmd
 
- byobu
 
cloud_final_modules:
 
- package-update-upgrade-install
 
- fan
 
- landscape
 
- lxd
 
- ubuntu-drivers
 
- puppet
 
- chef
 
- mcollective
 
- salt-minion
 
- rightscale_userdata
 
- scripts-vendor
 
- scripts-per-once
 
- scripts-per-boot
 
- scripts-per-instance
 
- scripts-user
 
- ssh-authkey-fingerprints
 
- keys-to-console
 
- phone-home
 
- final-message
 
- power-state-change
 
system_info:
 
  distro: ubuntu
 
  default_user:
 
    name: ubuntu
 
    lock_passwd: True
 
    gecos: Ubuntu
 
    groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
 
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
 
    shell: /bin/bash
 
.../...
 
</pre>
 
  
 
== See also ==
 
== See also ==
* {{cloud-init}}
+
* [[hostnamectl]]
* {{hostnameclt}}
 
* {{systemd}}
 
 
 
[[Category:Linux]]
 

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: