Coder Social home page Coder Social logo

oddtazz / datadisk-chef Goto Github PK

View Code? Open in Web Editor NEW

This project forked from springest/datadisk-chef

0.0 1.0 0.0 17 KB

[UNMAINTAINED] This cookbook formats and mounts a second disk (datadisk) on the specified mountpoint.

Ruby 89.59% HTML 10.41%

datadisk-chef's Introduction

This project is no longer maintained.

If you're interested in taking it over, we'd love to hear from you. Email [email protected], or check out one of its maintained forks.


datadisk Cookbook

This cookbook formats and mounts a second disk (datadisk) on the specified mountpoint. If you like living dangerously, you can try this with an existing dir by using ::existing_datadir, but that code is less polished (this is done in single user mode using rsync, which is somewhat finicky).

Requirements

  • a second disk following the format of /dev/[sx]v?d[a-z], e.g. /dev/sdb or /dev/xvde, containing a partition without filesystem

for the ::existing_datadir recipe:

  • an OS using upstart
  • recent, working (believe is what you do in church!) backups (though tested and with several failsafes in place, this cookbook still does pretty scary stuff.)

Attributes

datadisk::default

Key Type Description Default
['datadisk']['datapart'] string the target mountpoint e.g. /data or /opt /data
['datadisk']['doitlive'] Boolean Only for ::existing_datadir: whether to reboot immediately after the chef run false

Usage

datadisk::default

Just include datadisk in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[datadisk]"
  ]
}

datadisk::existing_datadir

Just include datadisk::existing_datadir in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[datadisk::existing_datadir]"
  ]
}

After the chef run, schedule a reboot on your desired point in time. Since the entire contents of 'datapart' needs to be rsync'd, downtime can be considerable.

Contributing

e.g.

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Milo de Vries

datadisk-chef's People

Contributors

lizgene avatar milodv avatar oddtazz avatar

Watchers

 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.