GithubHelp home page GithubHelp logo

luisilva / puppet-fpsync Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 71 KB

Puppet module for deploying fpsync jobs on a schedule

Ruby 6.26% HTML 14.05% CSS 36.04% JavaScript 20.51% Puppet 8.36% Python 14.78%

puppet-fpsync's Introduction

schedule

fpsync

This module installs fpsync which is a transfer utility that comes bundled with the fpart application. This module will simply ensure that fpart is install and by proxy fpsync is available and provide a mechanism to schedule jobs via crontab.

Table of Contents

  1. Description
  2. Usage
  3. Limitations
  4. Development

Description

The fpart utility helps you sort file trees and pack them into bags (called "partitions").

fpsync synchronize directories in parallel using fpart and rsync.

The job define type will orchestrate the the configuration of data synchronization jobs. This scheduler leverages the cron utility in puppet in order to run the fpsync job on the desired interval.

Prerequisites

This has been tested with 'torrancew/cron', '0.1.0'. This most cron modules use very similar parameters.

Beginning with fpsync

including this module will ensure that fpart is install making fpsync available for scheduling cron jobs.

Usage

Install fpsync

include fpsync

fpsync jobs

  • Using job defined type to schedule a cron job to repeatedly attempt file synchronization.

puppet

class { 'fpsync::job':
    source      => '/mnt/source'
    destination => '/backup/destination'
    workers     => ['worker01','worker02']
    hour        => 1
    minute      => 0
}

Hiera

fpsync::job:
    source: '/mnt/source'
    destination: '/backup/destination'
    workers:
      - 'worker01'
      - 'worker02'
    hour: 1
    minute: 0

More details about classes here: INFO

Limitations

This module is designed for a CentOS 7 environment. Please feel free to make it work for your needs by contributing to this code base.

Development

Feel free to add feature and contribute to this module.

puppet-fpsync's People

Contributors

luisilva 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.