-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
141 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,33 +5,31 @@ | |
Changes settings on the virtualization host <b>Proxmox</b>. | ||
|
||
The following steps will be performed: | ||
- Update login manager configuration to turn off the screen without suspending | ||
- Updates the login manager configuration to disable hardware buttons<br>*PowerKey, SuspendKey, HibernateKey, etc.* | ||
- Remove Proxmox enterprise repository | ||
- Add Proxmox no-subscription repository | ||
- Enable the Web UI on port 443 | ||
|
||
For the last point *(Web UI on port 443)* the recommendation from the [official documentation](https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy) was used. | ||
|
||
## Workspace | ||
## Preparation | ||
|
||
Open the workspace file `ansible-proxmox.code-workspace` to access the predefined build tasks with Visual Studio Code. | ||
Configure on the Proxmox an **ACME Challenge** first, so the certificate `/etc/pve/local/pveproxy-ssl.pem` is created. The playbook checks if this file exists, the web server will not start otherwise. | ||
|
||
Predefined build tasks: | ||
| Task | Description | Command | | ||
| ------------ | ------------------------------------------ | -----------------: | | ||
| 🚀 Deploy | Run the main playbook with all tasks. | `ansible-playbook` | | ||
| 🧪 Check | Check the code without making any changes. | `ansible-playbook` | | ||
| 🔑 Edit vault | Edits the encrypted vault file. | `ansible-vault` | | ||
> This project is intended for my home proxmox server and should not be used on production servers. | ||
## Requirements | ||
## Versions | ||
|
||
Prerequisites for this workspace. | ||
The following versions were tested: | ||
|
||
- Ansible package | ||
- Vault file in your home directory (`~/.vault`) | ||
✅ Proxmox VE 7.4-xx | ||
|
||
## Security | ||
## Workspace | ||
|
||
Security-critical data such as passwords or keys are encrypted with Ansible Vault. | ||
Open the workspace file `proxmox.code-workspace` to access the predefined build tasks with Visual Studio Code. | ||
|
||
> If you read this and find something, I did something wrong and you can email me at [[email protected]](mailto:[email protected]). | ||
Predefined build tasks: | ||
| Task | Description | Command | | ||
| -------- | ------------------------------------------ | -----------------: | | ||
| 🚀 Deploy | Run the main playbook with all tasks. | `ansible-playbook` | | ||
| 🧪 Check | Check the code without making any changes. | `ansible-playbook` | |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
], | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "🚀 Deploy", | ||
"detail": "Run the main playbook with all tasks.", | ||
"type": "shell", | ||
"command": "ansible-playbook --inventory inventory.yml playbook.yml", | ||
"args": [], | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": false | ||
} | ||
}, | ||
{ | ||
"label": "🧪 Check", | ||
"detail": "Check the code without making any changes.", | ||
"type": "shell", | ||
"command": "ansible-playbook --inventory inventory.yml playbook.yml --check", | ||
"args": [], | ||
"problemMatcher": [], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# {{ ansible_managed }} | ||
|
||
user www-data; | ||
worker_processes auto; | ||
pid /run/nginx.pid; | ||
include /etc/nginx/modules-enabled/*.conf; | ||
|
||
events { | ||
worker_connections 768; | ||
} | ||
|
||
http { | ||
|
||
sendfile on; | ||
tcp_nopush on; | ||
types_hash_max_size 2048; | ||
|
||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_prefer_server_ciphers on; | ||
|
||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log; | ||
|
||
gzip on; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.