• cloud-init tencent


    users:
     - default
    
    disable_root: 0
    ssh_pwauth:   1
    
    datasource_list: [ ConfigDrive, TencentCloud ]
    datasource:
      ConfigDrive:
        dsmode: local
      TencentCloud:
        metadata_urls: ['http://metadata.tencentyun.com']
    
    cloud_init_modules:
     - migrator
     - bootcmd
     - write-files
     - growpart
     - resizefs
     - set_hostname
     - update_hostname
     - ['update_etc_hosts', 'once-per-instance']
     - rsyslog
     - users-groups
     - ssh
    
    cloud_config_modules:
     - mounts
     - locale
     - set-passwords
     - rh_subscription
     - yum-add-repo
     - package-update-upgrade-install
     - ntp
     - timezone
     - resolv_conf
     - puppet
     - chef
     - salt-minion
     - mcollective
     - disable-ec2-metadata
     - runcmd
    
    unverified_modules: ['resolv_conf']
    
    cloud_final_modules:
     - rightscale_userdata
     - 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:
      default_user:
        name: root
        lock_passwd: false
        gecos: Cloud User
        groups: [wheel, adm, systemd-journal]
        sudo: ["ALL=(ALL) NOPASSWD:ALL"]
        shell: /bin/bash
      distro: rhel
      paths:
        cloud_dir: /var/lib/cloud
        templates_dir: /etc/cloud/templates
      ssh_svcname: sshd
    
    # vim:syntax=yaml
  • 相关阅读:
    JAVA多线程与并发学习总结
    Java虚拟机类加载机制
    2013网易校园招聘笔试题
    人人网面试题
    2010人人网校园招聘笔试题
    2011人人网校园招聘笔试题
    2012人人网校园招聘笔试题
    2013人人网校园招聘笔试题
    海量数据查找唯一数据问题
    Hulu面试题
  • 原文地址:https://www.cnblogs.com/jkklearn/p/13754466.html
Copyright © 2020-2023  润新知