GithubHelp home page GithubHelp logo

alanpq / nac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uccnetsoc/nac

0.0 1.0 0.0 6.16 MB

Netsoc-as-Code - Infrastructure-as-Code for UCC Netsoc. The Ansible playbooks that power all of our backend

Home Page: https://wiki.netsoc.co/en/sysadmin/netsoc-as-code

Python 20.07% Shell 27.56% HTML 48.29% Jsonnet 4.07%

nac's Introduction

I'm a new SysAdmin, what the heck do I do?

  • ssh into the Ansible control server (currently control.netsoc.co:2222)

    • ssh <username>@control.netsoc.co -p 2222 -i <path to ssh key>
    • If you have not supplied an SSH key to the Head SysAdmin already:
      • Open a PR adding your username and key to setup-control-host.yml
  • Clone this repo

  • Run ./start-dev.sh inside the cloned folder (or ./start-dev.sh zsh to use zsh instead of bash)

    • You will need to run ./start-dev.sh to setup the correct Python packages and environment variables. You must do this before beginning any development/deployment
    • You will be able to tell you have done this when your terminal prompt looks like this:
      • (NaC) <user>@feynman:~/NaC#
  • You will need a keys/ folder which contains SSH keys to target all physical and virtual machines. Ask the Head SysAdmin for this.

    • Do NOT commit them or remove the keys/ clause from .gitignore.
    • Do NOT share them with people who are not SysAdmins
    • Do NOT leave them sitting on a random server somewhere
  • You can peek and edit the vault using ./vault-peek.sh and ./vault-edit.sh

  • You can list *.vm.netsoc.co by using ./vm-list.sh

  • You can ssh into *.vm.netsoc.co by running ./vm-ssh.sh <hostname>, i.e ./vm-ssh.sh web.infra.netsoc.co

  • The Proxmox Web UI is available at control.netsoc.co:8006. You may need to type thisisunsafe (if using Chrome) to get past the SSL warning

  • For your development, you can use sshfs / VSCode Remote / vim on the control server / a git branch.

    • You will need to run your playbooks on the control server

I want to contribute but I'm not a SysAdmin?

  • Consider making an issue or contact us in #servers in our Discord
    • We'll welcome any help!

I like this repo and want to learn more about UCC Netsoc

  • Check out our wiki

Important

This repo currently contains both playbooks for managing 2019/2020 bare-metal infra and 2020/2021 Proxmox infra. Do not get them confused, have a look at ./hosts to see what's going on.

nac's People

Contributors

ocanty avatar ericm avatar strum355 avatar jac avatar gal avatar arthanjans avatar mloc avatar

Watchers

James Cloos 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.