Last active
December 17, 2015 02:09
-
-
Save trlinkin/5533722 to your computer and use it in GitHub Desktop.
Sample Coherence cache configuration using XML Mapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file { 'app-cache-config': | |
ensure => file, | |
path => '/tmp/coh-example.xml', | |
owner => 'nobody', | |
group => 'nobody', | |
mode => '0777', | |
} | |
cohcacheconfig { 'application-cache-config': | |
ensure => present, | |
config => File['app-cache-config'], | |
require => File['app-cache-config'], | |
} | |
cohcachemapping { 'item-price': | |
ensure => present, | |
cachename => 'PRICE', | |
schemename => 'custom-distributed', | |
target => File['app-cache-config'], | |
require => Cohcacheconfig['application-cache-config'], | |
} | |
file { 'app-operational-config': | |
ensure => file, | |
path => '/tmp/operational-example.xml', | |
owner => 'nobody', | |
group => 'nobody', | |
mode => '0777', | |
} | |
cohoperational{ 'application-operational-config': | |
ensure => present, | |
wellknownaddresses => present, | |
config => File['app-operational-config'], | |
require => File['app-operational-config'], | |
} | |
cohsocketaddress{ 'mynode-1': | |
ensure => present, | |
id => '1', | |
address => '192.168.1.151', | |
port => '8888', | |
target => File['app-operational-config'], | |
require => Cohoperational['application-operational-config'], | |
} | |
cohsocketaddress{ 'mynode-2': | |
ensure => present, | |
id => '2', | |
address => '192.168.1.152', | |
port => '8888', | |
target => File['app-operational-config'], | |
require => Cohoperational['application-operational-config'], | |
} | |
cohsocketaddress{ 'mynode-3': | |
ensure => present, | |
id => '3', | |
address => '192.168.1.153', | |
port => '8888', | |
target => File['app-operational-config'], | |
require => Cohoperational['application-operational-config'], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment