20251013
This commit is contained in:
BIN
projects/sbx/.DS_Store
vendored
BIN
projects/sbx/.DS_Store
vendored
Binary file not shown.
44
projects/sbx/it-glue/api_with_python.md
Normal file
44
projects/sbx/it-glue/api_with_python.md
Normal 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))
|
||||
```
|
||||
BIN
projects/sbx/student/.DS_Store
vendored
BIN
projects/sbx/student/.DS_Store
vendored
Binary file not shown.
BIN
projects/sbx/student/exercises/.DS_Store
vendored
BIN
projects/sbx/student/exercises/.DS_Store
vendored
Binary file not shown.
@@ -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
|
||||
|
||||
|
||||
BIN
projects/sbx/student/exercises/template/.DS_Store
vendored
Normal file
BIN
projects/sbx/student/exercises/template/.DS_Store
vendored
Normal file
Binary file not shown.
23
projects/sbx/student/text.md
Normal file
23
projects/sbx/student/text.md
Normal 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. .
|
||||
|
||||
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 )
|
||||
|
||||
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?  Kannst gerne sagen, wenn das keine gute Idee ist.
|
||||
Reference in New Issue
Block a user