Code Monkey home page Code Monkey logo

Comments (7)

sureshr7 avatar sureshr7 commented on September 23, 2024

Looks like using virtual resource solves this problem. I will test and confirm

@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',
}

from biemond-oradb.

sureshr7 avatar sureshr7 commented on September 23, 2024

Still its failing with same error if i use realize in the class

from biemond-oradb.

biemond avatar biemond commented on September 23, 2024

yep, need to make a tempate Prepareautostart for this, class can only exists once.

from biemond-oradb.

sureshr7 avatar sureshr7 commented on September 23, 2024

Thanks for the quick ack Edwin. Any workarounds to handle this ?

from biemond-oradb.

biemond avatar biemond commented on September 23, 2024

I think I need to make this a define https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/prepareautostart.pp
but maybe you only need to define it once and update oratab to y for the 2nd instance. I think the service will start both.

from biemond-oradb.

sureshr7 avatar sureshr7 commented on September 23, 2024

yes. You are correct.
making https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/prepareautostart.pp as define and removing the class call in https://github.com/biemond/biemond-oradb/blob/puppet4_3_data/manifests/autostartdatabase.pp fixes the problem

Call both resources explicity
oradb::autostartdatabase { $db_name:
oracle_home => $oracle_home,
db_name => $db_name,
user => $user,
service_name => $db_name,
}

oradb::prepareautostart{ $db_name:
oracle_home => $oracle_home,
user => $user,
service_name => $db_name,
}

from biemond-oradb.

sureshr7 avatar sureshr7 commented on September 23, 2024

Hi Edwin,

Is it possible to push this fix ?

Thanks
Suresh

from biemond-oradb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.