added configuration and documentation for development environment

This commit is contained in:
2024-09-08 18:39:14 +01:00
parent 0d67456e35
commit b4a6777c0e
3 changed files with 11 additions and 12 deletions

3
.gitignore vendored
View File

@@ -7,4 +7,5 @@ services/zigbee2mqtt/volumes/*
*.env
.vscode/settings.json
gitignore/*
**.local
**.local
ansible/inventory.yml

View File

@@ -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.
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:
- IOT
Using [code-server docker container](#code-server) for Development / Maintenance.
All host configuration are executed using [ansible](#ansible-roles).
<!-- omit in toc -->
## Table of Contents
@@ -30,7 +26,7 @@ All host configuration are executed using [ansible](#ansible-roles).
- [Docker devices](#docker-devices)
- [Proxmox - lxc container](#proxmox---lxc-container)
- [Operation System](#operation-system)
- [Packages and Requirements](#packages-and-requirements)
- [Development, Maintenance and Deployment](#development-maintenance-and-deployment)
- [Ansible roles](#ansible-roles)
- [myInfra.dev.homesrv01.core](#myinfradevhomesrv01core)
- [myInfra.dev.homesrv01](#myinfradevhomesrv01)
@@ -260,11 +256,11 @@ Codename: noble
6.8.4-3-pve
```
## Packages and Requirements
## Development, Maintenance and Deployment
```bash
apt install ansible
```
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.
Ansible scripts can be used locally, remotely or by gitea actions.
## 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
```
``` bash
```bash
# check auto update scripts logs
journalctl -r -t auto-update
```

2
ansible.cfg Normal file
View File

@@ -0,0 +1,2 @@
[defaults]
inventory = ansible/inventory.yml