源码流程说明

- 程序首先判断操作系统类型,加载对应的模块

- 加载服务,服务共分为四种:

'cloudbaseinit.metadata.services.httpservice.HttpService',

'cloudbaseinit.metadata.services.configdrive.ConfigDriveService',

'cloudbaseinit.metadata.services.ec2service.EC2Service',

'cloudbaseinit.metadata.services.maasservice.MaaSHttpService'

  

目前openstack中我们会用第一种,使用http获取openstack的元数据服务

- 加载插件,插件共分为:

'cloudbaseinit.plugins.windows.mtu.MTUPlugin',

'cloudbaseinit.plugins.windows.ntpclient.NTPClientPlugin',

'cloudbaseinit.plugins.windows.sethostname.SetHostNamePlugin',

'cloudbaseinit.plugins.windows.createuser.CreateUserPlugin',

'cloudbaseinit.plugins.windows.networkconfig.NetworkConfigPlugin',

'cloudbaseinit.plugins.windows.licensing.WindowsLicensingPlugin',

'cloudbaseinit.plugins.windows.sshpublickeys.'

'SetUserSSHPublicKeysPlugin',

'cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin',

'cloudbaseinit.plugins.windows.userdata.UserDataPlugin',

'cloudbaseinit.plugins.windows.setuserpassword.'

'SetUserPasswordPlugin',

'cloudbaseinit.plugins.windows.winrmlistener.'

'ConfigWinRMListenerPlugin',

'cloudbaseinit.plugins.windows.winrmcertificateauth.'

'ConfigWinRMCertificateAuthPlugin',

'cloudbaseinit.plugins.windows.localscripts.LocalScriptsPlugin',

上面windows中就是使用localscript插件

-  执行插件

- 根据配置重启机器

PS

目前主要功能有

创建新用户

修改用户密码

添加用户到指定用户组

获取用户home目录

设置主机名

获取网卡信息

获取DHCP信息

设置NTP

设置静态IP

判断服务是否存在

获取服务状态

设置服务启动模式

启动服务

关闭服务

获取默认网关

获取CD驱动

获取物理磁盘

创建防火墙规则

删除防火墙规则

windows版本cloudbase-init流程说明的更多相关文章

  1. 史上最全Windows版本搭建安装React Native环境配置

    史上最全Windows版本搭建安装React Native环境配置 配置过React Native 环境的都知道,在Windows React Native环境配置有很多坑要跳,为了帮助新手快速无误的 ...

  2. 史上最详细Windows版本搭建安装React Native环境配置 转载,比官网的靠谱亲测可用

    史上最详细Windows版本搭建安装React Native环境配置   2016/01/29 |  React Native技术文章 |  Sky丶清|  95条评论 |  33530 views ...

  3. C#更改文件访问权限所有者(适用于各个Windows版本)

    前面也提到了,前段时间在做Online Judge系统,在正式上线前有几个比较老的版本,其中第一个版本使用ACL来控制权限以确保安全(但是这个版本完全建立在IIS上,所以这样做是没效果的),遇到了一些 ...

  4. 怎样快速免费获取Windows版本的ZBrush

    ZBrush是一款专业的3D绘制软件及数字雕刻软件,随着3D技术的不断进步,ZBrush也是越来越受到业内欢迎,在世界拥有了众多的粉丝和爱好者.相信很多用户对软件的体验就是从使用的版本开始的,本文就教 ...

  5. cmd命令行查看windows版本

    1.ver命令不显示sp几 C:\>ver Microsoft Windows XP [Version 5.1.2600] C:\> 08: C:\Users\Administrator& ...

  6. an'gularjs 环境搭建之NodeJS、NPM安装配置步骤(windows版本)

    NodeJS.NPM安装配置步骤(windows版本)  :http://xiaoyaojones.blog.163.com/blog/static/28370125201351501113581/ ...

  7. windows版本的phantomjs-2.1.1-windows安装

    windows版本的phantomjs-2.1.1-windows安装 1.下载 链接:http://pan.baidu.com/s/1dEUl6dN 密码:oij8 2.安装 下载好之后解压放到某个 ...

  8. API得到Windows版本

    API得到Windows版本 /** * Windows Version * https://msdn.microsoft.com/en-us/library/windows/desktop/dn48 ...

  9. hiredis的各种windows版本

    hiredis的各种windows版本(金庆的专栏 2016.12)hiredis 是内存数据库 redis 的客户端C库, 不支持Windows.hiredis的Windows移植版本有许多:des ...

  10. Kindle Windows版本 中文字体修改工具

    近来想要用Windows看Kindle电子书,无奈Windows 版本的Kindle不能修改中文字体,非常难看.把Kindle拉到IDA PRO看了一下,发现Kindle Windows版本的中文字体 ...

随机推荐

  1. 2017.11.16 JavaWeb-------第八章 EL、JSTL、Ajax技术

    第八章 EL.JSTL.Ajax技术 ~~ EL (expression language) 是表达式语言 ~~ JSTL(JSP Standard Tag Library) 是开源的JSP标准标签库 ...

  2. 2017.10.26 JavaWeb----第五章 JavaBean技术

    JavaWeb----第五章 JavaBean技术 (1)JavaBean技术 JavaBean技术是javaweb程序的重要组成部分,是一个可重复使用的软件组件,是用Java语言编写的.遵循一定的标 ...

  3. test image

    Most of these images are in PBM or PGM format and compressed with GNU Zip and GNU TAR Note: These pa ...

  4. Thinkphp 5 使用DOMDocument

    每一个载入浏览器都会生成一个 Document 对象. Document 对象使我们可以从脚本中对 HTML 页面中的所有元素进行访问.Document 对象是 Window 对象的一部分. 我们项目 ...

  5. data-ng-init 指令

    1.data-ng-init指令为AngularJS应用程序定义了一个初始值. 2.通常情况下,data-ng-init指令并不常用,将会使用控制器或模块来代替它.

  6. 顺序语句:GOTO和NULL语句

    一 标号和GOTO 1 语法: PL/SQL中GOTO语句是无条件跳转到指定的标号去的意思.语法如下: GOTO label;......<<label>> /*标号是用< ...

  7. LunaSchedule记录

    博客访问量突破10000!!!(值得高兴一下 用一学期超级课程表,被50+M的内存占用,巨慢的加载速度给弄烦了,就自己开发了一款课程表管理程式 添加日历订阅,自动导入到系统日历,无需安装任何app L ...

  8. UVA_10820_send a table

    When participating in programming contests, you sometimes face the following problem: You know how t ...

  9. UVA_10139

    The factorial function, n! is defined thus for n a non-negative integer:0! = 1 n! = n×(n−1)! (n > ...

  10. lintcode_177_把排序数组转换为高度最小的二叉搜索树

    把排序数组转换为高度最小的二叉搜索树   描述 笔记 数据 评测 给一个排序数组(从小到大),将其转换为一棵高度最小的排序二叉树. 注意事项 There may exist multiple vali ...