Difference between revisions of "/etc/cloud/cloud.cfg"
Jump to navigation
Jump to search
↑ https://wiki.ubuntu.com/DebuggingSystemd
Tags: Mobile web edit, Mobile edit |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>/etc/cloud/cloud.cfg</code> configuration file included in <code>[[cloud-init]]</code> package | + | <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> | Related terms: <code>[[hostnamectl set-hostname]]</code> | ||
Line 19: | Line 19: | ||
*** cloud.cfg (Y/I/N/O/D/Z) [default=N] ? | *** 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}} |
+ | * {{hostnameclt}} | ||
* {{systemd}} | * {{systemd}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 17:42, 25 May 2022
/etc/cloud/cloud.cfg
configuration file included in cloud-init
package
/etc/cloud/cloud.cfg preserve_hostname=true
Related terms: hostnamectl set-hostname
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[edit]
users: - default disable_root: true preserve_hostname: true cloud_init_modules: - migrator - seed_random - bootcmd - write-files - growpart - resizefs - disk_setup - mounts
- 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 .../...
See also[edit]
cloud-init
,cloud-id
,/etc/cloud/cloud.cfg
,cloud-init status
, user_data,/var/log/cloud-init.log
hostnamectl
,cloud-init
,/etc/cloud/cloud.cfg
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[1],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze
Advertising: