Skip to content

Commit

Permalink
ci: infra
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian committed Nov 7, 2023
1 parent c555449 commit e692aa4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .infra/ansible/galaxy-requirements.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
collections:
- name: community.general
- name: community.crypto
- name: community.docker
- name: ansible.posix
2 changes: 1 addition & 1 deletion .infra/ansible/roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
build: true
restarted: true
files:
- "./docker-compose.yml"
- /opt/pilotage/repository/docker-compose.yml
- /opt/pilotage/.overrides/docker-compose.common.yml
- /opt/pilotage/.overrides/docker-compose.env.yml
vars:
Expand Down
3 changes: 0 additions & 3 deletions .infra/ansible/roles/setup/tasks/configure-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
name: ["tcpdump", "gdb", "libX11", "telnet", "gcc"]
state: absent

- include_role:
name: geerlingguy.docker

- name: Vérification binaires ctop déja installés
stat: path=/usr/local/bin/ctop
register: ctop
Expand Down
1 change: 0 additions & 1 deletion .infra/ansible/test/run-playbook-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function destroy_vm() {
}

function create_vm() {
ansible-galaxy install geerlingguy.docker
ansible-galaxy collection install community.general
ansible-galaxy collection install community.crypto
ansible-galaxy collection install ansible.posix
Expand Down
6 changes: 1 addition & 5 deletions .infra/scripts/setup-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ function setup() {
fi

cd "${ANSIBLE_DIR}"
ansible-galaxy install geerlingguy.docker
ansible-galaxy collection install community.general
ansible-galaxy collection install community.crypto
ansible-galaxy collection install community.docker
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install --requirements-file galaxy-requirements.yml
ansible-playbook \
-i env.ini \
--limit "${ENV_FILTER}" \
Expand Down
3 changes: 3 additions & 0 deletions reverse_proxy/dev/nginx/templates/conf.d/gzip.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gzip on;
gzip_types application/json;
gzip_min_length 128;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /dev/stdout main;

error_log /dev/stderr error;

0 comments on commit e692aa4

Please sign in to comment.