GithubHelp home page GithubHelp logo

clongbupt / github-enterprise-cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rakutentech/github-enterprise-cookbook

0.0 2.0 0.0 198 KB

Github Enterprise Chef Cookbook

License: Other

Ruby 91.84% HTML 8.16%

github-enterprise-cookbook's Introduction

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:: 2014 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.

github-enterprise-cookbook's People

Contributors

jzohrab avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.