From 94049680c34613c061a3e93bad0b5876ab6d2379 Mon Sep 17 00:00:00 2001 From: "Adam \"Bucky\" Townsend" Date: Thu, 24 May 2018 07:14:14 -0700 Subject: [PATCH] Add OpenBSD password encryption (#40647) OpenBSD comes with its own encryption utility as well, which must be run on the password text `encrypt `. following the code block above, i just included the base command in the code block. I wasn't quite sure where to add my change, so I put it at the bottom of the section since the rest all flows well together. +label: docsite_pr --- docs/docsite/rst/reference_appendices/faq.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docsite/rst/reference_appendices/faq.rst b/docs/docsite/rst/reference_appendices/faq.rst index 146371d1f76..6e5bb1b8170 100644 --- a/docs/docsite/rst/reference_appendices/faq.rst +++ b/docs/docsite/rst/reference_appendices/faq.rst @@ -364,6 +364,7 @@ The mkpasswd utility that is available on most Linux systems is a great option: .. code-block:: shell-session mkpasswd --method=sha-512 + If this utility is not installed on your system (e.g. you are using OS X) then you can still easily generate these passwords using Python. First, ensure that the `Passlib `_ @@ -382,6 +383,12 @@ Once the library is ready, SHA512 password values can then be generated as follo Use the integrated :ref:`hash_filters` to generate a hashed version of a password. You shouldn't put plaintext passwords in your playbook or host_vars; instead, use :doc:`../user_guide/playbooks_vault` to encrypt sensitive data. +In OpenBSD, a similar option is available in the base system called encrypt(1): + +.. code-block:: shell-session + + encrypt + .. _commercial_support: Ansible supports dot notation and array notation for variables. Which notation should I use?