Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
01fad4fd
Commit
01fad4fd
authored
4 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Set ANSIBLE_CONFIG path in ansible commands of Makefile | refs
#32734
parent
83d1776b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.devcontainer/devcontainer.json
+4
-16
4 additions, 16 deletions
.devcontainer/devcontainer.json
Makefile
+5
-4
5 additions, 4 deletions
Makefile
with
9 additions
and
20 deletions
.devcontainer/devcontainer.json
+
4
−
16
View file @
01fad4fd
...
@@ -16,22 +16,10 @@
...
@@ -16,22 +16,10 @@
],
],
"settings"
:
{
"settings"
:
{
"files.associations"
:
{
"files.associations"
:
{
"**/ansible/requirements.in/*.txt"
:
"pip-requirements"
,
"**/ansible/requirements*.in"
:
"pip-requirements"
,
"ansible/requirements.*.txt"
:
"pip-requirements"
,
"**/ansible/requirements*.txt"
:
"pip-requirements"
,
"**/defaults/**/*"
:
"ansible"
,
"**/ansible/*/*/*.yml"
:
"ansible"
,
"**/tasks/**/*.yml"
:
"ansible"
,
"**/ansible/inventories/*/hosts"
:
"ini"
,
"**/handler/*.yml"
:
"ansible"
,
"**/*_vars/**/*.yml"
:
"ansible"
,
"**/roles/**/*.yml"
:
"ansible"
,
"**/role.d/**/*.yml"
:
"ansible"
,
"**/playbooks/**/*.yml"
:
"ansible"
,
"**/playbook.d/**/*.yml"
:
"ansible"
,
"**/*ansible*/**/*.yml"
:
"ansible"
,
"**/vars/**/*.yml"
:
"ansible"
,
"**/inventories/**/hosts"
:
"ini"
,
"**/inventories/**/*"
:
"ansible"
,
"**/inventory/**/*"
:
"ansible"
,
"**/inventory.d/**/*"
:
"ansible"
},
},
"python.pythonPath"
:
"/home/code/pyvenv/bin/python"
,
"python.pythonPath"
:
"/home/code/pyvenv/bin/python"
,
"python.formatting.provider"
:
"black"
,
"python.formatting.provider"
:
"black"
,
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
4
View file @
01fad4fd
SHELL
:=
/bin/bash
SHELL
:=
/bin/bash
DOCKER_IMAGE_NAME
:=
registry.ubicast.net/mediaserver/envsetup
DOCKER_IMAGE_NAME
:=
registry.ubicast.net/mediaserver/envsetup
VENV
:=
/tmp/pyvensetup
VENV
:=
/tmp/pyvensetup
ANSIBLE_CONFIG
:=
ansible/ansible.cfg
PIP_BIN
=
$(
shell
command
-v
$(
VENV
)
/bin/pip3
||
command
-v
pip3
||
echo
pip3
)
PIP_BIN
=
$(
shell
command
-v
$(
VENV
)
/bin/pip3
||
command
-v
pip3
||
echo
pip3
)
PIP_COMPILE_BIN
=
$(
shell
command
-v
$(
VENV
)
/bin/pip-compile
||
command
-v
pip-compile
)
PIP_COMPILE_BIN
=
$(
shell
command
-v
$(
VENV
)
/bin/pip-compile
||
command
-v
pip-compile
)
ANSIBLE_BIN
=
$(
shell
command
-v
ansible
||
command
-v
$(
VENV
)
/bin/ansible
)
ANSIBLE_BIN
=
$(
shell
command
-v
ansible
||
command
-v
$(
VENV
)
/bin/ansible
)
...
@@ -39,7 +40,7 @@ venv:
...
@@ -39,7 +40,7 @@ venv:
install
:
venv
install
:
venv
$(
PIP_BIN
)
install
-U
pip wheel
$(
PIP_BIN
)
install
-U
pip wheel
$(
PIP_BIN
)
install
-r
ansible/requirements.txt
$(
PIP_BIN
)
install
-r
ansible/requirements.txt
$(
ANSIBLE_GALAXY_BIN
)
install
-r
ansible/requirements.yml
ANSIBLE_CONFIG
=
$(
ANSIBLE_CONFIG
)
$(
ANSIBLE_GALAXY_BIN
)
install
-r
ansible/requirements.yml
.PHONY
:
install-dev
.PHONY
:
install-dev
...
@@ -54,7 +55,7 @@ install-dev: install
...
@@ -54,7 +55,7 @@ install-dev: install
lint
:
lint
:
$(
FLAKE8_BIN
)
.
$(
FLAKE8_BIN
)
.
$(
YAMLLINT_BIN
)
.
$(
YAMLLINT_BIN
)
.
$(
ANSIBLE_LINT_BIN
)
ansible/playbooks/site.yml
ANSIBLE_CONFIG
=
$(
ANSIBLE_CONFIG
)
$(
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>
...
@@ -76,8 +77,8 @@ endif
...
@@ -76,8 +77,8 @@ endif
ifndef
t
ifndef
t
$(
eval
t
=
all
)
$(
eval
t
=
all
)
endif
endif
$(
ANSIBLE_BIN
)
-i
$(
i
)
-l
$(
l
)
-m
ping all
ANSIBLE_CONFIG
=
$(
ANSIBLE_CONFIG
)
$(
ANSIBLE_BIN
)
-i
$(
i
)
-l
$(
l
)
-m
ping all
$(
ANSIBLE_PLAYBOOK_BIN
)
-i
$(
i
)
ansible/
playbooks/site.yml
-e
conf_update
=
true
-l
$(
l
)
-t
$(
t
)
ANSIBLE_CONFIG
=
$(
ANSIBLE_CONFIG
)
$(
ANSIBLE_PLAYBOOK_BIN
)
-i
$(
i
)
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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment