guide/blueprints/example_yaml/vanilla-bash-netcat-port.yaml (10 lines of code) (raw):
name: Netcat Example with Port Opened
location: localhost
services:
- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
name: Simple Netcat Server
brooklyn.config:
# matching the regex `.*\.port` will cause the port to be opened
# if in a cloud where configurable security groups are available
netcat.port: 4321
launch.command: |
echo hello | nc -l 4321 &
echo $! > $PID_FILE