Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Created August 14, 2013 13:29
Show Gist options
  • Save grkvlt/6231020 to your computer and use it in GitHub Desktop.
Save grkvlt/6231020 to your computer and use it in GitHub Desktop.
Shell environment to install a Brooklyn/AMP software entity
#!/bin/bash
### requirements
# multi operating-system
# - linux (various, centos/rhel, ubuntu in pareticular)
# - osx
# bash 4.x
# helpful error messages
# fail fast and fail safe
#
### lifecycle phases/commands
# install
# is-installed
# customize
# launch
# start
# stop
# restart
# is-running
# status
# pid
# bind
### functions
### mini dsl to describe brooklyn software entity installation?
### cf. jclouds setup tasks?
### cf. other tools like chef?
# install-package
# download
# check-installed
# install-dev-tools
# check-dev-tools
# check-service
# check-network
# setup-network
# - port forwarding, iptables firewalling, nat, dns, dhcp etc.
# setup-user
### variables
# rundir
# XXX use freemarker variable interpolatoin for this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment