ChefAPI Client Chef 的 Ruby 客户端开源项目

我要开发同款
匿名用户2014年02月17日
81阅读

技术信息

开源地址
https://github.com/chef-boneyard/chef-api
授权协议
Apache

作品详情

ChefAPI是一个依赖最小化的Chef服务器的Ruby客户端。

连接服务器:

ChefAPI.cofigure do |cofig|  # The edpoit for the Chef Server. This ca be a Ope Source Chef Server,  # Hosted Chef Server, or Eterprise Chef Server.  cofig.edpoit = 'https://api.opscode.com/orgaizatios/meats'  # The cliet ad key must also be specified (uless you are ruig Chef Zero  # i o-autheticatio mode). The +key+ attribute may be the raw private key,  # the path to the private key o disk, or a +OpeSSLL::PKey+ object.  cofig.cliet = 'baco'  cofig.key    = '~/.chef/baco.pem'  # If you are ruig your ow Chef Server with a custom SSL certificate, you  # will eed to specify the path to a pem file with your custom certificates  # ad ChefAPI will wire everythig up correctly. (NOTE: it must be a valid  # PEM file).  cofig.ssl_pem_file = '/path/to/my.pem'  # If you would like to be vulerable to MITM attacks, you ca also tur off  # SSL verificatio. Despite what Iteret blog posts may suggest, you should  # exhaust other methods before disablig SSL verificatio. ChefAPI will emit  # a warig message for every request issued with SSL verificatio disabled.  cofig.ssl_verify = false  # If you are behid a proxy, Chef API ca ru requests through the proxy as  # well. Just set the followig cofiguratio parameters as eeded.  cofig.proxy_userame = 'user'  cofig.proxy_password = 'password'  cofig.proxy_address  = 'my.proxy.server' # or 10.0.0.50  cofig.proxy_port     = '8080'ed

功能介绍

ChefAPI 是一个依赖最小化的 Chef 服务器的 Ruby 客户端。 连接服务器:
ChefAPI.configure do |config|
  # The endpoint fo...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论