
# cloud-init-0.7.5配置
1. 添加如下键值对，保持前后各空出一行：
   ```
   no_ssh_fingerprints: true
   ```
   
2. 设置ssh_pwauth。该选项表示是否支持ssh密码登录。true为启用，false为禁用。
   ```
   ssh_pwauth: true
   ```
   
3. 修改disable_root为false。该参数表示是否禁用远程ssh root登录。
   ```
   disable_root: false
   ```
   
4. 添加preserve_hostname: false。
   ```
   preserve_hostname: false
   ```
   
5. 使用"#"注释掉以下语句：
   ```
   mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
   resize_rootfs_tmp: /dev
   ssh_deletekeys:   0
   ```
   
6. 修改ssh_genkeytypes为下面语句：
   ```
   ssh_genkeytypes: ['rsa', 'dsa']
   ```
   
7. 修改syslog_fix_perms为下面语句：
   ```
   syslog_fix_perms: root:root
   ```
   
8. 添加下面语句：
   ```
   network:
      config: disabled
   datasource_list: [ OpenStack ]
   ```
   
9. 在cloud_final_modules段的"- final-message"后面添加以下语句：
   ```
   - power-state-change
   ```
   
10. 查看并修改system info中的信息，保持与下面内容一致：
    ```
    system_info:
       default_user:
         name: root   //登录操作系统使用的用户名
         lock_passwd: False   //True表示禁用密码登录方式，注意部分操作系统此处配置为1表示禁用
         gecos: redhat
         groups: [audio, cdrom, dialout, floppy]   //可选项，将用户添加到其他组，groups必须是操作系统etc/group中已存在的组
         sudo: ["ALL=(ALL) NOPASSWD:ALL"]   //表示当前用户具有root用户的所有权限
         shell: /bin/bash   //shell执行采用bash方式
       distro: rhel
       paths:
          cloud_dir: /var/lib/cloud/
          templates_dir: /etc/cloud/templates/
          upstart_dir: /etc/init/
       ssh_svcname: sshd
    ```
    其中，distro参数需要根据具体操作系统类型修改，比如distro: rhel、distro: ubuntu、distro: debian、distro: fedora等。
    
 
