kaihei777.ansible_role_goofys

ansible_role_goofys

Goofys lets you mount an S3 bucket as a file system.

ansible_role_goofys on Galaxy

Requirements

  • An Amazon AWS account
  • An S3 bucket
  • EC2 virtual server(s) using RedHat
  • AWS Credentials (aws_access_key_id, aws_secret_access_key)
  • Go language
  • FUSE

Role Variables

No variables are needed.

Dependencies

You can also build from source using Go version 1.9 or later.

Example Playbook

Here's an example of how to use this role:

- hosts: servers
  roles:
  - { role: geerlingguy.repo-epel }
  - { role: kaihei777.ansible_role_goofys }

Usage

To set up the Goofys, you can follow these steps:

  1. First, create or edit the AWS credentials file:

    $ cat ~/.aws/credentials
    [default]
    aws_access_key_id = AKID1234567890
    aws_secret_access_key = MY-SECRET-KEY
    
  2. Then use Goofys to mount your bucket:

    $ $GOPATH/bin/goofys <bucket> <mountpoint>
    $ $GOPATH/bin/goofys <bucket:prefix> <mountpoint> # to mount only objects under a specific prefix
    

You can also set up your credentials using the AWS CLI or by using the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.

To automatically mount the S3 bucket on startup, ensure the credentials are set for root, and add the following line to /etc/fstab:

goofys#bucket   /mnt/mountpoint        fuse     _netdev,allow_other,--file-mode=0666,--dir-mode=0777    0       0

Got more questions?

You can check questions other people asked for more information.

License

This project is licensed under MIT / BSD.

Author Information

This role was created in 2019 by Kaihei Sameshima.

Informazioni sul progetto

Goofys allows you to mount an S3 bucket as a filey system.

Installa
ansible-galaxy install kaihei777.ansible_role_goofys
Licenza
other
Download
1.5k
Proprietario