Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
added ports to the recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamir Korem committed Mar 12, 2014
1 parent f10f134 commit c4434ed
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 3 deletions.
31 changes: 31 additions & 0 deletions apps/petclinic/apacheLB/apacheLB-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,35 @@
*******************************************************************************/
service {
extend "../../../services/apacheLB"
network {
protocolDescription = "HTTP"
template "APPLICATION_NET"
accessRules {[
incoming ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
]),
outgoing ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
])
]
}
}
}
31 changes: 31 additions & 0 deletions apps/petclinic/mongoConfig/mongoConfig-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,35 @@
*******************************************************************************/
service {
extend "../../../services/mongodb/mongoConfig"
network {
protocolDescription = "HTTP"
template "APPLICATION_NET"
accessRules {[
incoming ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
]),
outgoing ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
])
]
}
}
}
31 changes: 31 additions & 0 deletions apps/petclinic/mongod/mongod-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,35 @@
*******************************************************************************/
service {
extend "../../../services/mongodb/mongod"
network {
protocolDescription = "HTTP"
template "APPLICATION_NET"
accessRules {[
incoming ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
]),
outgoing ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
])
]
}
}
}
31 changes: 31 additions & 0 deletions apps/petclinic/mongos/mongos-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,35 @@
*******************************************************************************/
service {
extend "../../../services/mongodb/mongos"
network {
protocolDescription = "HTTP"
template "APPLICATION_NET"
accessRules {[
incoming ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
]),
outgoing ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
])
]
}
}
}
31 changes: 31 additions & 0 deletions apps/petclinic/tomcat/tomcat-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,35 @@
*******************************************************************************/
service {
extend "../../../services/tomcat"
network {
protocolDescription = "HTTP"
template "APPLICATION_NET"
accessRules {[
incoming ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
]),
outgoing ([
accessRule {
type "PUBLIC"
portRange "1-40000"
target "0.0.0.0/0"
},
accessRule {
type "APPLICATION"
portRange "1-40000"
target "0.0.0.0/0"
}
])
]
}
}
}
9 changes: 6 additions & 3 deletions services/biginsights/master/master-service.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ service {
def privateIP = fulladdress.split("/")[0]
ServiceUtils.isPortOccupied(privateIP, nameNodePort)
}
start {
println ":master-service.groovy: starting ..."
}
locator {
def myPids = ServiceUtils.ProcessUtils.getPidsWithQuery("State.Name.eq=java,Args.*.ew=${nameNodeJmxPort}")
println ":master-service.groovy: current PIDs: ${myPids}"
Expand All @@ -61,7 +64,7 @@ service {
]

return JmxMonitors.getJmxMetrics("127.0.0.1",nameNodeJmxPort,jmxCredsPath,nameNodeJmxBeans)
}
}
stopDetection {
def fulladdress= context.getPrivateAddress()
def privateIP = fulladdress.split("/")[0]
Expand Down Expand Up @@ -94,7 +97,7 @@ service {
])


userInterface {
/* userInterface {
metricGroups = ([
metricGroup {
Expand Down Expand Up @@ -184,7 +187,7 @@ service {
} ,
]
)
}
} */

network {
println ":master-service.groovy: nameNode Http port: ${nameNodePort}"
Expand Down

0 comments on commit c4434ed

Please sign in to comment.