feat: Updates variable names
This commit is contained in:
10
justfile
10
justfile
@@ -1,21 +1,29 @@
|
||||
playbook_dir := "${ANSIBLE_LOCAL}/ansible-hpa-playbook"
|
||||
project_files := "project_files"
|
||||
project_files := "project"
|
||||
|
||||
[private]
|
||||
default:
|
||||
@just --list
|
||||
|
||||
[group('template')]
|
||||
edit-repo-vault:
|
||||
@ansible-vault edit \
|
||||
--vault-id "consults@$SCRIPTS/vault-gopass-client" \
|
||||
./repo_vars/vault.yml
|
||||
|
||||
[group('template')]
|
||||
create-repo-vault:
|
||||
@ansible-vault create \
|
||||
--vault-id "consults@$SCRIPTS/vault-gopass-client" \
|
||||
./repo_vars/vault.yml
|
||||
|
||||
[group('template')]
|
||||
edit-project-vault:
|
||||
@ansible-vault edit \
|
||||
--vault-id "consults@$SCRIPTS/vault-gopass-client" \
|
||||
{{project_files}}/vault.yml
|
||||
|
||||
[group('project')]
|
||||
create-project dir *ARGS:
|
||||
@ansible-playbook {{playbook_dir}}/main.yml \
|
||||
--inventory {{playbook_dir}}/inventory.ini \
|
||||
|
||||
@@ -19,6 +19,7 @@ run_pandoc dir output_file: build
|
||||
run-playbook *ARGS:
|
||||
@ansible-playbook {{playbook_dir}}/main.yml \
|
||||
--inventory {{playbook_dir}}/inventory.ini \
|
||||
--vault-id "consults@${SCRIPTS}/vault-gopass-client" \
|
||||
--extra-vars "output_dir={{justfile_directory()}}" \
|
||||
--extra-vars "project_dir={{justfile_directory()}}" \
|
||||
{{ARGS}}
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
document_title: "Home Performance Report"
|
||||
|
||||
template:
|
||||
repo:
|
||||
url: "https://git.housh.dev/hhe/consult-template.git"
|
||||
version: "main"
|
||||
#path: "{{ lookup('env', 'REPOS') }}/hhe-consult-template"
|
||||
repo:
|
||||
url: "https://git.housh.dev/hhe/consult-template.git"
|
||||
version: "main"
|
||||
|
||||
# Files to copy to the project directory when setting up a new consult project.
|
||||
#
|
||||
@@ -15,7 +16,7 @@ template:
|
||||
# src: "/path/to/the/file"
|
||||
# dest: "FileName"
|
||||
# mode: '0600' # optional mode, defaults to 0600
|
||||
unsafe_copy_directory_on_setup:
|
||||
copy_directory_on_setup:
|
||||
- "project"
|
||||
|
||||
# Files to copy to the build directory when building a consult document.
|
||||
@@ -27,8 +28,8 @@ unsafe_copy_directory_on_setup:
|
||||
# dest: "Name"
|
||||
# mode: '0600' # optional mode, defaults to 0600
|
||||
copy_on_build:
|
||||
- "{{ template_path }}/Definitions.md"
|
||||
- "{{ template_path }}/head.tex"
|
||||
- "{{ template_dir }}/Definitions.md"
|
||||
- "{{ template_dir }}/head.tex"
|
||||
|
||||
# Files to fill with their template values and copy to the build directory.
|
||||
#
|
||||
@@ -39,5 +40,5 @@ copy_on_build:
|
||||
# dest: "Name"
|
||||
# mode: '0600' # optional mode, defaults to 0600
|
||||
template_on_build:
|
||||
- "{{ template_path }}/footer.tex"
|
||||
- "{{ template_dir }}/footer.tex"
|
||||
- "{{ project_dir }}/Report.md"
|
||||
|
||||
Reference in New Issue
Block a user