{"id":19371932,"url":"https://github.com/chatsecure/chef-chatsecure","last_synced_at":"2025-04-23T16:31:44.827Z","repository":{"id":11778512,"uuid":"14317587","full_name":"ChatSecure/chef-chatsecure","owner":"ChatSecure","description":"Chef Repo for chatsecure.org","archived":false,"fork":false,"pushed_at":"2017-07-18T16:52:25.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-23T21:40:08.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChatSecure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-12T00:16:23.000Z","updated_at":"2023-03-23T21:40:08.855Z","dependencies_parsed_at":"2022-09-23T01:52:21.830Z","dependency_job_id":null,"html_url":"https://github.com/ChatSecure/chef-chatsecure","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatSecure%2Fchef-chatsecure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatSecure%2Fchef-chatsecure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatSecure%2Fchef-chatsecure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChatSecure%2Fchef-chatsecure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChatSecure","download_url":"https://codeload.github.com/ChatSecure/chef-chatsecure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223928429,"owners_count":17226715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T08:20:36.670Z","updated_at":"2024-11-10T08:20:36.740Z","avatar_url":"https://github.com/ChatSecure.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatsecure.org chef repo\n\nChef is way better than provisioning servers by hand.\n\n## Vagrant\n\nInstall [Vagrant](http://www.vagrantup.com), [VirtualBox](https://www.virtualbox.org), and then install these plugins.\n\n    $ vagrant plugin install vagrant-omnibus\n    $ vagrant plugin install vagrant-berkshelf\n\nThen you should be able to bring up the VM:\n\n\t$ vagrant up\n\t\nProvision the current roles/recipes defined in the `Vagrantfile`:\n\n\t$ vagrant provision\n\t\nOther useful commands are `vagrant destroy` to destroy the VM, `vagrant ssh` to ssh into the VM, `vagrant halt` and `vagrant suspend` to halt/suspend. Sometimes you have to do `vagrant reload` as well when changing VM configuration.\n\n## Deploying\n\nInstall the latest version of Chef, knife-solo, and berkshelf for your operating system.\n\n    $ gem install chef knife-solo berkshelf\n    \nInstall chef-solo on the remote server with knife-solo:\n\n    $ knife solo prepare user@example.com\n    \nProvision the server with the latest cookbooks (similar to `vagrant provision`):\n\n    $ knife solo cook user@example.com\n\nClean it up\n\n\t$ knife solo clean user@example.com\n\n## Data Bags\n\nThe `data_bags` directory should look like this:\n\n    groups\n        groups.json\n    secrets\n        secrets.json\n    ssl\n        certs.json\n        keys.json\n    user-passwords\n    \tpasswords.json\n    users\n        user1.json\n        user2.json\n        user3.json\n        \n## Nodes\n\nFor some reason chef-solo breaks if you include too much stuff in your json file. In the `nodes` directory include a node `example.com.json`:\n\n\t{\n\t   \"name\": \"example.com\",\n\t   \"postgresql\": {\n\t      \"password\": {\n\t         \"postgres\": \"example_password\"\n\t      }\n\t   },\n\t   \"run_list\": [\n\t      \"role[nginx]\",\n\t      \"role[base]\",\n\t      \"role[security]\",\n\t      \"role[users]\",\n\t      \"role[web]\"\n\t   ]\n\t}\n\t\n## Git Deploys\n\nNow you can deploy application code with git:\n\n    $ git remote add vagrant ssh://git@127.0.0.1:2222/var/git/chatsecure-web.git\n    $ git remote add production git@beta.chatsecure.org:/var/git/chatsecure-web.git\n    $ git push production master","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatsecure%2Fchef-chatsecure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatsecure%2Fchef-chatsecure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatsecure%2Fchef-chatsecure/lists"}