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