Hi all,
i am trying to build a module to install Oracle server on Linux that utilises defined types in the module oradb::installdb.pp
one of the checks in the oradb::installdb is this
if ! defined(File["${download_dir}/db_install_${version}.rsp"])
so in order to override this file definition and source my own custom response file, I would need to have a file resource in my custom manifest that defines File["${download_dir}/db_install_${version}.rsp"] ?
so in my custom manifest I have that exact file defined as follows :
file { "${download_dir}/db_install_${version}.rsp":
ensure => 'present',
content => template("${module_name}/oracle/server/db_install_AWS_${version}_binary.rsp.erb"),
mode => '0775',
owner => $user,
group => $group,
}
the file get's setup ok but then get's over written because this check is true if ! defined(File["${download_dir}/db_install_${version}.rsp"]) so it doesn't find the defined file resource.
can anyone see where I am going wrong ?