Giter VIP home page Giter VIP logo

Comments (10)

biemond avatar biemond commented on August 15, 2024

I already do this on the weblogic install step.

https://github.com/biemond/biemond-orawls/blob/master/manifests/weblogic.pp

so you can set these on weblogic.pp , domain.pp etc.
wls_domains_dir => '/opt/oracle/wlsdomains/domains'
wls_apps_dir => '/opt/oracle/wlsdomains/applications'

all domains will be created under these /opt/oracle/wlsdomains/domains and applications folder

or set the following in hiera ( for example common.yaml )

this will be picked by every manifest
wls_domains_dir: &wls_domains_dir '/opt/oracle/wlsdomains/domains'
wls_apps_dir: &wls_apps_dir '/opt/oracle/wlsdomains/applications'

and set these for weblogic install
orawls::weblogic::wls_domains_dir: *wls_domains_dir
orawls::weblogic::wls_apps_dir: *wls_apps_dir

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

Do both settings have to be set in order for it to work?

Hrmmmm, maybe I need to try a clean box, but that parent directory is not being created for me.

wls_domains_dir: &wls_domains_dir "/projects"
wls_apps_dir: &wls_apps_dir "/projects/%{::tiaa_weblogic_domain}/applications"

Notice: /Stage[main]/Weblogic::Domains/Orawls::Domain[domain]/File[/projects]/mode: mode changed '0755' to '0775'
Error: Cannot create /projects/ADAMTEST/applications; parent directory /projects/ADAMTEST does not exist
Error: /Stage[main]/Weblogic::Domains/Orawls::Domain[domain]/File[/projects/ADAMTEST/applications]/ensure: change from absent to directory failed: Cannot create /projects/ADAMTEST/applications; parent directory /projects/ADAMTEST does not exist
Notice: /Stage[main]/Weblogic::Domains/Orawls::Domain[domain]/Exec[execwlst ADAMTEST domain]/returns: executed successfully
Notice: /Stage[main]/Weblogic::Domains/Orawls::Domain[domain]/Yaml_setting[domain domain]/ensure: created

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

It is failing to create /projects/ADAMTEST/applications because it doesn't exist on the first run.

After the first run, that directory exists for the domains_dir.

from biemond-orawls.

biemond avatar biemond commented on August 15, 2024

you should use these values

wls_domains_dir: &wls_domains_dir " /projects/ADAMTEST/domains"
wls_apps_dir: &wls_apps_dir " /projects/ADAMTEST/applications"

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

When I do that, I end up with /projects/ADAMTEST/domains/ADAMTEST for the domains directory.

That was the first thing I tried, and it failed.

from biemond-orawls.

biemond avatar biemond commented on August 15, 2024

yeah , you should replace 1st ADAMTEST with user_projects or wlsdomains. is the same as under the middleware home.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

This is the requested location from my customer really, they want the domain home to be: /projects/${domain-name}.

So, I want my wls_domains_dir to be just "/projects" I assume. The next question is does the wls_apps_dir have to be based on that path as well?

Do you know what goes in the applications folder as well? And does it need to live alongside the domains directory or can it be elsewhere (meaning, do both of these items need to be changed together)?

from biemond-orawls.

biemond avatar biemond commented on August 15, 2024

you can look at the mdw home user projects folder, it uses the same principle.

ok but you need a separate apps folder for the EM ear etc but with plain wls this probably will be empty.
So you can use /projects as domain folder and for the apps set it to /tmp/xxxx or /projects_apps

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

I see. I am running a test right now with:

12.1.2 settings

wls_middleware_home_dir: &wls_middleware_home_dir "/app/oracle/middleware12c"
wls_weblogic_home_dir: &wls_weblogic_home_dir "/app/oracle/middleware12c/wlserver"
wls_domains_dir: &wls_domains_dir "/projects"
wls_apps_dir: &wls_apps_dir "/app/oracle/middleware12c/applications"
wls_version: &wls_version 1212

I just didn't know if they both had to have the same base directory or anything. Just when I read your directions here: https://github.com/biemond/biemond-orawls#override-the-default-weblogic-domain-folder it sounded like maybe they both had to change.

from biemond-orawls.

adamjk-dev avatar adamjk-dev commented on August 15, 2024

As always, thanks for the responses and help. I just set the wls_domains_dir to /projects (an existing mounted directory for me) and it all works fine. The settings above seem to work great for me.

from biemond-orawls.

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.