Skip to content

Instantly share code, notes, and snippets.

@mikezaccardo
Created September 30, 2016 06:22
Show Gist options
  • Save mikezaccardo/227d00f0a90ed46ad7350b067e416bf4 to your computer and use it in GitHub Desktop.
Save mikezaccardo/227d00f0a90ed46ad7350b067e416bf4 to your computer and use it in GitHub Desktop.
VSP Children service.isUp Test
brooklyn.catalog:
version: "1.0.0-SNAPSHOT"
items:
- id: test-template
name: "Test Template"
itemType: template
item:
services:
- type: item-a
name: "Parent Entity"
- id: centos-software-process
name: "CentOS Software Process"
itemType: entity
item:
type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
brooklyn.config:
provisioning.properties:
osFamily: centos
osVersionRegex: 7
- id: item-a
name: "Item A"
itemType: entity
item:
type: centos-software-process
brooklyn.config:
childStartMode: foreground_late
launch.command: |
touch ~/item-a
checkRunning.command: |
test -f ~/item-a
brooklyn.children:
- type: item-b
name: "Item B"
- type: item-c
name: "Item C"
- id: item-b
name: "Item B"
itemType: entity
item:
type: centos-software-process
brooklyn.config:
launch.command: |
touch ~/item-b
checkRunning.command: |
test -f ~/item-b
- id: item-c
name: "Item C"
itemType: entity
item:
type: centos-software-process
brooklyn.config:
launch.command: |
touch ~/item-c
checkRunning.command: |
test -f ~/item-c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment