This commit is contained in:
Petar Cubela
2025-10-13 00:07:28 +02:00
parent b1b4b12e1d
commit 221ac5f923
22 changed files with 474 additions and 139 deletions

BIN
projects/sbx/.DS_Store vendored

Binary file not shown.

View File

@@ -0,0 +1,44 @@
## Sources
- [it-glue api](https://api.itglue.com/developer/)
- [it-glue api - getting started](https://help.itglue.kaseya.com/help/Content/1-admin/it-glue-api/getting-started-with-the-it-glue-api.html)
## base python template
```python3
import requests
import json
import os
from dotenv import load_dotenv
# Load the .env file so the API Token can be read by the script
load_dotenv()
# Set the 'token' variable to the value of 'api_token' from the .env file
# Rename file .env.example to .env and add your own API token
# Remember to add .env to your .gitignore file to avoid uploading the token to your Git repo
token = os.getenv('api_token')
# Set variables to match your own IT Glue installation
itglue_protocol = 'https'
itglue_host = 'api.eu.itglue.com'
itglue_port = '443'
# Build the URL for the API request
url = itglue_protocol+'://'+itglue_host+':'+itglue_port+"/organizations?sort=id"
# Set the payload and headers for the API request
payload = ""
headers = {
'Content-Type': 'application/vnd.api+json',
#'Authorization': 'Token '+ token
'x-api-key': 'api_token'
}
# Send the API request and display the result in pretty json format
response = requests.request("GET", url, headers=headers, data=payload)
pretty_json = json.loads(response.text)
print (json.dumps(pretty_json, indent=4))
```

Binary file not shown.

Binary file not shown.

View File

@@ -7,7 +7,7 @@ geometry: margin=2cm
output: pdf_document
---
# Aufgabenblatt 00 - base commands & user/group management
# Aufgabenblatt 01 - base commands & user/group management
In diesem Blatt lernst du grudnlegende Basis Befehle fuer die Verwaltung und 'Bedienung' eines Linux Servers ohne Bildschirmumgebung.
@@ -25,23 +25,7 @@ Um Datein zu bearbeiten benutze einen beliebigen Text Editor, wie zum Beispiel `
- Lerne diese, sodass im sie im Schlaf bekannt sind.
1. cd
1. ls
1. mv
1. cp
1. rm
1. mkdir
1. rmdir
1. echo
1. cat
1. grep
1. touch
1. find
1. fdisk
1. ls***
1. cut
1. sort
1. uniq
cd , ls , mv , cp , rm , mkdir , rmdir , echo , cat , grep , touch , find , fdisk , ls*** , cut , sort , uniq, ip
## Aufgabe 2 - Create, modify and delete users/groups

Binary file not shown.

View File

@@ -0,0 +1,23 @@
Hey Holger, was haelst du davon, wenn wir  interessierten Auszubildenden aktiv was beibringen mit Uebungsblaettern und Regelmaessigen zyklischen Besprechungen. Ich wuerde eine Testumgebung im Labor bauen mit User management fuer die Azubis und mit Windows und Linux Servern nach Bedarf (automatisiert mit terraform, kein grosser zeitaufwand). Ich wuerde Uebungsblaetter schreiben - vorrangig mit Bezug zu Linux, da die Umgebung leichter zu verwalten ist und mir das mehr liegt, aber versuchen dies immer mit fuer die Arbeit relevanten Konzepten zu verbinden, AD joins, DC/AD setup, smb shares, zertifikat management, firewall, subnetting, etc.  ![🙂](https://statics.teams.cdn.office.net/evergreen-assets/personal-expressions/v2/assets/emoticons/smile/default/60_f.png?v=v83). 
Themen, die mir bisher eingefallen sind waeren:
- firewalls and routing
- subnetting
- vlans
- join a linux host to a ms ad
- setup ms dc/ad
- powershell usage and scripting
- smb server setup and joining with ad
- databases (mariadb/mysql)
- web servers
- certificate management
- mail server
- security and network tools like nmap or tcpdump
- and other things
Ich habe ein Uebungsblaetter spontant letzte Woche geschrieben, und habe angefangen weiter zu schreiben. (in meiner Freizeit, alles ![🙂](https://statics.teams.cdn.office.net/evergreen-assets/personal-expressions/v2/assets/emoticons/smile/default/60_f.png?v=v83)) 
Meine bisherigen Gedanken dazu kannst du auf unsere gitea nachlesen: [https://gitea.softbox.net/CubelaPetar/tofu-pve-lnx](https://gitea.softbox.net/CubelaPetar/tofu-pve-lnx "https://gitea.softbox.net/cubelapetar/tofu-pve-lnx") 
Was haelst du davon? Waere das zu uebertrieben? Oder haelst du die learning-by-doing Methode sinnvoller? ![🙂](https://statics.teams.cdn.office.net/evergreen-assets/personal-expressions/v2/assets/emoticons/smile/default/60_f.png?v=v83) Kannst gerne sagen, wenn das keine gute Idee ist.