Skip to content

Commit

Permalink
fix: add final newline character to text files
Browse files Browse the repository at this point in the history
This makes text files compliant to POSIX which requires every line of a
text file to end with a newline character [1][2].

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_403
[2] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
  • Loading branch information
cschug committed Feb 22, 2024
1 parent ca1b5cf commit 8a17193
Show file tree
Hide file tree
Showing 89 changed files with 89 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
systemd:
state: restarted
daemon_reload: yes
name: fail2ban
name: fail2ban
2 changes: 1 addition & 1 deletion ansible/configuration/ssh/config-add-sshkey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
state: present
regexp: '^%sudo'
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
validate: /usr/sbin/visudo -cf %s
validate: /usr/sbin/visudo -cf %s
2 changes: 1 addition & 1 deletion ansible/deployment/portainer/deploy-portainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
restart_policy: unless-stopped
restart_policy: unless-stopped
2 changes: 1 addition & 1 deletion ansible/deployment/traefik/deploy-traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/traefik:/etc/traefik
restart_policy: unless-stopped
restart_policy: unless-stopped
2 changes: 1 addition & 1 deletion ansible/installation/inst-docker-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
- docker-buildx-plugin
- docker-scan-plugin
- docker-compose-plugin
update_cache: yes
update_cache: yes
2 changes: 1 addition & 1 deletion ansible/installation/inst-k8s/ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[defaults]
timeout = 25
timeout = 25
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ join_output.stdout }}
{{ join_output.stdout }}
2 changes: 1 addition & 1 deletion ansible/installation/inst-zsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
name: zsh
state: present
update_cache: true
become: true
become: true
2 changes: 1 addition & 1 deletion ansible/maintenance/maint-docker-clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
dangling: false
networks: false
volumes: false
builder_cache: false
builder_cache: false
2 changes: 1 addition & 1 deletion ansible/maintenance/maint-reboot-required.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
register: reboot_required
- debug:
msg: "Reboot is required"
when: reboot_required.stat.exists
when: reboot_required.stat.exists
2 changes: 1 addition & 1 deletion ansible/maintenance/maint-reboot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
tasks:
- name: reboot machine
reboot:
reboot_timeout: 3600
reboot_timeout: 3600
2 changes: 1 addition & 1 deletion ansible/notification/notify-discord.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
headers:
Content-Type: application/json
status_code: 204
# when: your-condition
# when: your-condition
1 change: 1 addition & 0 deletions ansible/update/upd-apt-dist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion ansible/update/upd-apt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
yum:
name: '*'
state: latest
exclude: kernel*
exclude: kernel*
2 changes: 1 addition & 1 deletion docker-compose/ansiblesemaphore/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ services:
- ./config/:/etc/semaphore:rw
restart: unless-stopped
depends_on:
- mysql
- mysql
1 change: 1 addition & 0 deletions docker-compose/bind9/config/example.named.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion docker-compose/bind9/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ services:
- /etc/bind/:/etc/bind/
- /var/cache/bind:/var/cache/bind
- /var/lib/bind:/var/lib/bind
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/duplicati/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ services:
- /:/source
ports:
- 8200:8200
restart: unless-stopped
restart: unless-stopped
1 change: 1 addition & 0 deletions docker-compose/factory/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion docker-compose/grafana/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ services:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/heimdall/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ services:
ports:
- 80:80
- 443:443
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/homeassistant/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ services:
# devices:
# - /dev/ttyACMO # (optional) Add serial devices to the container
privileged: true
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/homer/assets/example.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ services:
logo: "assets/tools/sample2.png"
subtitle: "Another application"
tag: "app"
url: "#"
url: "#"
2 changes: 1 addition & 1 deletion docker-compose/homer/assets/example.custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
body #app .card.green {
background-color: #006600;
color: #00ff00;
}
}
2 changes: 1 addition & 1 deletion docker-compose/homer/assets/example2.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ services:
logo: "assets/tools/pingdom.png"
subtitle: "Pingdom public reports overview"
tag: "CI"
url: "https://www.pingdom.com/"
url: "https://www.pingdom.com/"
2 changes: 1 addition & 1 deletion docker-compose/homer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ services:
- "8080:8080"
volumes:
- /etc/homer/assets/:/www/assets
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/nextcloud/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ services:
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_USER=$MYSQL_USER
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/nginxproxymanager/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ services:
- MYSQL_USER=npm
- MYSQL_PASSWORD=npm
volumes:
- nginxproxymanager-db:/var/lib/mysql
- nginxproxymanager-db:/var/lib/mysql
2 changes: 1 addition & 1 deletion docker-compose/nodeexporter/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ services:
pid: host
restart: unless-stopped
volumes:
- /:/host:ro,rslave
- /:/host:ro,rslave
2 changes: 1 addition & 1 deletion docker-compose/nvidiadgcm/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ services:
- NVIDIA_DRIVER_CAPABILITIES=all
ports:
- 9400:9400
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/nvidiasmi/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ services:
- /usr/bin/nvidia-smi:/usr/bin/nvidia-smi
- /usr/lib/x86_64-linux-gnu/libnvidia-ml.so:/usr/lib/x86_64-linux-gnu/libnvidia-ml.so
- /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/passbolt/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ services:
- passbolt-data-gpg:/etc/passbolt/gpg
- passbolt-data-jwt:/etc/passbolt/jwt
command: ["/usr/bin/wait-for.sh", "-t", "0", "passbolt-db:3306", "--", "/docker-entrypoint.sh"]
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/pihole/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ services:
volumes:
- etcd:/etc/pihole
- dnsmasq:/etc/dnsmasq.d
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/portainer-agent/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ services:
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- portainer-agent_default
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/portainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/swag/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ services:
- 80:80 # optional
depends_on:
- mariadb
restart: unless-stopped
restart: unless-stopped
2 changes: 1 addition & 1 deletion docker-compose/teleport/config/teleport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ app_service:
# apps:
# - name: "yourapp"
# uri: "http://your-app-url"
# insecure_skip_verify: false
# insecure_skip_verify: false
2 changes: 1 addition & 1 deletion github-actions/scp-action/copy-config-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
key: ${{ secrets.your-private-ssh-key }}
source: './config/*'
target: '/target/path/'
strip_components: 1 # remove the top level directory
strip_components: 1 # remove the top level directory
2 changes: 1 addition & 1 deletion kubernetes/certmanager/default-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -513,4 +513,4 @@ startupapicheck:
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded

