Skip to content

Commit 5fd0c19

Browse files
Wdt 604 clean up models for parser changes (#1081)
* start cleanup of yaml * Clean up yaml for new parser * revert model-help changes
1 parent 8cd6b42 commit 5fd0c19

18 files changed

+148
-155
lines changed

documentation/2.0/content/concepts/archive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ appDeployments:
2525
Application:
2626
simpleear :
2727
SourcePath: wlsdeploy/applications/simpleear.ear
28-
Target: 'my-cluster'
28+
Target: my-cluster
2929
ModuleType: ear
3030
```
3131

documentation/2.0/content/concepts/model.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ resources:
6666
JNDIName: jdbc/generic1
6767
JDBCDriverParams:
6868
DriverName: oracle.jdbc.OracleDriver
69-
URL: 'jdbc:oracle:thin:@//@@PROP:dbcs1.url@@'
69+
URL: jdbc:oracle:thin:@//@@PROP:dbcs1.url@@
7070
PasswordEncrypted: '@@PROP:dbcs1.password@@'
7171
Properties:
7272
user:
@@ -195,10 +195,10 @@ When modeling configuration attributes that can have multiple values, the WebLog
195195
resources:
196196
JDBCSystemResource:
197197
MyStringDataSource:
198-
Target: 'AdminServer,mycluster'
198+
Target: AdminServer,mycluster
199199
JdbcResource:
200200
JDBCDataSourceParams:
201-
JNDIName: 'jdbc/generic1, jdbc/special1'
201+
JNDIName: jdbc/generic1, jdbc/special1
202202
...
203203
MyListDataSource:
204204
Target: [ AdminServer, mycluster ]
@@ -231,21 +231,15 @@ With WebLogic Deploy Tooling, you can specify named items in the model to be del
231231

232232
In this example, the managed server ```obsoleteServer``` will be deleted, and ```newServer``` will be created:
233233

234+
Note that the exclamation point, along with the name, should be inside quotation marks:
235+
234236
```yaml
235237
Server:
236-
!obsoleteServer:
238+
'!obsoleteServer':
237239
newServer:
238240
ListenAddress: 127.0.0.1
239241
ListenPort: 9005
240242
```
241-
242-
If the name of the item requires quotation marks, the exclamation point should be inside the quotation marks:
243-
244-
```yaml
245-
Server:
246-
'!obsolete-server':
247-
```
248-
249243
This feature can also remove items that were created by WebLogic Server templates. For example, the base template creates a default security realm called ```myrealm```. If a user chooses to declare a custom realm, ```myrealm``` is no longer needed. In this example, ```myrealm``` will be deleted, and the custom realm ```newrealm``` will be created, and declared as the default realm:
250244

251245
```yaml
@@ -269,8 +263,8 @@ In addition to deleting named mbeans, you can remove items from a list. Most pra
269263
```yaml
270264
JMSSystemResource:
271265
BPMJMSModule:
272-
Target: soa_cluster,!AdminServer
273-
266+
Target: soa_cluster,'!AdminServer'
267+
274268
```
275269
In this example, the BPMJMSModule has the AdminServer target removed from the target list.
276270

@@ -287,7 +281,7 @@ topology:
287281
Server:
288282
m1:
289283
ListenPort: 7000
290-
Notes: "Server 1"
284+
Notes: Server 1
291285
m2:
292286
ListenPort: 9000
293287
```
@@ -325,7 +319,7 @@ topology:
325319
Server:
326320
m1:
327321
ListenPort: 7000
328-
Notes: "Server 1"
322+
Notes: Server 1
329323
m2:
330324
ListenPort: 9000
331325
```
@@ -341,7 +335,7 @@ topology:
341335
Server:
342336
m1:
343337
ListenPort: 7000
344-
Notes: "Server 1"
338+
Notes: Server 1
345339
```
346340

347341
Similarly, an element without delete notation will completely replace an element with a matching name that has delete notation in a previous model. For example, if Model 1 looks like:
@@ -356,13 +350,13 @@ topology:
356350
Server:
357351
m1:
358352
ListenPort: 7000
359-
Notes: "Server 1"
353+
Notes: Server 1
360354
```
361355
The resulting model would be:
362356
```yaml
363357
topology:
364358
Server:
365359
m1:
366360
ListenPort: 7000
367-
Notes: "Server 1"
361+
Notes: Server 1
368362
```

documentation/2.0/content/rcuinfo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ domainInfo:
3939
rcu_schema_password : <rcu schema password, will be prompted if not specified>
4040
rcu_admin_password : <database admin password is required only when you specify -run_rcu flag, will be prompted
4141
if not specified>
42-
rcu_db_conn_string : 'dbhost:1521/pdborcl'
42+
rcu_db_conn_string : dbhost:1521/pdborcl
4343
```
4444
RCU `-variables` option of the repository creation utility can now be included in the `RCUDbInfo` section with the key `rcu_variables`:
4545

4646
```yaml
4747
domainInfo:
4848
RCUDbInfo:
49-
rcu_variables : 'xxxx'
49+
rcu_variables : xxxx
5050
```
5151

5252
**Note: Prior to release 0.23, the `useATP` flag only accepts values of 0, 1, 'true' or 'false'.**
@@ -60,6 +60,6 @@ Include your XML files in your archive file using location `wlsdeploy/rcu/config
6060
```yaml
6161
domainInfo:
6262
RCUDbInfo:
63-
compInfoXMLLocation: 'wlsdeploy/rcu/config/MyComponentInfo.xml'
64-
storageXMLLocation: 'wlsdeploy/rcu/config/MyStorage.xml'
63+
compInfoXMLLocation: wlsdeploy/rcu/config/MyComponentInfo.xml
64+
storageXMLLocation: wlsdeploy/rcu/config/MyStorage.xml
6565
```

documentation/2.0/content/samples/adminserver-model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ description: "Configure the Administration Server using a domain model."
2424
AdminServer:
2525
ListenPort: 9071
2626
RestartDelaySeconds: 10
27-
ListenAddress: 'my-host-1'
27+
ListenAddress: my-host-1
2828
Log:
2929
FileCount: 9
3030
LogFileSeverity: Info
@@ -44,12 +44,12 @@ description: "Configure the Administration Server using a domain model."
4444

4545
```yaml
4646
topology:
47-
AdminServerName: 'my-admin-server'
47+
AdminServerName: my-admin-server
4848
Server:
4949
'my-admin-server':
5050
ListenPort: 9071
5151
RestartDelaySeconds: 10
52-
ListenAddress: 'my-host-1'
52+
ListenAddress: my-host-1
5353
Log:
5454
FileCount: 9
5555
LogFileSeverity: Info

documentation/2.0/content/samples/cluster-model.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ This WDT domain model sample has a typical configuration for a configured cluste
1111
```yaml
1212
topology:
1313
Cluster:
14-
'cluster-1':
14+
cluster-1:
1515
ClientCertProxyEnabled: true
1616
AutoMigrationTableName: MIGRATION_1
17-
DataSourceForAutomaticMigration: 'jdbc-1'
17+
DataSourceForAutomaticMigration: jdbc-1
1818
ClusterMessagingMode: unicast
1919
FrontendHost: frontend.com
2020
FrontendHTTPPort: 9001
@@ -24,16 +24,16 @@ topology:
2424
WeblogicPluginEnabled: true
2525

2626
Server:
27-
'server-1':
28-
Cluster: 'cluster-1' # this server belongs to cluster-1
27+
server-1:
28+
Cluster: cluster-1 # this server belongs to cluster-1
2929
ListenAddress: 127.0.0.1
3030
ListenPort: 8001
31-
Machine: 'machine-1'
31+
Machine: machine-1
3232
Log:
3333
DomainLogBroadcastSeverity: Error
3434
FileCount: 7
3535
FileMinSize: 5000
36-
FileName: 'logs/AdminServer.log'
36+
FileName: logs/AdminServer.log
3737
LogFileSeverity: Info
3838
MemoryBufferSeverity: Notice
3939
NumberOfFilesLimited: true
@@ -43,8 +43,8 @@ topology:
4343
Enabled: true
4444
ListenPort: 8002
4545
ServerStart:
46-
Arguments: '-Dosgi=true -Dtangosol.coherence.management=all'
47-
ClassPath: '/foo/bar,wlsdeploy/classpathLibraries/mylib.jar'
46+
Arguments: -Dosgi=true -Dtangosol.coherence.management=all
47+
ClassPath: /foo/bar,wlsdeploy/classpathLibraries/mylib.jar
4848
```
4949
There are additional sub-folders and attributes available for more configuration options. These can be determined using the [Model Help Tool]({{< relref "/userguide/tools/model_help.md" >}}). For example, this command will list the attributes and sub-folders for the `Server` folder:
5050
```bash

documentation/2.0/content/samples/jdbc-model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ This WDT domain model sample section has a typical configuration for a JDBC data
1111
```yaml
1212
resources:
1313
JDBCSystemResource:
14-
'datasource-1':
15-
Target: 'AdminServer,cluster-1'
14+
datasource-1:
15+
Target: AdminServer,cluster-1
1616
JdbcResource:
1717
DatasourceType: GENERIC
1818
JDBCConnectionPoolParams:
@@ -25,7 +25,7 @@ resources:
2525
JDBCDriverParams:
2626
DriverName: oracle.jdbc.OracleDriver
2727
PasswordEncrypted: '@@PROP:jdbc.password@@'
28-
URL: 'jdbc:oracle:thin:@//localhost:1521/myDB'
28+
URL: jdbc:oracle:thin:@//localhost:1521/myDB
2929
Properties:
3030
user:
3131
Value: scott

documentation/2.0/content/samples/odl-model.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,41 @@ This example shows how some common configuration elements can be represented in
1515
resources:
1616
ODLConfiguration:
1717
config1:
18-
Servers: "m1, m2"
18+
Servers: m1, m2
1919
AddJvmNumber: true
2020
HandlerDefaults:
2121
abc: r123
2222
xyz: k890
2323
Handler:
24-
'my-handler':
25-
Class: 'com.my.MyHandler'
26-
Level: 'TRACE:32'
27-
ErrorManager: 'com.my.MyErrorManager'
28-
Filter: 'com.my.MyFilter'
29-
Formatter: 'com.my.MyFormatter'
30-
Encoding: 'UTF-8'
24+
my-handler:
25+
Class: com.my.MyHandler
26+
Level: TRACE:32
27+
ErrorManager: com.my.MyErrorManager
28+
Filter: com.my.MyFilter
29+
Formatter: com.my.MyFormatter
30+
Encoding: UTF-8
3131
Properties:
32-
'path': '/home/me/mypath"
33-
'quicktrace-handler':
34-
Filter: 'oracle:dfw:incident:IncidentDetectionLogFilter'
32+
path: /home/me/mypath
33+
quicktrace-handler:
34+
Filter: oracle:dfw:incident:IncidentDetectionLogFilter
3535
Properties:
3636
path: '${domain.home}/servers/${weblogic.Name}/logs/${weblogic.Name}-myhistory.log'
37-
useSourceClassandMethod: 'true'
37+
useSourceClassandMethod: true
3838
Logger:
39-
'my-logger':
40-
Level: 'NOTIFICATION:1'
39+
my-logger:
40+
Level: NOTIFICATION:1
4141
UseParentHandlers: true
42-
Filter: 'oracle:dfw:incident:IncidentDetectionLogFilter'
43-
Handlers: 'richard-handler,owsm-message-handler'
44-
'oracle.sysman':
42+
Filter: oracle:dfw:incident:IncidentDetectionLogFilter
43+
Handlers: richard-handler,owsm-message-handler
44+
oracle.sysman:
4545
Handlers: [
46-
'my-handler',
47-
'owsm-message-handler'
46+
my-handler,
47+
owsm-message-handler
4848
]
4949
config2:
50-
Servers: 'AdminServer'
50+
Servers: AdminServer
5151
HandlerDefaults:
52-
path: '/home/me/otherpath'
52+
path: /home/me/otherpath
5353
maxFileSize: 5242880
5454
```
5555

documentation/2.0/content/samples/ohs-model.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ Configuring OHS typically involves adding two top-level folders to the `resource
3333
```yaml
3434
resources:
3535
SystemComponent:
36-
'my-ohs':
37-
ComponentType: 'OHS'
38-
Machine: 'my-machine'
36+
my-ohs:
37+
ComponentType: OHS
38+
Machine: my-machine
3939
OHS:
40-
'my-ohs':
41-
AdminHost: '127.0.0.1'
42-
AdminPort: '9324'
43-
ListenAddress: '127.0.0.1'
44-
ListenPort: '7323'
45-
SSLListenPort: '4323'
46-
ServerName: 'http://localhost:7323'
40+
my-ohs:
41+
AdminHost: 127.0.0.1
42+
AdminPort: 9324
43+
ListenAddress: 127.0.0.1
44+
ListenPort: 7323
45+
SSLListenPort: 4323
46+
ServerName: http://localhost:7323
4747
```
4848
Each name under the `OHS` folder must match a name under the `SystemComponent` folder in the model, or the name of a `SystemComponent` element that has been previously created. In this example, the name `my-ohs` is in both places.
4949

documentation/2.0/content/samples/pwcredentialmap-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ domainInfo:
3434
RemotePort: 7030
3535
Path: /app/sell
3636
Method: GET
37-
User: 'user1,user2'
37+
User: user1,user2
3838
RemoteUser: remoteUser2
3939
RemotePassword: '@@PROP:remote2.pwd@@'
4040
```

documentation/2.0/content/samples/securityproviders-model.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ For the MBean jar, WebLogic allows you to define an alternate directory other th
130130

131131
```yaml
132132
CredentialMapper:
133-
'Sample CredentialMapper':
134-
'examples.security.providers.SampleCredentialMapper':
135-
UserNameMapperClassName: 'examples.security.providers.CredentialMapperProviderImpl'
136-
CredentialMappingDeploymentEnabled: true:
133+
Sample CredentialMapper:
134+
examples.security.providers.SampleCredentialMapper:
135+
UserNameMapperClassName: examples.security.providers.CredentialMapperProviderImpl
136+
CredentialMappingDeploymentEnabled: true
137137
```
138138

139139
#### Known limitations

0 commit comments

Comments
 (0)