Skip to content
Snippets Groups Projects
Commit 6b5280a8 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Reorganize files | refs #32734

parent 98115377
No related branches found
No related tags found
No related merge requests found
Showing
with 22 additions and 23 deletions
...@@ -63,7 +63,7 @@ RUN \ ...@@ -63,7 +63,7 @@ RUN \
&& \ && \
: :
COPY requirements.dev.txt . COPY ansible/requirements.dev.txt .
RUN \ RUN \
# ansible & co # ansible & co
pip install -r requirements.dev.txt && \ pip install -r requirements.dev.txt && \
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
], ],
"settings": { "settings": {
"files.associations": { "files.associations": {
"**/requirements.in/*.txt": "pip-requirements", "**/ansible/requirements.in/*.txt": "pip-requirements",
"requirements.*.txt": "pip-requirements", "ansible/requirements.*.txt": "pip-requirements",
"**/defaults/**/*": "ansible", "**/defaults/**/*": "ansible",
"**/tasks/**/*.yml": "ansible", "**/tasks/**/*.yml": "ansible",
"**/handler/*.yml": "ansible", "**/handler/*.yml": "ansible",
......
...@@ -6,8 +6,5 @@ ignore = ...@@ -6,8 +6,5 @@ ignore =
W503 W503
W505 W505
per-file-ignores = #per-file-ignores =
roles/elastic.elasticsearch/*:E713 # ansible/roles/elastic.elasticsearch/*:E713
roles/manager/files/set_site_url.py:E402
library/*:E402
library/nmcli.py:E402,F401
...@@ -6,12 +6,14 @@ __pycache__/ ...@@ -6,12 +6,14 @@ __pycache__/
*.pyc *.pyc
# ansible # ansible
inventories/_* ansible/inventories/_*
inventories/local*/host_vars/localhost.yml ansible/inventories/local*/host_vars/localhost.yml
inventories/offline*/host_vars/localhost.yml ansible/inventories/offline*/host_vars/localhost.yml
playbooks/_* ansible/playbooks/_*
roles/_* ansible/roles/_*
roles/elastic.elasticsearch ansible/roles/elastic.elasticsearch
# logs
./logs/ ./logs/
log/ log/
...@@ -39,5 +41,5 @@ packer/*.json ...@@ -39,5 +41,5 @@ packer/*.json
conf*.sh conf*.sh
auto-generated-conf.sh* auto-generated-conf.sh*
log*.txt log*.txt
tests/ms-testing-suite tests/scripts/ms-testing-suite
*.log *.log
...@@ -19,7 +19,7 @@ docker:build: ...@@ -19,7 +19,7 @@ docker:build:
- if: '$CI_PIPELINE_SOURCE == "push"' - if: '$CI_PIPELINE_SOURCE == "push"'
changes: changes:
- .devcontainer/Dockerfile - .devcontainer/Dockerfile
- requirements.dev.txt - ansible/requirements.dev.txt
before_script: before_script:
- apk add bash make - apk add bash make
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.ubicast.net - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.ubicast.net
......
...@@ -28,8 +28,8 @@ venv: ...@@ -28,8 +28,8 @@ venv:
-@command -v apt-get >/dev/null && apt-get update && apt-get install -y python3-venv -@command -v apt-get >/dev/null && apt-get update && apt-get install -y python3-venv
@command -v $(PIP_BIN) > /dev/null || python3 -m venv $(VENV) @command -v $(PIP_BIN) > /dev/null || python3 -m venv $(VENV)
## requirements.txt: Update requirements and their dependencies ## ansible/requirements.txt: Update requirements and their dependencies
## requirements.dev.txt: Update development requirements and their dependencies ## ansible/requirements.dev.txt: Update development requirements and their dependencies
%.txt: %.in %.txt: %.in
$(PIP_COMPILE_BIN) -U $^ -o $@ $(PIP_COMPILE_BIN) -U $^ -o $@
chmod 644 $@ chmod 644 $@
...@@ -38,14 +38,14 @@ venv: ...@@ -38,14 +38,14 @@ venv:
## install: Install requirements ## install: Install requirements
install: venv install: venv
$(PIP_BIN) install -U pip wheel $(PIP_BIN) install -U pip wheel
$(PIP_BIN) install -r requirements.txt $(PIP_BIN) install -r ansible/requirements.txt
$(ANSIBLE_GALAXY_BIN) install -r requirements.yml $(ANSIBLE_GALAXY_BIN) install -r ansible/requirements.yml
.PHONY: install-dev .PHONY: install-dev
## install-dev: Install development requirements ## install-dev: Install development requirements
install-dev: install install-dev: install
$(PIP_BIN) install -r requirements.dev.txt $(PIP_BIN) install -r ansible/requirements.dev.txt
[ -d .git/hooks ] || mkdir .git/hooks [ -d .git/hooks ] || mkdir .git/hooks
ln -sfv .githooks/pre-commit .git/hooks/ || echo "Failed to create pre-commit link" ln -sfv .githooks/pre-commit .git/hooks/ || echo "Failed to create pre-commit link"
...@@ -54,7 +54,7 @@ install-dev: install ...@@ -54,7 +54,7 @@ install-dev: install
lint: lint:
$(FLAKE8_BIN) . $(FLAKE8_BIN) .
$(YAMLLINT_BIN) . $(YAMLLINT_BIN) .
$(ANSIBLE_LINT_BIN) site.yml $(ANSIBLE_LINT_BIN) ansible/playbooks/site.yml
.PHONY: test .PHONY: test
## test: Run development tests on the project : debug=1, keep=1, SKYREACH_SYSTEM_KEY=<xxx> ## test: Run development tests on the project : debug=1, keep=1, SKYREACH_SYSTEM_KEY=<xxx>
...@@ -77,7 +77,7 @@ ifndef t ...@@ -77,7 +77,7 @@ ifndef t
$(eval t=all) $(eval t=all)
endif endif
$(ANSIBLE_BIN) -i $(i) -l $(l) -m ping all $(ANSIBLE_BIN) -i $(i) -l $(l) -m ping all
$(ANSIBLE_PLAYBOOK_BIN) -i $(i) site.yml -e conf_update=true -l $(l) -t $(t) $(ANSIBLE_PLAYBOOK_BIN) -i $(i) ansible/playbooks/site.yml -e conf_update=true -l $(l) -t $(t)
.PHONY: image-validate .PHONY: image-validate
## image-validate: Check that Packer image is valid : build=<path-to-packer-file> ## image-validate: Check that Packer image is valid : build=<path-to-packer-file>
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment