guide/blueprints/example_yaml/vanilla-bash-netcat-env.yaml (12 lines of code) (raw):

name: Netcat Example with Environment Vars location: localhost services: - type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess name: Simple Netcat Server brooklyn.config: launch.command: | echo $MESSAGE | nc -l $NETCAT_PORT & echo $! > $PID_FILE shell.env: MESSAGE: hello NETCAT_PORT: 4321