Giter VIP home page Giter VIP logo

ansible-mastodon's Introduction

mastodansible

Playbook to set up Mastodon on RHEL/CentOS.

Prerequisites

  • Ansible 2.2 or higher

  • SELinux (i.e., not a Linode or Vultr VM)

This playbook assumes you already have a server (that you can SSH into as root) and a domain name pointing at it, and that you want a new Let’s Encrypt certificate for the domain.

Running

Edit inventory and set ansible_ssh_host to your domain.

ansible-galaxy install --roles-path roles -r roles/requirements.yml
ansible-playbook -i inventory toot.yml
  • You’ll be prompted for the path the public key that you want installed on the server at /home/mastodon/.ssh/authorized_keys.

  • You’ll be prompted for a password for the “mastodon” user.

  • You’ll be prompted for SMTP settings; the defaults are for SparkPost.

After it finishes you can deploy using Capistrano.

After reboot, when SELinux is enabled, you’ll need to run the post-deploy.yml playbook to configure SELinux correctly:

ansible-playbook -i inventory followup.yml -b -K

Troubleshooting

API Redirects

Like me you might be used to redirecting traffic from the naked domain to www. That won’t work here, since several of the API clients involved in federation do not follow redirects. If you try to 301 all your traffic from https://hello.cat to https://www.hello.cat, federation will not work. Nor will trying to log into a Mastodon client like Amaroq using hello.cat as the name of your instance.

ansible-mastodon's People

Contributors

dunn avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ansible-mastodon's Issues

user permissions

Right now the deploy user mastodon is part of the wheel group, since SSH-ing in as root is disabled and there's always the possibility of having to run another Ansible job that will require become.

But it would be nice to have the deploy user be unprivileged. The problem is that I want to have Capistrano restart Puma etc. post-deploy, which right now is done with systemctl.

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.