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

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值