This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 80 Update README.md * Add prepare_dev_setup role and fix lints * 80 Move torrent stack services * 80 Refactor volumes * 80 Add duckdns domain in compose files * 80 Refactor * 80 Fix lint errors * 80 Test ansible make module for pigpio * 80 Fix yaml indentation * 80 Add ansible.posix * 80 Fix ansible lints * 80 community.docker collection --------- Co-authored-by: veerendra2 <[email protected]>
- Loading branch information
1 parent
8a5b117
commit 3d97025
Showing
64 changed files
with
456 additions
and
688 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
verbosity: 1 | ||
|
||
skip_list: | ||
- 'yaml' | ||
- 'role-name' | ||
- 'package-latest' | ||
- 'latest[git]' | ||
- 'no-changed-when' | ||
- 'schema[meta]' | ||
- 'ignore-errors' |
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,30 @@ | ||
--- | ||
name: Lint | ||
'on': | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python3 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install yamllint | ||
run: pip3 install yamllint | ||
|
||
- name: Run yamllint | ||
run: | | ||
yamllint . | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@main |
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,7 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
line-length: | ||
max: 200 | ||
level: warning |
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,11 +1,12 @@ | ||
--- | ||
all: | ||
hosts: | ||
atom: | ||
ansible_ssh_port: 22 | ||
ansible_ssh_host: 192.168.0.120 | ||
ansible_ssh_user: veerendra | ||
#ansible_ssh_password: | ||
# ansible_ssh_password: | ||
extra_hosts: | ||
- "atom:192.168.0.130" # Wifi Address | ||
- "atom:192.168.0.130" | ||
localhost: | ||
ansible_connection: local | ||
ansible_connection: local |
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,38 +1,24 @@ | ||
# Author: Veerendra K | ||
# Description: An Ansible playbook to make awesome Raspberry Pi homeserver | ||
|
||
- name: Raspberry Pi Homeserver | ||
--- | ||
- name: Homeserver Automation | ||
hosts: localhost | ||
gather_facts: yes | ||
vars_files: | ||
- vars.yml | ||
|
||
pre_tasks: | ||
- name: Run update | ||
apt: | ||
upgrade: true | ||
update_cache: yes | ||
ignore_errors: yes | ||
become: yes | ||
|
||
post_tasks: | ||
- name: Run autoremove | ||
apt: | ||
autoremove: yes | ||
become: yes | ||
# roles: | ||
# - role: veerendra2.prepare_dev_setup | ||
# tags: system | ||
|
||
tasks: | ||
- name: Prepare Pi | ||
import_tasks: tasks/prepare-pi.yml | ||
tags: prepare-pi | ||
ansible.builtin.import_tasks: tasks/prepare-pi.yml | ||
become: true | ||
tags: pi | ||
|
||
- name: Deploy services | ||
import_tasks: tasks/deploy-services.yml | ||
ansible.builtin.import_tasks: tasks/deploy-services.yml | ||
become: true | ||
tags: services | ||
|
||
- name: Setup firewall rules | ||
import_tasks: tasks/ufw.yml | ||
|
||
- name: Performing smoke tests | ||
import_tasks: tasks/smoke-tests.yml | ||
tags: never | ||
ansible.builtin.import_tasks: tasks/ufw.yml | ||
become: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
roles: | ||
- name: veerendra2.prepare_dev_setup | ||
collections: | ||
- name: ansible.posix | ||
- name: community.general | ||
- name: community.docker |
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,7 +1,2 @@ | ||
# Docker Swarm Services | ||
> Refer [Gitbook Docs](https://dust6765.gitbook.io/raspberrypi-home-server/services) | ||
**NOTE:** Export `DOMAIN` environmental variable before deploying services | ||
```bash | ||
$ export DOMAIN=mydomain.com | ||
``` | ||
Update your duckdns sub-domain name in traefik label in all services. For example [./traefik/docker-stack.yml#31](./traefik/docker-stack.yml#31) |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,2 @@ | ||
#https://github.com/CorentinTh/it-tools/pull/461 | ||
BASE_URL=/it-tools |
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,29 @@ | ||
--- | ||
version: '3.8' | ||
|
||
networks: | ||
network_public: | ||
external: true | ||
|
||
services: | ||
it-tools: | ||
image: corentinth/it-tools:latest | ||
deploy: | ||
replicas: 1 | ||
placement: | ||
constraints: [node.role == manager] | ||
restart_policy: | ||
condition: on-failure | ||
delay: 30s | ||
max_attempts: 3 | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.docker.network=network_public" | ||
- "traefik.http.routers.it-tools.tls=true" | ||
- "traefik.http.routers.it-tools.rule=Host(`veeru.duckdns.org`) && PathPrefix(`/it-tools`)" | ||
- "traefik.http.services.it-tools.loadbalancer.server.port=80" | ||
hostname: it-tools | ||
env_file: | ||
- .env_it-tools | ||
networks: | ||
- network_public |
File renamed without changes.
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,4 @@ | ||
# jacket | ||
This stack requires `qBittorent` + `Wireguard` which should be up and running. | ||
|
||
* Deploy [qBittorrent + Wireguard](../qbittorrent/) |
File renamed without changes.
Oops, something went wrong.