【发布时间】:2019-02-15 13:46:24
【问题描述】:
我正在编写一个厨师食谱来安装 Oracle EE 软件(通过在静默模式下运行 setup.exe)使用厨师资源“执行”,如下所示。
str_command = "<dir>/setup.exe -silent -nowait -noconfig -waitforcompletion ORACLE_HOME=... ORACLE_BASE=... " # other parameters for silent installation
Chef::Log.info("-before-")
execute 'install_oracle_ee' do
command str_command
live_stream true
timeout "#{node['mycookbk']['timeout']['num']}"
not_if {File.exists?("#{node['mycookbk']['oracle']['oracle_home']}/bin")}
end
Chef::Log.info("-after-")
软件安装成功后我需要执行“创建数据库实例”然后“创建数据库”的资源/配方。
当前执行的资源在运行命令后存在,直接移动到运行列表中的下一个资源/配方。
但我需要确保设置已完成,然后再执行此操作。谁能建议一种方法来做到这一点?
【问题讨论】:
标签: oracle installation chef-infra oracle12c chef-recipe