User request for input using boxen

I am completely new to boxen (and puppet) and I want to invite the user password during setup. I need to encrypt the input and add it to the configuration file.

I will use the template to create the file, but getting the password is a little difficult, since the puppet will not write to the console when executing the code inside the template.

I thought about this using a ruby โ€‹โ€‹or shell script to invite the user and then save the password in an environment variable to use it later in the template, but I don't know if this is the best or most secure way to do this.

Any suggestions? is there a โ€œbest practiceโ€ for this kind of thing with boxen / puppet?

+6
source share
1 answer

You can use hiera and encrypt hiera data with hiera-gpg or hiera-eyaml backend

Another option is to use a facter with FACTER_MYPASSWORD environment variables or external facts under /etc/facter/facts.d

0
source

Source: https://habr.com/ru/post/956918/


All Articles