1.Foreman服务介绍
Foreman服务为用户提供REST风格的API,本项目中涉及到Host,Hostgroup和Host template配置。选择已有的Host或添加新的Host,主要包括配置ARCH,OS version,partition table, root password, hostgroup, domain name, subnet, IP. 有的选项通过查询Foreman的结果供用户选择。选择已有的Hostgroup或添加新的Hostgroup。选项同host类似,但不包括host的具体信息。通过host template定制安装的kickstart文件,由用户输入或选择默认安装。
Foreman为Host配置提供的API列表如下:
Resource | Description |
List all hosts. | |
Show a host. | |
Create a host. | |
Update a host. | |
Delete an host. | |
Get status of host |
Foreman为Hostgroup配置提供的API列表如下:
Resource | Description |
List all hostgroups. | |
Show a hostgroup. | |
Create an hostgroup. | |
Update an hostgroup. | |
Delete an hostgroup. |
Foreman为Host template配置提供的API列表如下:
Resource | Description |
List templates | |
Show template details | |
Create a template | |
Update a template | |
Delete a template | |
Change the default PXE menu on all configured TFTP servers |
2.Foreman服务的接口实现
接口实现详见中期报告。
3.基于Jenkins的Foreman plugin测试及结果
见更新。