GithubHelp home page GithubHelp logo

cloudev's Introduction

cloudev

Ansible script to create cloud dev environment for fresh cloud servers

What it Does

  • Creates a non-root user with specified password and adds to sudoers
  • Disables root ssh access
  • Diables password authentication on ssh
  • Installs and configures ufw
    • Only allows http, https and ssh
  • Installs and configures fail2ban, installs whois as well
  • Installs rkhunter
  • Installs Postfix
  • Installs and configures logwatch
    • Changes cron to weekly
  • Installs my development environment
    • Installs dev packages
    • Installs my dotfiles and other config settings

Prerequisites

  • Ansible is required on local machine
  • Account on a cloud prodvider - Digital Ocean is the only provider that has been tested

Setup

Spin up a new server on your cloud provider with your ssh key tied to the root user.

You will need a password for your new non-root user that will be generated on your new cloud server:

pip install passlib
python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"

Copy group_vars/cloud_servers_example to group_vars/cloud_servers and change variables. Add the above generated password as well.

Copy hosts_example to hosts and update ip addresses to the generated cloud servers.

Deployment

ansible-playbook playbook.yml -u root

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

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.