Configuring Cloud-Init 0.7.5
- Add the key-value pair no_ssh_fingerprints: true and ensure that it has a blank row before and after it.
no_ssh_fingerprints: true
- Set the value of ssh_pwauth to false. This parameter specifies whether SSH password login is supported. If it is set to false, SSH password login is disabled.
ssh_pwauth: false
- Add preserve_hostname: false.
preserve_hostname: false
- Use the number sign (#) to comment out the following fields:
mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2'] resize_rootfs_tmp: /dev ssh_deletekeys: 0
- Change the value of ssh_genkeytypes to ['rsa', 'dsa'].
ssh_genkeytypes: ['rsa', 'dsa']
- Change the value of syslog_fix_perms to root:root.
syslog_fix_perms: root:root
- Add the following content:
network: config: disabled datasource_list: [ OpenStack ]
For Ubuntu 14.04, do not add the following information:
datasource_list: [ OpenStack ]
- Add the following content after - final-message in cloud_final_modules:
- power-state-change
- Modify the content under system info as follows:
system_info: default_user: name: linux //Username for logging in to the OS lock_passwd: True //True indicates that password login is disabled. In some OSs, 1 indicates that password login is disabled. gecos: redhat groups: [audio, cdrom, dialout, floppy] //(Optional) This parameter specifies the groups to which the user is added. The values must be groups that exist in the etc/group of the OS. sudo: ["ALL=(ALL) NOPASSWD:ALL"] //The user has all permissions of user root. shell: /bin/bash //The bash command is used to execute the shell script. distro: sles paths: cloud_dir: /var/lib/cloud/ templates_dir: /etc/cloud/templates/ upstart_dir: /etc/init/ ssh_svcname: sshdThe value of distro varies depending on the OS and can be sles, rhel, ubuntu, debian, or fedora.
- (Optional) For Ubuntu 14.04, perform the following operations:
- Use the vi editor to open the /etc/init/cloud-init-local.conf configuration file and modify the following configuration items:
# cloud-init - the initial cloud-init job # crawls metadata service, emits cloud-config start on mounted MOUNTPOINT=/ and mounted MOUNTPOINT=/run and stopped bms-network_config
- Run the following command to configure the OpenStack source:

Run the vim /etc/cloud/cloud.cfg.d/90_dpkg.cfg command to open the configuration file and check the configuration items.
# to update this file, run dpkg-reconfigure cloud-init datasource_list: [ OpenStack ] ~ ~ ~
If the preceding information is displayed, the configuration is successful.
- Use the vi editor to open the /etc/init/cloud-init-local.conf configuration file and modify the following configuration items:
Last Article: Configuring Cloud-Init
Next Article: Configuring Cloud-Init 0.7.6
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.