# Automount API credentials for a Service Account.
automountServiceAccountToken: true
automountServiceAccountToken: true
2 changes: 1 addition & 1 deletion kubernetes/certmanager/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
name: ssl-issuer
kind: ClusterIssuer
dnsNames:
- your-hostname
- your-hostname
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: {}
selfSigned: {}
2 changes: 1 addition & 1 deletion kubernetes/certmanager/templates/issuer-selfsigned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ metadata:
# ---
# namespace: your-namespace
spec:
selfSigned: {}
selfSigned: {}
2 changes: 1 addition & 1 deletion kubernetes/certmanager/templates/secret-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ stringData:
# api-key: your-api-key
# - or -
# Token:
# api-token: your-api-token
# api-token: your-api-token
2 changes: 1 addition & 1 deletion kubernetes/nginx-http/nginx-http-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ data:
return 401;
}
}
}
}
2 changes: 1 addition & 1 deletion kubernetes/nginx-http/nginx-http-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ spec:
name: nginx-http-cm
- name: nginx-http-vol
hostPath:
path: /var/nginxserver
path: /var/nginxserver
2 changes: 1 addition & 1 deletion kubernetes/nginx-http/nginx-http-svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
selector:
app: nginx-http
app: nginx-http
2 changes: 1 addition & 1 deletion kubernetes/portainer/templates/portainer-ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spec:
service:
name: portainer
port:
number: 9000
number: 9000
1 change: 1 addition & 0 deletions kubernetes/portainer/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion kubernetes/templates/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
name: ssl-issuer
kind: ClusterIssuer
dnsNames:
- your-hostname
- your-hostname
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/mysql-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ spec:
# volumes:
# - name: mysql-vol
# hostPath:
# path: /var/mysql-data
# path: /var/mysql-data
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/mysql-secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: mysql-secret
type: Opaque
stringData:
root-pass: test123
root-pass: test123
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/nginx-http-cm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ data:
return 401;
}
}
}
}
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/nginx-http-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ spec:
name: nginx-http-cm
- name: nginx-http-vol
hostPath:
path: /var/nginxserver
path: /var/nginxserver
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/nginx-http-svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
selector:
app: nginx-http
app: nginx-http
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ stringData:
...
-----END CERTIFICATE-----
server-key.pem: |
2 changes: 1 addition & 1 deletion kubernetes/templates/cm-and-secrets/nginx-https-svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ spec:
protocol: TCP
name: https
selector:
app: nginx-https
app: nginx-https
2 changes: 1 addition & 1 deletion kubernetes/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ spec:
service:
name: your-service-name # The name of the service
port:
number: 80 # Service Portnumber
number: 80 # Service Portnumber
2 changes: 1 addition & 1 deletion kubernetes/templates/namespace.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: your-namespace
name: your-namespace
2 changes: 1 addition & 1 deletion kubernetes/templates/pv-and-pvc/civo-pvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ spec:
storageClassName: civo-volume
resources:
requests:
storage: 1Gi
storage: 1Gi
2 changes: 1 addition & 1 deletion kubernetes/templates/pv-and-pvc/civo-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ spec:
volumes:
- name: civo
persistentVolumeClaim:
claimName: civo
claimName: civo
Loading

0 comments on commit 8a17193

Please sign in to comment.