Add OpenBSD password encryption (#40647)

OpenBSD comes with its own encryption utility as well, which must be run on the password text `encrypt <password>`. 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
pull/40665/head
Adam "Bucky" Townsend 7 years ago committed by Brian Coca
parent 8666c08327
commit 94049680c3

@ -365,6 +365,7 @@ The mkpasswd utility that is available on most Linux systems is a great option:
mkpasswd --method=sha-512 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 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 <https://bitbucket.org/ecollins/passlib/wiki/Home>`_ generate these passwords using Python. First, ensure that the `Passlib <https://bitbucket.org/ecollins/passlib/wiki/Home>`_
password hashing library is installed: password hashing library is installed:
@ -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. 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. 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: .. _commercial_support:
Ansible supports dot notation and array notation for variables. Which notation should I use? Ansible supports dot notation and array notation for variables. Which notation should I use?

Loading…
Cancel
Save