biemond / biemond-oradb

Puppet Oracle Database Module
Apache License 2.0
59 stars 113 forks source link

Unknown variable: 'file2' #192

Open narbutas opened 6 years ago

narbutas commented 6 years ago

My puppet code for single environment installation:

# Install oracleDB oradb::installdb{ $oradb : version => $oradb_version, file => $oradb_file, database_type => 'SE', oracle_base => $oracle_base, oracle_home => $oracle_home, bash_profile => true, user => 'oracle', group => 'dba', group_install => 'oinstall', group_oper => 'oper', download_dir => $oradb_download_dir, zip_extract => true, puppet_download_mnt_point => $puppet_download_mnt_point, }

And when I try to run this installation I get following error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'file2'. at /etc/puppetlabs/code/environments/oracledb/modules/oradb/manifests/installdb.pp:312:44 at ...

What I am missing here?

biemond commented 6 years ago

Hi,

Can you give the real values instead of variables. I guess you provided the wrong version which requires to 2 install files

narbutas commented 6 years ago

I use following hiera for variables:

{ "profiles::oracle::database::password": "", "profiles::oracle::database::puppet_download_mnt_point": "oradb/", "profiles::oracle::database::oradb": "database-12201", "profiles::oracle::database::oradb_version": "12.2.0.1", "profiles::oracle::database::oradb_file": "database-12201.zip", "profiles::oracle::database::oracle_base": "/home/oracle", "profiles::oracle::database::oracle_home": "/home/oracle/app/product/12.2", "profiles::oracle::database::puppet_download_mnt_point": "/oradb", "profiles::oracle::database::oradb_download_dir": "/home/oracle/data/install",

biemond commented 6 years ago

thanks

I see on remote file = true , I don't check for the total files. mostly everyone is using a local mountpoint

https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/installdb.pp#L320

biemond commented 6 years ago

Hi ,

can you check it should be fixed now.

thanks