Skip to content

Instantly share code, notes, and snippets.

@peteroyle peteroyle/myapp_app
Created Dec 20, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.