This repo contains configuration and code to deploy Noisebridge infrastrucutre.
Noisebridge infrastructure members follow the Rack Code of Conduct
Noisebridge infrastructure members protect the privacy and security of our systems and members.
Noisebridge infrastructure members keep services up and running.
Noisebridge infrastructure members should ensure that changes are made in a way that is reproducibile for others.
By documenting how systems are built in this repo, if a disk falis, a computer walks off, ansible can easily rebuild services and systems. This also helps a future systems spelunker who would like to know how a thing works and is set up.
Much of the code here is the Noisebridge infrastucture Ansible configuration. Ansible is used to automatically deploy configuration to the various nodes (VMs and hardware in the space).
This repo includes git submodules to vendor external source. You need to update them with this helper command.
./update-submodules.sh
Currently, this requires >= ansible 2.8.
Ansible is primarily distributed as a python3 package. So that we can consistently target the same ansible versions (which has knock-on effects, like what jinja2 templating filters are available), we also constrain the ansible version at the top of playbook documents with an assertion task.
Upstream instructions on installing Ansible
Deploying the entire thing should be possible with just one command:
ansible-playbook site.yml
Usually, you will want to limit your deployment to specific host groups:
ansible-playbook site.yml --limit noisebridge_net
You can be even more specific, for example, this deploys only to the noisebridge_net roles tagged website
:
ansible-playbook site.yml --limit noisebridge_net -t website
Some data is encrypted so that secrets (ie people's email addresses) aren't public. To edit files with secrets, first put the ansible vault password in a .vault-password
file in the root directory of the git repo, then run:
ansible-vault edit path/to/secrets.yml
To get the vault password, check https://www.noisebridge.net/wiki/Accounts to see who has it.
In order to deploy to machines remotely, you will need to configure a bastion bouncer.
In your ~/.ssh/config
add the folowing.
Host *.noise
User YOU
ProxyCommand ssh pegasus.noisebridge.net -W %h:%p
Ansible uses collections to provide groups of roles. These are included inline in the /collections
directory in this repo. The list of collections and versions are maintained in /requirements.yml
.
To update the inline collection vendoring:
ansible-galaxy collection install -r requirements.yml --upgrade
To update the inline role vendoring, first update the version in requirements.yml
then:
ansible-galaxy role install -r requirements.yml
See https://discuss.noisebridge.info/c/guilds/rack for guidance, specifically the sticky.