Setup Node.js server with few global packages and MongoDB
Ubuntu Debian
| Key | Type | Description | Default |
|---|---|---|---|
| ['hostname'] | String | External Hostname of the server, usually, top level domain | |
| ['set_fqdn'] | String | Hostname of the particular server | |
| ['public_keys'] | Array of Strings | Public keys allowed to access the server | |
| ['known_hosts'] | Array of Strings | List of urls added to known hosts | ['github.com'] |
| ['ssmtp'] | Hash of values | SMTP configuration, see attributes/default.rb | |
| App Server | |||
| ['project_name'] | String | Short name of the project. Used to name main directory. | node |
| ['git']['repository'] | String | Git url to repository to clone | |
| ['git']['deploy_public_key'] | String | Public key used for deployments | |
| ['git']['deploy_private_key'] | String | Private key used for deployments | |
Include nodechef in your node's run_list:
{
"run_list": [
"recipe[nodechef::default]"
]
}Application Server:
{
"run_list": [
"recipe[nodechef::app]"
]
}Database Server:
{
"run_list": [
"recipe[nodechef::db]"
]
}All-in-One:
{
"run_list": [
"recipe[nodechef::db]"
"recipe[nodechef::app]"
]
}