에 적용되지 속성이 내가 다운로드 한 요리 책이다 https://github.com/edelight/chef-mongodb요리사, 재정의 조리법
내가 요리사 서버, 요리사 워크 스테이션을 설치, 그리고 부트 스트랩 준비 testnode 있습니다.
역할은 내가 만든 :
$ knife role create mongodb_standalone_testproj
JSON 형식 :
knife bootstrap testnode --sudo -x <omit> -P <omit> -N testnode -r 'role[mongodb_standalone_testproj]'
로그 여기 : http://pastebin.com/DWxY3vNV
그러나{
"name": "mongodb_standalone_testproj",
"description": "Deploy MongoDB standalone with override attributes",
"json_class": "Chef::Role",
"default_attributes": {
},
"override_attributes": {
"mongodb::default": {
"port": "27060",
"dbpath": "/data/"
}
},
"chef_type": "role",
"run_list": [
"recipe[mongodb::default]"
],
"env_run_lists": {
}
}
을, 나는이 역할로 testnode 부트 스트랩 때
MongoDB가 설치되어 있고 testnode에서 실행되었지만 무시 속성 (포트 및 dbpath)이 적용되지 않았습니다. 단서가 있습니까?
을 단순한 감시가 되겠습니까? –
@LawrenceDol은 유효하지 않은 편집이므로. 모든 사용자는 답변에 대한 관련 코드를 게시해야하며, 그대로 또는 거의 그대로 작동해야하며, 편집하기 전에는 ** 잘못된 대답 **이 필요하지만 올바른 답변이었습니다. –