Skip to content

Instantly share code, notes, and snippets.

@jcabrerizo
Last active June 8, 2021 10:59
Show Gist options
  • Save jcabrerizo/d7d37add9ba57051d1ae39ddc507d4e8 to your computer and use it in GitHub Desktop.
Save jcabrerizo/d7d37add9ba57051d1ae39ddc507d4e8 to your computer and use it in GitHub Desktop.
Training 2021 s1e1
# Resources
WAR:
http://bit.ly/2dcaKIV
schema generation:
https://bit.ly/brooklyn-visitors-creation-script
java system property:
key: brooklyn.example.db.url
value: DSL format string
pattern: jdbc:%s%s?user=%s&password=%s
arg1: visitors
arg2: brooklyn
arg3: br00k11n
# Restart effector
- type: org.apache.brooklyn.core.effector.ssh.SshCommandEffector
brooklyn.config:
name: restartMachine
description: Restarts the VM
command: |
sudo shutdown -r now
# Policies
brooklyn.policies:
- type: org.apache.brooklyn.policy.action.PeriodicEffectorPolicy
brooklyn.config:
name: periodicPolicy
effector: restartMachine
period: 30 second
- type: org.apache.brooklyn.policy.action.ScheduledEffectorPolicy
brooklyn.config:
name: scheduledPolicy
effector: restartMachine
time: 12:00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment