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

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ services/zigbee2mqtt/volumes/*
.vscode/settings.json
gitignore/*
**.local
ansible/inventory.yml

View File

@@ -10,10 +10,6 @@ The server itself is on its own vlan (Vlan: homesrv) but requires communication
- 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