Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncrmro/astrocyte
ZFS backed Ubuntu hosts provisioned by Ansible, with KVM and Docker.
https://github.com/ncrmro/astrocyte
ansible docker kvm kvm-hypervisor ubuntu ubuntu1804 zfs
Last synced: 23 days ago
JSON representation
ZFS backed Ubuntu hosts provisioned by Ansible, with KVM and Docker.
- Host: GitHub
- URL: https://github.com/ncrmro/astrocyte
- Owner: ncrmro
- Created: 2018-06-22T03:43:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T20:13:30.000Z (over 2 years ago)
- Last Synced: 2023-03-04T09:18:37.530Z (over 1 year ago)
- Topics: ansible, docker, kvm, kvm-hypervisor, ubuntu, ubuntu1804, zfs
- Homepage:
- Size: 295 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Astrocyte
> ...\[are] cells in the brain and spinal cord. They perform many functions,
including ...supporitng the cell that form the blood–brain barrier,
provision of nutrients to the nervous tissue, maintenance of extracellular
ion balance, and a role in the repair and scarring process of the brain
and spinal cord following traumatic injuries.
>
> -- WikipediaThe main goal of Astrocyte in this context is to take baremetal hosts and
turn them into KVM hosts.Then provision any KVM base guests with admin credentials, snapshot and
then clone the base guest.This allows us spin up new pre configured guests for experimentation etc.
The main prequsite of Astrocyte is that you have a body of storage available. [Ocean](https://gitlab.com/jtco-io/ops/ocean)
is a project that utilizes ZFS to provide networked attached storage (NAS). This allows us to have as many hosts virtual
or baremetal that can all write to a single storage pool.All hosts should refer to this pool of data on a network file share. This means all virtual machine images are available
to any astrocyte host. The iso directory can be allowed to be written for from a [Transmission](https://transmissionbt.com/)
vm. Further work to get iSCI shares working are in order.This separation of concerns means we use standard OS Ubuntu with a minimal package set. Data backups and integreity are
handled by the Ocean hardware and repos respectivly. Althought Ocean does maintain the ability to have Astrocyte
deployed to it.Furthermore Astrocyte provisions the baremetal hosts and their respective VM guests with various tools to aid in security
and monitoring. These typically include Prometheus [Node exporter](https://github.com/prometheus/node_exporter) and
Graylog [Sidecar](https://docs.graylog.org/en/3.0/pages/sidecar.html).---
An additional goal is to provide cloud provider agnostic Virtual Machines
for things like off site backups, archives, kubernetes workers/ingress nodes.For instance all AWS servers should be secure and waiting for any domain specific ansible plays once astrocyte is done with them.
# Install project dependencies
```bash
pipenv install
``````bash
ansible-galaxy install ncrmro.kvm_host --force --roles-path=roles/galaxy
```### Ansible Vault
Create a password file```bash
mkdir ~/.ansible ; \
echo "mypassword" >> ~/.ansible/.vault_pass.txt && \
chmod 0444 ~/.ansible/.vault_pass.txt
```## Initial commands
ansible -i hosts -m ping all
ansible -i hosts -m shell -a 'uptime' all
### Maintenance
ansible-playbook -i hosts init.yml
k