Coder Social home page Coder Social logo

puppet.s3fs-c's Introduction

iteego/puppet.s3fs-c

License

iteego/puppet.s3fs-c: puppet recipes for use with the s3fs sofware
                      in debian-based systems.

 Copyright 2012 Marcus Pemer and Iteego, Inc.
 Author: Marcus Pemer <[email protected]>

 iteego/puppet.s3fs-c is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 iteego/puppet.s3fs is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with iteego/puppet.s3fs.  If not, see <http://www.gnu.org/licenses/>.

S3fs-c puppet module

The s3fs-c puppet module allows you to mount Amazon S3 buckets as a part of your file system.

You would include the module under your puppet modules directory as a git submodule, like so:

cd <your puppet repo>/modules
git submodule add [email protected]:iteego/puppet.s3fs-c.git s3fs-c
git submodule update

Don't forget to commit your submodule ref in your parent repository!

Example Usage

After this is done, you can use the submodule like so:

include s3fs-c

.
.
.
# Run this once:
s3fs-c::s3fs_installation { 's3fs_installation': }

# Run one of these for each mount point you want
# note that the buckets have to exist
# the module does not automatically create them...
#
s3fs-c::s3fs_mount { 'some-unique-name-of-your-choice':
  bucket            => '<YOUR BUCKET NAME>',
  access_key        => '<YOUR ACCESS KEY>',
  secret_access_key => '<YOUR SECRET ACCESS KEY>',
  owner             => '<YOUR DESIRED OWNER USER NAME OF MOUNT POINT>',
  group             => '<YOUR DESIRED OWNER GROUP NAME OF MOUNT POINT>',
  mode              => '<YOUR DESIRED PERMISSIONS OF MOUNT POINT>',
}

After the resource has been put in place by puppet, assuming your credentials were correct, you will have a mounted bucket at /mnt/s3/<bucket-name>

Future Improvements

There are several areas where this module could be improved. Examples would include:

  • Support for other Operating systems than the Debian-based Linux distributions
  • More fine-grained control over mount options

You are welcome to contribute to this project by forking it and submitting pull requests to the project maintainers (organization: iteego, current maintaners: mpemer and mbjarland)

puppet.s3fs-c's People

Contributors

mpemer avatar ergonlogic avatar

Stargazers

Kevin Hatfield avatar

Watchers

 avatar James Cloos avatar Guillaume Boudrias avatar

Forkers

cloudxtreme

puppet.s3fs-c's Issues

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.