厨师fmw_domain cookbook" databag key参数不能为空问题"

时间:2016-08-30 05:22:01

标签: chef

我正在研究oracle在https://github.com/oracle/chef-samples发布的食谱,但面对fmw_domain食谱中的问题,因为"数据库关键参数不能为空"。我正在使用厨师独奏来执行这本食谱。

特此请找到node.json和solo.rb文件

$mail->SMTPOptions = array(
    'ssl' => array(
        'verify_peer' => false,
        'verify_peer_name' => false,
        'allow_self_signed' => true
    )
);

solo.rb

  {
  "run_list": ["recipe[fmw_jdk::install]",
               "recipe[fmw_jdk::rng_service]",
               "recipe[fmw_wls::setup]",
               "recipe[fmw_wls::install]",
               "recipe[fmw_domain::domain]"
              ],
  "fmw": {
    "java_home_dir": "/scratch/app/product/jdk1.8.0_102",
    "middleware_home_dir": "/scratch/app/product/fmw",
     "weblogic_home_dir":   "/scratch/app/product/fmw/wlserver",
      "orainst_dir":                    "/scratch/app/ora_home/",
      "user_home_dir":              "/scratch/app/ora_home/",
       "ora_inventory_dir":         "/scratch/app/ora_home/oraInventory",
       "tmp_dir":     "/scratch/app/ora_home/tmp",
       "version":             "12.1.3"
  },
  "fmw_jdk": {
    "source_file":         "/scratch/installables/jdk-8u102-linux-x64.tar.gz",
     "java" : {
      "jdk_version":"8",
      "oracle":{
        "accept_oracle_download_terms": "true"
      }
    }


  ,
  "fmw_wls": {
    "source_file":         "/scratch/installables/fmw_12.2.1.1.0_wls.jar"
  },

    "fmw_domain": {
     "id":                            "DEV_WLS1",
    "domains_dir":                "/scratch/app/product/fmw/user_projects/domains",
     "apps_dir":                  " /scratch/app/product/fmw/user_projects/applications",
    "nodemanager_listen_address": "10.184.152.137",
   "nodemanager_port":             5556,
   "nodemanager_secure_listener": "true"
  }

}

1 个答案:

答案 0 :(得分:1)

查看代码,相关行为display:table;。您需要在节点数据中的fail 'databag_key parameter cannot be empty' unless node['fmw_domain'].attribute?('databag_key')哈希下设置"databag_key"属性。