Comments (10)
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.
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.
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.
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.
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.
yeah , you should replace 1st ADAMTEST with user_projects or wlsdomains. is the same as under the middleware home.
from biemond-orawls.
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.
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.
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.
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)
- OptachUpgrade version check not working HOT 3
- change wlst_action HOT 1
- Some "get" methods still exist after replacement by "get_attribute_value"
- Issues when trying to set nodemanager_username and _password HOT 1
- Managed server not creating using wlserver
- Datasource created in WLS 12.2.1.3 appears to not display in Monitoring tab
- Upgrade to 12.2.1.4 HOT 1
- Errors when running puppet on an AIX operating system HOT 1
- Repo description doesn't match Documentation HOT 1
- FMW install in Solaris for new version fails HOT 1
- wls_opatch and multiple orainst_dir HOT 1
- opatch not being applied when doing a puppet run
- Support for 12.2.1.4
- OHS 12.2.1.4 HOT 7
- extraproperties is not idempotent HOT 1
- Odd issue that we need assistance with
- JDBC_persistence_store - get('MigrationPolicy') & get('DistributionPolicy') causes timeout
- Support for Weblogic version 14.1.1.0
- for keystores of type pkcs12, wls_authentication_provider creation fails with "Error: No domain or domain template has been read." HOT 3
- 0400 Puppet (err): Failed to apply catalog: BUG! removeinfectedconnections should have been '0' or '1' HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biemond-orawls.