您的位置:首页 > 其它

基于Jenkins的plugin实现对Foreman服务的测试

2014-08-18 10:05 204 查看

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列表如下:

Hosts 
Resource
Description
GET /api/hosts
List all hosts.
GET /api/hosts/:id
Show a host.
POST /api/hosts
Create a host.
PUT /api/hosts/:id
Update a host.
DELETE /api/hosts/:id
Delete an host.
GET /api/hosts/:id/status
Get status of host
Foreman为Hostgroup配置提供的API列表如下:

Hostgroups 
Resource
Description
GET /api/hostgroups
List all hostgroups.
GET /api/hostgroups/:id
Show a hostgroup.
POST /api/hostgroups
Create an hostgroup.
PUT /api/hostgroups/:id
Update an hostgroup.
DELETE /api/hostgroups/:id
Delete an hostgroup.
Foreman为Host template配置提供的API列表如下:

Config templates 
Resource
Description
GET /api/config_templates
List templates
GET /api/config_templates/:id
Show template details
POST /api/config_templates
Create a template
PUT /api/config_templates/:id
Update a template
GET /api/config_templates/revision
DELETE /api/config_templates/:id
Delete a template
GET /api/config_templates/build_pxe_default
Change the default PXE menu on all configured TFTP servers
 

2.Foreman服务的接口实现

 

接口实现详见中期报告

 

3.基于Jenkins的Foreman plugin测试及结果

 

见更新。

References:

1. The Foreman :: API

http://theforeman.org/api.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Foreman Jenkins api 测试