厨师:运行列表中的角色

时间:2019-05-15 10:09:49

标签: chef chef-solo

我正在尝试创建一个由其他角色组成的角色,但出现错误

amazon-ebs: Starting Chef Client, version 12.19.36
amazon-ebs: [2019-05-15T09:40:19+00:00] INFO: *** Chef 12.19.36 ***
amazon-ebs: [2019-05-15T09:40:19+00:00] INFO: Platform: x86_64-linux
amazon-ebs: [2019-05-15T09:40:19+00:00] INFO: Chef-client pid: 14603
amazon-ebs: [2019-05-15T09:40:20+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/ip-xxxxx
amazon-ebs: [2019-05-15T09:40:20+00:00] INFO: Setting the run_list to ["role[myrole1]", "role[myrole2]", "role[myrole3]"] from CLI options
amazon-ebs: [2019-05-15T09:40:20+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/roles/myrole1
amazon-ebs: [2019-05-15T09:40:20+00:00] ERROR: Role myrole1 (included by 'top level') is in the runlist but does not exist. Skipping expand.
amazon-ebs: [2019-05-15T09:40:20+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/roles/myrole2
amazon-ebs: [2019-05-15T09:40:20+00:00] ERROR: Role myrole2 (included by 'top level') is in the runlist but does not exist. Skipping expand.
amazon-ebs: [2019-05-15T09:40:20+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/roles/myrole3
amazon-ebs: [2019-05-15T09:40:20+00:00] ERROR: Role myrole3 (included by 'top level') is in the runlist but does not exist. Skipping expand.
amazon-ebs:
amazon-ebs: ================================================================================
amazon-ebs: Error expanding the run_list:
amazon-ebs: ================================================================================
amazon-ebs:
amazon-ebs: Missing Role(s) in Run List:
amazon-ebs: ----------------------------
amazon-ebs: * myrole1 included by 'top level'
amazon-ebs: * myrole2 included by 'top level'
amazon-ebs: * myrole3 included by 'top level'
amazon-ebs:
amazon-ebs: Original Run List
amazon-ebs: -----------------
amazon-ebs: * role[myrole1]
amazon-ebs: * role[myrole2]
amazon-ebs: * role[myrole3]
amazon-ebs:
amazon-ebs: Platform:
amazon-ebs: ---------
amazon-ebs: x86_64-linux

角色json文件如下所示

{
"role": {
    "name": "mytestrole"
},
"run_list": [
    "role[role1]",
    "role[role2]",
    "role[role3]"
]
}

我已经将role_path添加到solo.rb,但这没有帮助

0 个答案:

没有答案