Giter Site home page Giter Site logo

valar-setup's Introduction

Automating my cloud server.

Set up Ansible

Ansible keeps changing things. It needs to be managed:

$ virtualenv -p /usr/bin/python3.11 env
$ source env/bin/activate
$ pip install -r requirements.txt

$ ansible -i inventory all -m ping

Use

To set up a fresh server, create the user and set up sshd:

$ ansible-playbook -i inventory -l ulmo playbook-init.yml

Then run the rest of the setup:

$ ansible-playbook -i inventory -l ulmo -K --vault-id .vault_pass playbook.yml

Secrets

$ echo "password" > .vault_pass # not actual password :)
$ ansible-vault edit --vault-id .vault_pass vars/vault.yml

Run just one playbook

$ ansible-playbook -i inventory -l ulmo -K --vault-id .vault_pass playbooks/sites/org.tasuki.gallery.yml

Manually

Afaics right now, the following need manual setup:

  • gallery.tasuki.org: all teh photo files
  • tmp.tasuki.org: all teh random files
  • domains.tasuki: the listed.json

Develop

$ sudo apt install virtualbox vagrant
$ vagrant up

Provision

$ vagrant provision
$ ansible-playbook -i inventory -l dev --vault-id .vault_pass playbook.yml

Test

  1. Put something along the lines of 127.0.0.1 tasuki.org into /etc/hosts.
  2. Visit something like http://tasuki.org:1080/ or https://tasuki.org:1443/

valar-setup's People

Contributors

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