Code Monkey home page Code Monkey logo

pihomecloud's Introduction

Ansible playbook for a local raspberry PI webserver, private cloud

This Playbook helps to build a local server, using only software respecting your privacy and security is the target of this repo

roles

  • base : base installation of archlinux
  • hardened : hardening based of cis
  • mysql : mariadb installtion on archlinux (master/slave groups used for replication)
  • usbstorage : add an external usb storage with luks encryption
  • localca : local pki used for non public serts or users certificates
  • letsencrypt : free public certificate, with auto renewal
  • webserver : secured nginx server with php-fpm backend installed, naxsi Web Application Firewall included
  • nextcloud : no google account, manaing contacts, files, tasks privacy rulezzz
  • ssmtp : local sendmail usage, with ssl for external mail account
  • snort : Network Intrusion Detection & Prevention System
  • domoticz : local domotic server with open zwave, working with razberry daughter card or usb stick
  • dlna : private dlna server
  • packt : download daily free ebook, putting it in nextcloud
  • monit : lightweight monitoring
  • iptables : local firewall, preventing unwanted intrusion on your server
  • fail2ban : Fail2ban scans log files and bans IPs that show the malicious signs
  • read_only_root : used with localstorage, prevents write to your SD card.

Installation

http://archlinuxarm.org/platforms/armv6/raspberry-pi https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3

  • on the controller : sudo pacman -Sy python2-netdev
  • Intall ansible deps (defaults pass : ssh : alarm ; sudo : root)
ssh alarm@raspberrypi 'su -c "pacman -Sy --noconfirm sudo python python2"'
  • prepare run env
ansible-playbook -i raspberrypi init_once.yml --ask-pass --ask-become-pass
  • form my PC
ssh-copy-id {{ localuser }}@raspberrypi
/etc/ansible.cfg
scp_if_ssh = True

Run ansible

ansible-playbook -i hosts raspberrypi.yml --ask-become-pass
ansible-playbook -i hosts raspberrypi.yml

TODO

  • correct documentation

#ME I'm system administrator building and maintaining security environments under Linux, loving open source software.

This playbook is used for my private servers and maintained on my free time.

"It's not because I am paranoid that they are not all after me." Pierre Desproges, French Humorist.

pihomecloud's People

Contributors

pihomecloud avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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