-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using oradb::autostartdatabase for multiple databases per server failing #267
Comments
Looks like using virtual resource solves this problem. I will test and confirm @oradb::autostartdatabase { 'DEV': |
Still its failing with same error if i use realize in the class |
yep, need to make a tempate Prepareautostart for this, class can only exists once. |
Thanks for the quick ack Edwin. Any workarounds to handle this ? |
I think I need to make this a define https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/prepareautostart.pp |
yes. You are correct. Call both resources explicity oradb::prepareautostart{ $db_name: |
Hi Edwin, Is it possible to push this fix ? Thanks |
Hi,
oradb::autostartdatabase { 'DEV':
oracle_home => '/u01/oracle/product/12.1.0.2/db',
db_name => 'DEV',
user => 'oracle',
service_name => 'DEV',
}
oradb::autostartdatabase { 'STG':
oracle_home => '/u01/oracle/product/12.1.0.2/dbstage',
db_name => 'STG',
user => 'oracle',
service_name => 'STG',
}
Using above code on a single server fails with error message
Error while evaluating a Resource Statement, Duplicate declaration: Class[Oradb::Prepareautostart] is already declared at (file: modules/oradb/manifests/autostartdatabase.pp, line: 27); cannot redeclare (file:modules/oradb/manifests/autostartdatabase.pp, line: 27)
Thanks
Suresh
The text was updated successfully, but these errors were encountered: