-
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
6 changed files
with
97 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# nginx-proxy | ||
__Tags - `TAG`__ | ||
|
||
Deploys ABCD | ||
|
||
### Usage | ||
```yaml | ||
- alesharik.baseinfra. | ||
``` | ||
```yaml | ||
|
||
``` | ||
|
||
### Vars | ||
```yaml | ||
``` | ||
|
||
### Effects | ||
- installs `passlib`, `bcrypt` | ||
- creates and manages `{{ dir.ansible }}/docker-registry` | ||
- creates `{{ dir.data }}/docker-registry` | ||
- creates and manages `{{ dir.ansible }}/docker-registry/htpasswd` - auth file for server | ||
- creates `{{ dir.ansible }}/nginx-proxy/vhost.d/{{ docker.registry.server.host }}` - to set max file size | ||
- deploys docker compose project `docker-registry` | ||
- logges in created docker registry with specified creds | ||
|
||
#### Docker networks | ||
- connect to `nginx-proxy` if role `nginx_proxy_base` is deployed | ||
|
||
### Networking | ||
- exposes 80 port through `nginx-proxy` with host specified in config | ||
- connects to network `nginx-proxy` | ||
|
||
### Handlers | ||
- `restart docker registry server` - restarts registry | ||
|
||
### Dependencies | ||
- `bootstrap` | ||
- `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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# chrony | ||
__Tags - `chrony`__ | ||
|
||
Deploys chrony | ||
|
||
### Usage | ||
```yaml | ||
- alesharik.baseinfra.chrony | ||
``` | ||
### Effects | ||
- installs `chrony` with apt | ||
- stops and disables `systemd-timesyncd` | ||
- starts and enables `chrony` | ||
|
||
### Dependencies | ||
- `bootstrap` |
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,3 @@ | ||
--- | ||
dependencies: | ||
- role: alesharik.baseinfra.bootstrap |
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,25 @@ | ||
- name: Install chrony | ||
tags: chrony | ||
ansible.builtin.apt: | ||
name: chrony | ||
state: present | ||
- name: Setup config | ||
tags: chrony | ||
ansible.builtin.template: | ||
src: chrony.conf | ||
dest: /etc/chrony.conf | ||
mode: 0500 | ||
owner: root | ||
group: root | ||
- name: Stop systemd-timesyncd | ||
tags: chrony | ||
ansible.builtin.systemd: | ||
name: systemd-timesyncd | ||
state: stopped | ||
enabled: false | ||
- name: Start chrony | ||
tags: chrony | ||
ansible.builtin.systemd: | ||
name: chronyd | ||
state: restarted | ||
enabled: 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,10 @@ | ||
poool pool.ntp.org iburst burst | ||
driftfile /var/lib/chrony/drift | ||
makestep 0.1 -1 | ||
rtcsync | ||
keyfile /etc/chrony.keys | ||
leapsectz right/UTC | ||
logdir /var/log/chrony | ||
deny all | ||
minsources 2 | ||
maxupdateskew 5 |