added configuration and documentation for development environment
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,4 +7,5 @@ services/zigbee2mqtt/volumes/*
|
|||||||
*.env
|
*.env
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
gitignore/*
|
gitignore/*
|
||||||
**.local
|
**.local
|
||||||
|
ansible/inventory.yml
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -4,16 +4,12 @@ Welcome to homesrv01.dev.lan git page.
|
|||||||
|
|
||||||
This repository serves to document and maintain the server where the home assistant runs.
|
This repository serves to document and maintain the server where the home assistant runs.
|
||||||
|
|
||||||
The idea was to create a server with docker where it would be possible to isolate all servers, services and communications related to home automation at network level.
|
The idea was to create a server with docker where it would be possible to isolate all servers, services and communications related to home automation at network level.
|
||||||
|
|
||||||
The server itself is on its own vlan (Vlan: homesrv) but requires communication with the Vlans:
|
The server itself is on its own vlan (Vlan: homesrv) but requires communication with the Vlans:
|
||||||
|
|
||||||
- IOT
|
- IOT
|
||||||
|
|
||||||
Using [code-server docker container](#code-server) for Development / Maintenance.
|
|
||||||
|
|
||||||
All host configuration are executed using [ansible](#ansible-roles).
|
|
||||||
|
|
||||||
<!-- omit in toc -->
|
<!-- omit in toc -->
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
@@ -30,7 +26,7 @@ All host configuration are executed using [ansible](#ansible-roles).
|
|||||||
- [Docker devices](#docker-devices)
|
- [Docker devices](#docker-devices)
|
||||||
- [Proxmox - lxc container](#proxmox---lxc-container)
|
- [Proxmox - lxc container](#proxmox---lxc-container)
|
||||||
- [Operation System](#operation-system)
|
- [Operation System](#operation-system)
|
||||||
- [Packages and Requirements](#packages-and-requirements)
|
- [Development, Maintenance and Deployment](#development-maintenance-and-deployment)
|
||||||
- [Ansible roles](#ansible-roles)
|
- [Ansible roles](#ansible-roles)
|
||||||
- [myInfra.dev.homesrv01.core](#myinfradevhomesrv01core)
|
- [myInfra.dev.homesrv01.core](#myinfradevhomesrv01core)
|
||||||
- [myInfra.dev.homesrv01](#myinfradevhomesrv01)
|
- [myInfra.dev.homesrv01](#myinfradevhomesrv01)
|
||||||
@@ -260,11 +256,11 @@ Codename: noble
|
|||||||
6.8.4-3-pve
|
6.8.4-3-pve
|
||||||
```
|
```
|
||||||
|
|
||||||
## Packages and Requirements
|
## Development, Maintenance and Deployment
|
||||||
|
|
||||||
```bash
|
Using gitea action for continuous deploys, visual studio code ([code workspace](./.code-workspace)) on my machine for maintenance and development related to hosting server, and a docker container with code server for editing docker container volumes.
|
||||||
apt install ansible
|
|
||||||
```
|
Ansible scripts can be used locally, remotely or by gitea actions.
|
||||||
|
|
||||||
## Ansible roles
|
## Ansible roles
|
||||||
|
|
||||||
@@ -292,7 +288,7 @@ sudo ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.
|
|||||||
sudo ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 ansible/site.yml
|
sudo ansible-playbook --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 ansible/site.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
# check auto update scripts logs
|
# check auto update scripts logs
|
||||||
journalctl -r -t auto-update
|
journalctl -r -t auto-update
|
||||||
```
|
```
|
||||||
|
|||||||
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = ansible/inventory.yml
|
||||||
Reference in New Issue
Block a user