Created
August 14, 2013 13:29
-
-
Save grkvlt/6231020 to your computer and use it in GitHub Desktop.
Shell environment to install a Brooklyn/AMP software entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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