Comments (4)
Just wanted to add a big thanks for getting this implemented. I know I've capitalized a large amount of your time and effort recently @twpayne and @halostatue - I can't sing enough praise for how you both provide constructive support and work to keep us the demanding consumers happy!
I will factor these changes into my config before the end of this week and let you know if there are any issues. If I'm to understand correctly, env
is now the preferred config object and will be what is carried over into v3 in the future.
from chezmoi.
chezmoi commands such as
status
,apply
anddiff
appear to ignore the scriptEnv config object. The only way this currently works is by runningchezmoi cd
to create a subshell which inherits the scriptEnv defined environment variables before runningapply
etc.
scriptEnv
applies to run_
scripts. It does not apply to arbitrary commands invoked by chezmoi. Changing scriptEnv
to apply to all commands run by chezmoi will require some thought about the implications and side-effects.
from chezmoi.
Thanks for the consideration.
My intention behind this feature request was to remove the need to install the VLT CLI and perform vlt login
before applying a dotfiles config, using the supported non-interactive method as described at: https://developer.hashicorp.com/vault/tutorials/hcp-vault-secrets-get-started/hcp-vault-secrets-install-cli#configure-the-hcp-vault-secrets-cli
In my prototype, I am prompting the user for these values around the same time as asking for other info such as email address, etc. When Chezmoi is updating the target with templated files with secrets, there is no need to script or manually run vlt login
as a pre-requisite task if these env vars are available, and keeps these credentials out of the source controlled config
from chezmoi.
I will factor these changes into my config before the end of this week and let you know if there are any issues. If I'm to understand correctly,
env
is now the preferred config object and will be what is carried over into v3 in the future.
That is correct. We have not yet marked scriptEnv
as deprecated.
from chezmoi.
Related Issues (20)
- chezmoi data shows wrong hostname HOT 1
- Add support for a distinct `merge-all` command HOT 3
- [Chezmoi template] include files from destination directory that is ignored in the source dir HOT 1
- Allowing a script to run before decryption HOT 2
- Unexpected ignore include/exclude behaviour HOT 1
- Evaluating an init promptString in onepasswordDetailedFields call / working with multiple 1Password environments HOT 6
- Variables supported by commitMessageTemplate HOT 5
- JSON numbers are being converted to decimals HOT 7
- Option for data variable file structure HOT 3
- Add conditions directive/frontmatter and pieces HOT 7
- prefix commitMessageTemplate with custom template HOT 5
- Allow usage of chezmoi template variables in commitMessageTemplate defined in chezmoi.toml HOT 1
- Managing machine-to-machine differences HOT 2
- Can't use templates from `.chezmoitemplates` in `modify_` scripts that are executed as templates HOT 5
- Output from `toJson` and `toPrettyJson` contains escaped versions of some input characters HOT 2
- `gitHubLatestRelease` and string functions HOT 8
- Unable to correctly obtain hostname in docker build container HOT 11
- generate git-commit-message fails: 'unsupported XY: ".M"' HOT 5
- bug: `promptStringOnce` does not accept `--promptString` defaults HOT 2
- chezmoi 2.40+ problems with pager and keepassxc password prompt HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chezmoi.