Skip to content

Commit

Permalink
Make the Meza project repository a configuration value
Browse files Browse the repository at this point in the history
This resolves issue #22

This work  was performed for NASA GRC-ATF by WikiWorks per NASA Contract  NNC15BA02B.
  • Loading branch information
freephile committed Mar 1, 2024
1 parent d95b682 commit 602587f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions config/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
---
# Meza default config file

# enforce_meza_version: main
meza_repository: https://github.com/nasa/meza.git
# used by autodeployer to track a named branch, tag, or SHA1
enforce_meza_version: main

# The source code repo for Meza
# e.g. Use our local repo fork temporarily
# meza_repository_url: https://github.com/freephile/meza.git
# You can override this using Ansible 'extra-vars'
# yamllint disable-line rule:line-length
# sudo time meza deploy monolith -vvv --tags base,httpd-reload -e meza_repository_url=https://github.com/freephile/meza.git
# Note: a similar variable is used in getmeza.sh
# That script (or git on the CLI) controls your meza sources currently.
# The variable here is NOT used to check out new versions of meza on deploys
# but rather used in playbooks/check-for-changes and roles/enforce-meza-version
# as part of the Autodeployer https://www.mediawiki.org/wiki/Meza/Autodeployer
meza_repository_url: https://github.com/nasa/meza.git

# Use development or production settings for this server
# production being as performant and secure as possible
Expand Down
2 changes: 1 addition & 1 deletion src/playbooks/check-for-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
environment:
TMPDIR: "{{ m_tmp }}"
git:
repo: "{{ meza_repository }}"
repo: "{{ meza_repository_url }}"
dest: "{{ m_meza }}"
version: "{{ enforce_meza_version }}"
track_submodules: false
Expand Down
2 changes: 1 addition & 1 deletion src/roles/enforce-meza-version/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
environment:
TMPDIR: "{{ m_tmp }}"
git:
repo: "{{ meza_repository }}"
repo: "{{ meza_repository_url }}"
dest: "{{ m_meza }}"
version: "{{ enforce_meza_version }}"
track_submodules: false
Expand Down

0 comments on commit 602587f

Please sign in to comment.