Skip to content

Commit

Permalink
The app doesn't distribute git cookbooks any more
Browse files Browse the repository at this point in the history
This hasn't been used in a long time since the cookbook/installer is now external to the application.

#25
  • Loading branch information
benlangfeld committed Sep 8, 2014
1 parent 5b768db commit afcc3f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 73 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,3 @@ build_docker_images:

run_tests:
docker run -i mojolingo/adam-snark-rabbit-basic-brain /bin/bash -c "cd /app && bin/test"

# Create chef solo config for deployment environments
prep_deployment_config:
rm -rf build && mkdir build
berks vendor build/cookbooks
tar zcvf build/cookbooks.tgz build/cookbooks
tar zcvf build/roles.tgz roles
40 changes: 1 addition & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,7 @@ This is a simple Vagrant based development environment. All the usual vagrant ru

## Production deployment

1. Create a precise64 box
2. Copy `bootstrap.sh` and give it `+x` perms. Edit the placeholder username and password (CI API key).
3. Create a `dna.json` similar to the following:
```json
{
"run_list":"role[dev]",
"adam": {
"root_domain":"staging.adamrabbit.net",
"memory_base_url":"http://staging.adamrabbit.net:3000",
"deploy_key":"-----BEGIN RSA PRIVATE KEY-----ncenneccikiejwcoej-----END RSA PRIVATE KEY-----",
"github_key":"changeme",
"github_secret":"changeme",
"twitter_key":"changeme",
"twitter_secret":"changeme",
"wit_api_key":"changeme",
"bing_translate_key":"changeme",
"bing_translate_secret":"changeme",
"internal_password":"changeme",
"punchblock_port":"5224",
"reporter":{"api_key":"changeme"}
},
"ejabberd":{
"jabber_domain":"staging.adamrabbit.net",
}
}
```

4. Create `/var/chef/data_bags/ejabberd_users/adam.json` from the following template:
```json
{
"id": "adam",
"node": "adam",
"domain": "staging.adamrabbit.net",
"password": "abc123"
}
```

5. Execute `boostrap.sh`.
6. Add a cron entry to execute `bootstrap.sh` hourly.
See [adam_cookbook](https://github.com/mojolingo/adam_cookbook) for installation using Chef.

### Third-party integrations

Expand Down
27 changes: 0 additions & 27 deletions bootstrap.sh

This file was deleted.

0 comments on commit afcc3f9

Please sign in to comment.