Code Monkey home page Code Monkey logo

ansible's Introduction

Ansible for EELLAK Infra tasks

Setup

Protected secrets

  1. Setup the following env var in your .{bash,zsh}rc file:
export ELLAK_ANSIBLE_SECRETS="/path/to/ansible-secrets"

Playbooks

Μέσα στο φάκελο playbooks/ βρίσκονται τα ξεχωριστά playbooks που τρέχουν για κάθε host και μερικά για κάποιες συγκεκριμένες διεργασίες, πχ το μηνιαίο newsletter.

Υπάρχουν σχόλια εκεί που χρειάζεται.

Upgrade.yml

Προς το παρόν μόνο Debian/Ubuntu συστήματα υποστηρίζονται. Ο κάθε server χρειάζεται να έχει εγκατεστημένα τα:

python
python-apt
aptitude
sudo

Θα πρέπει επίσης να υπάρχει χρήστης ο οποίος να έχει passwordless sudo, διαφορετικά το playbook θα πρέπει να γίνει invoke με το -K flag.

Παράδειγμα update όλων των μηχανημάτων που είναι στο debian group:

ansible-playbook playbooks/upgrade.yml -e "host=debian"

Add new host

Για την προσθήκη ενός host στο internal δίκτυο του οκεανού, πρέπει να γίνουν 3 αλλαγές.

  1. Προσθήκη host στο αρχείο hosts
  2. Προσθήκη host στο dnsmasq.conf ώστε να γίνει assign στατική private IP
  3. Προσθήκη του postinstall role στο playbook του host ώστε να σεταριστεί το resolv.conf με τα στοιχεία του internal DHCP (dnsmasq)
  4. Δημιουργία αρχείου host_vars/name.ellak.gr με περιεχόμενα:
    fqdn: name.ellak.gr
    hostname: name
    

TODOs

  • Document how host_vars works with protected_secret.

ansible's People

Contributors

axilleas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kastallion

ansible's Issues

Role phplist

  • Download and extract from http://prdownloads.sourceforge.net/phplist/phplist-3.2.0.tgz
  • Copy phplist-3.2.0/public_html/lists/ to the www dir
  • Copy bin/phplist somewhere accessible
  • Copy the template of config.php to /path/to/config/config.php
  • Copy the cron.j2 template for queue processing

Add monit role

Useful for:

  • database restart (wiki)
  • php-fpm restart (www2)

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.