-
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.
* sync * Tested clamav for every supported distribution * Add firewall rules; Sync * Improve hcloud interface
- Loading branch information
Showing
37 changed files
with
871 additions
and
307 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -358,3 +358,5 @@ $RECYCLE.BIN/ | |
|
||
.keys/* | ||
!.keys/.gitkeep | ||
|
||
_examples.tar.gz |
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 |
---|---|---|
@@ -1,15 +0,0 @@ | ||
[submodule "roles/ansible-role-fail2ban"] | ||
path = roles/ansible-role-fail2ban | ||
url = https://github.com/secshellnet/ansible-role-fail2ban | ||
[submodule "roles/ansible-role-sshd"] | ||
path = roles/ansible-role-sshd | ||
url = https://github.com/secshellnet/ansible-role-sshd | ||
[submodule "roles/ansible-role-nginx"] | ||
path = roles/ansible-role-nginx | ||
url = https://github.com/secshellnet/ansible-role-nginx | ||
[submodule "roles/ansible-role-postgresql"] | ||
path = roles/ansible-role-postgresql | ||
url = https://github.com/geerlingguy/ansible-role-postgresql | ||
[submodule "roles/ansible-role-redis"] | ||
path = roles/ansible-role-redis | ||
url = https://github.com/geerlingguy/ansible-role-redis | ||
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[defaults] | ||
inventory = inventory.yaml | ||
interpreter_python = /usr/bin/python3 | ||
host_key_checking = False | ||
private_key_file = .keys/id_ecdsa | ||
vault_identity_list = all@.keys/all | ||
vault_identity_list = all@.keys/all | ||
|
||
# only during development | ||
host_key_checking = False |
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,42 @@ | ||
## Example configuration | ||
|
||
### [ansible-role-postgresql](https://github.com/geerlingguy/ansible-role-postgresql) | ||
```yaml | ||
# host_vars/<hostname>/vars.yaml | ||
--- | ||
postgresql_databases: | ||
- name: nextcloud | ||
state: present | ||
|
||
# synapse requires lc_collate and lc_ctype to be set to C | ||
- name: synapse | ||
lc_collate: C | ||
lc_ctype: C | ||
state: present | ||
|
||
postgresql_users_u: | ||
- name: nextcloud | ||
db: nextcloud | ||
state: present | ||
|
||
- name: synapse | ||
db: synapse | ||
state: present | ||
``` | ||
```yaml | ||
# host_vars/<hostname>/vault | ||
--- | ||
postgresql_users_e: | ||
- name: nextcloud | ||
password: s3cr3t-p4ssw0rd | ||
|
||
- name: synapse | ||
password: s3cr3t-p4ssw0rd | ||
``` | ||
- You can spawn a postgres shell using: `sudo -u postgres psql`. | ||
- Use `\l` to list databases, `\du` to list users and `\dt` to list tables. | ||
- Use `\c <database>` to connect to a database | ||
- You can also connect using tcp (like any other application): | ||
`psql -h 127.0.0.1 -U <user> <database>` |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
worker_user: worker | ||
|
||
# hcloud defaults for cloud server | ||
server_type: cax11 # this is arm64 | ||
location: hel1 | ||
image: ubuntu-22.04 | ||
enable_ipv4: false | ||
enable_ipv6: true | ||
|
||
# ansible-role-postgresql host based authentication defaults to md5 | ||
postgresql_auth_method: scram-sha-256 | ||
|
||
# features / roles to install | ||
install_nginx: false | ||
install_postgresql: false | ||
install_redis: false | ||
|
||
# commands that should trigger auditd | ||
auditd_commands: | ||
- /usr/bin/passwd | ||
- /usr/bin/wget | ||
- /usr/bin/curl | ||
- /usr/bin/base64 | ||
- /bin/nc | ||
- /bin/ncat | ||
- /usr/bin/ssh | ||
- /usr/bin/scap | ||
- /usr/bin/sftp | ||
- /usr/bin/ftp | ||
- /usr/bin/socat | ||
- /usr/sbin/tcpdump | ||
- /usr/sbin/wireshark | ||
- /usr/sbin/tshark | ||
- /usr/sbin/rawshark | ||
- /usr/bin/rdesktop | ||
- /usr/bin/nmap | ||
- /usr/bin/mknod | ||
- /sbin/modprobe | ||
- /sbin/insmod | ||
- /sbin/lsmod | ||
- /sbin/rmmod |
Oops, something went wrong.