Skip to content

Instantly share code, notes, and snippets.

@peteroyle
Created December 20, 2011 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peteroyle/1500026 to your computer and use it in GitHub Desktop.
Save peteroyle/1500026 to your computer and use it in GitHub Desktop.
Boxgrinder Embedded Ordering Samples
name: myapp_app
summary: Common configuration for running the C-Rex platform (just the application host)
post:
base:
- "echo ---- Creating home directory structures"
- "mkdir -p /home/myapp/stuff"
- "echo ---- Installing application and setting permissions"
- "chown -R myapp:myapp /home/myapp"
name: myapp_app_int
summary: Common configuration for running MyApp in integration environment (just the application host)
appliances:
- myapp_common_int
- myapp_app
name: myapp_common_int
summary: Common configuration for running MyApp in the integration environment (both database and application)
post:
base:
- "groupadd -g603 myapp"
- "useradd -u563 -gmyapp myapp"
- "echo \"passwordmyapp\" | passwd --stdin myapp"
name: myapp_db_int
summary: Separate database host for integration version of MyApp.
appliances:
- mysql
- myapp_common_int
hardware:
partitions:
"/":
size: 20 # Gb
post:
base:
- "echo '-- Creating database ...'"
name: myapp_int_single_server
summary: Configuration for running the integration version of MyApp on a single standalone server (app and DB).
appliances:
- myapp_app_int
- myapp_db_int
hardware:
partitions:
"/":
size: 30 # Gb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment