Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

github-enterprise (6) Versions 2.0.0

Configures utilities for Github Enterprise

Policyfile
Berkshelf
Knife
cookbook 'github-enterprise', '~> 2.0.0', :supermarket
cookbook 'github-enterprise', '~> 2.0.0'
knife supermarket install github-enterprise
knife supermarket download github-enterprise
README
Dependencies
Changelog
Quality 17%

Github Enterprise Cookbook

Build Status

Facilities for automation around Github Enterprise.

Currently, just backup and restore.

Supported Platforms

  • Ubuntu 12.04
  • Ubuntu 14.04
  • CentOS 6.4
  • CentOS 6.5

Usage

Backup

Define a resource block in the recipe you are constructing, passing appropriate values for your environment. Below is an example showing all the defaults.

github_backup 'default' do
  hostname 'github.example.com'
  dir '/opt/github-backup-utils'
  data_dir '/opt/github-backup-data'
  user 'root'
  group 'root'
  snapshots 10
  cron 'hourly'
  log_dir '/var/log/github-backup'
  action :create
end

Parameters

  • hostname - Hostname of the Github Enterprise server
  • dir - Directory into which the Backup Tools will be installed
  • data_dir - Directory into which data (backup data) will be stored (resource name will be appended to this path)
  • user - User / owner of directories, and the user for scheduled tasks (if enabled)
  • group - Group for directory permissions
  • snapshots - Number of snapshots to retain
  • cron - Either '@hourly' or '@daily' or '@weekly'.
  • log_dir - Directory used for log output (resource name will be appended to this path)
  • action - The following actions are supported: create, delete

Its important to note that the resource name (in this case: 'default') will be appended to the data_dir path, allowing you to define many Github Enterprise resources on a single backup host.

License and Authors

Copyright:: 2016 Rakuten, Inc.

Licensed 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 at

    http://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.

Dependent cookbooks

git >= 0.0.0
cron >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

1.0.1

Update custom resources for better names and remove name conflicts

1.0.0

Move to using custom resources for all setup and config

0.1.1

Release with Travis-ci support for foodcritic and chef-syntax

0.1.0

Initial release of github-enterprise

Collaborator Number Metric
            

2.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

2.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

2.0.0 failed this metric

FC064: Ensure issues_url is set in metadata: github-enterprise/metadata.rb:1
FC065: Ensure source_url is set in metadata: github-enterprise/metadata.rb:1
FC066: Ensure chef_version is set in metadata: github-enterprise/metadata.rb:1
FC069: Ensure standardized license defined in metadata: github-enterprise/metadata.rb:1
FC108: Resource should not define a property named 'name': github-enterprise/resources/backup_cron.rb:22
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:22
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:23
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:24
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:25
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:26
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:27
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:28
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:29
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:30
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:31
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_config.rb:32
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:22
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:23
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:24
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:25
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:26
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_cron.rb:27
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:22
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:23
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:24
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:25
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:26
FC117: Do not use kind_of in custom resource properties: github-enterprise/resources/backup_utils.rb:27
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

2.0.0 passed this metric

Testing File Metric
            

2.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

2.0.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number