sudo chef-client没有为oracle_rdbms显示运行列表,因此不安装oracle

时间:2016-07-27 02:32:20

标签: chef

在其上创建了一个基于VM centos7的新主厨

创建了一个环境DEMOKMOCK-hvm

knife search "role:oracle_rdbms AND chef_environment:DEMOKMOCK-hvm"
1 items found

Node Name:   el2-KMOCK-idb1
Environment: DEMOKMOCK-hvm
FQDN:
IP:          10.103.130.54
Run List:    role[oracle_rdbms]
Roles:       oracle_rdbms
Recipes:
Platform:    centos 7.2.1511
Tags:

knife environment edit DEMOKMOCK-hvm

显示一个JSON,其中包含所有具有正确版本的cookbook

将节点el2-KMOCK-idb1添加到此环境

knife node edit el2-KMOCK-idb1

{
  "name": "el2-KMOCK-idb1",
  "chef_environment": "DEMOKMOCK-hvm",
  "normal": {
    "tags": [

    ]
  },
  "run_list": [
  "role[oracle_rdbms]"
]

}

如果我们看一下角色chefrepo / roles / oracle_rdbms.json

{
  "name": "oracle_rdbms",
  "description": "",
  "json_class": "Chef::Role",
  "default_attributes": {
  },
  "override_attributes": {
  },
  "chef_type": "role",
  "run_list": [

  ],
  "env_run_lists": {
  }
}

现在当我运行sudo chef-client时,我没有获得oracle_rdbms的运行列表

sudo chef-client

INFO: Forking chef instance to converge
Starting Chef Client, version 11.12.2

INFO: *** Chef 11.12.2 ***
INFO: Chef-client pid: 28090
INFO: Run List is [role[oracle_rdbms]]
[2016-07-27T02:17:19+00:00] INFO: Run List expands to []
[2016-07-27T02:17:19+00:00] INFO: Starting Chef Run for el2-KMOCK-idb1
[2016-07-27T02:17:19+00:00] INFO: Running start handlers
[2016-07-27T02:17:19+00:00] INFO: Start handlers complete.
[2016-07-27T02:17:19+00:00] INFO: HTTP Request Returned 404 Object Not Found:
resolving cookbooks for run list: []
[2016-07-27T02:17:19+00:00] INFO: Loading cookbooks []
Synchronizing Cookbooks:
Compiling Cookbooks...
Converging 0 resources
[2016-07-27T02:17:20+00:00] INFO: Chef Run complete in 0.146990597 seconds

Running handlers:
[2016-07-27T02:17:20+00:00] INFO: Running report handlers
Running handlers complete

[2016-07-27T02:17:20+00:00] INFO: Report handlers complete
Chef Client finished, 0/0 resources updated in 1.660708561 seconds

0 个答案:

没有答案