Skip to content

Commit

Permalink
testing pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Oct 21, 2023
1 parent 6eb283c commit 24dd148
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
make check-yaml
yamllint -c .yamllint .
17 changes: 17 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ignore: |
etc/
.github/

extends: default

yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'

rules:
quoted-strings: disable
line-length: disable
document-start: disable
comments: disable
comments-indentation: disable
4 changes: 2 additions & 2 deletions ansible/ansible-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
shell: "ansible-galaxy install {{ item }} -p ./roles"
with_items:
- geerlingguy.docker
- geerlingguy.node_exporter
- geerlingguy.node_exporter
- nvidia.nvidia_driver
- nvidia.nvidia_docker
#- dmotte.podman #enable to install podman
#- dmotte.podman #enable to install podman
4 changes: 2 additions & 2 deletions ansible/install-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present
docker_users:
- "{{ lookup('env','USER') }}"
- "{{ lookup('env','USER') }}"
roles:
- geerlingguy.docker
- geerlingguy.docker
2 changes: 1 addition & 1 deletion ansible/install-node-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- hosts: localhost
become: true
roles:
- geerlingguy.node_exporter
- geerlingguy.node_exporter
8 changes: 3 additions & 5 deletions ansible/install-nvidia-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
become: true
tasks:
- name: install dependencies
become: yes
become: true
apt:
update_cache: yes
update_cache: true
name:
- nvidia-driver-535
- nvidia-driver-535
- nvidia-dkms-535
state: present

roles:
- nvidia.nvidia_docker
# - nvidia.nvidia_driver
#
22 changes: 11 additions & 11 deletions ansible/install-podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
- hosts: localhost
become: true
vars:
podman_compose: true
#podman_auto_update_event_expr: Mon 01:00
podman_ip_unprivileged_port_start: 80
podman_users:
- name: "{{ ansible_user_id }}"
set_linger: true
socket: true
#auto_update_event_expr: Tue 02:00
kube_extra_args: "--net slirp4netns:port_handler=slirp4netns,\
enable_ipv6=false"
podman_compose: true
#podman_auto_update_event_expr: Mon 01:00
podman_ip_unprivileged_port_start: 80
podman_users:
- name: "{{ ansible_user_id }}"
set_linger: true
socket: true
#auto_update_event_expr: Tue 02:00
kube_extra_args: "--net slirp4netns:port_handler=slirp4netns,\
enable_ipv6=false"
roles:
- dmotte.podman
- dmotte.podman
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
image: traefik:${TRAEFIK_DOCKER_TAG:-2.9} # replace with traefik:latest if you are feeling frisky
container_name: ${TRAEFIK_CONTAINER_NAME:-traefik}
restart: ${TRAEFIK_RESTART:-unless-stopped}
networks:
networks:
- traefik
extra_hosts:
- host.docker.internal:172.17.0.1
Expand Down

0 comments on commit 24dd148

Please sign in to comment.