Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sous-chefs/gems
Development repository for the gems cookbook
https://github.com/sous-chefs/gems
chef chef-cookbook chef-resource gems hacktoberfest managed-by-terraform
Last synced: about 1 month ago
JSON representation
Development repository for the gems cookbook
- Host: GitHub
- URL: https://github.com/sous-chefs/gems
- Owner: sous-chefs
- License: apache-2.0
- Created: 2012-03-14T18:31:05.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T01:30:17.000Z (11 months ago)
- Last Synced: 2024-04-14T04:19:40.948Z (8 months ago)
- Topics: chef, chef-cookbook, chef-resource, gems, hacktoberfest, managed-by-terraform
- Language: Ruby
- Homepage: https://supermarket.chef.io/cookbooks/gems
- Size: 134 KB
- Stars: 17
- Watchers: 44
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# gems Cookbook
[![Build Status](https://travis-ci.org/chef-cookbooks/gems.svg?branch=master)](http://travis-ci.org/chef-cookbooks/gems) [![Cookbook Version](https://img.shields.io/cookbook/v/gems.svg)](https://supermarket.chef.io/cookbooks/gems)
Sets up a local gem server repository.
## Requirements
### Platform
- Ubuntu / Debian
### Cookbooks
- apache2
- rsync### Chef
- Chef 12.15+
## Attributes
- `gem_server['virtual_host_name']` - ServerName for Apache vhost. Default 'gems.domain'.
- `gem_server['virtual_host_alias']` - ServerAlias(es) for Apache vhost. Default 'gems'.
- `gem_server['directory']` - Filesystem location for the repository, default is /srv/gems.## Usage
Create files/default/packages, and copy gems to that directory.
Specify the gem source on clients via the command line, for example:
```shell
sudo gem source -a http://gems
sudo gem install rails --source http://gems
```Or use the source with gem_package resources in your chef recipes.
```ruby
gem_package "rails" do
source "http://gems"
end
```Use the gems::mirror recipe to mirror RubyForge. This will take a long time because the repository is 28k+ gems and over 5.5G. It will also override the remote_directory resource to not notify gem generate_index, and instead handle that in the cron job that does the rsync.
## License & Authors
Author:: Joshua Timberman [[email protected]](mailto:[email protected])
```text
Copyright:: 2009-2015, Chef Software, IncLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```