Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csentry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Harrisson
csentry
Commits
e265aec4
Commit
e265aec4
authored
5 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation
parent
8b89e49c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/network.rst
+12
-7
12 additions, 7 deletions
docs/network.rst
with
12 additions
and
7 deletions
docs/network.rst
+
12
−
7
View file @
e265aec4
...
@@ -227,21 +227,26 @@ Encrypted variables
...
@@ -227,21 +227,26 @@ Encrypted variables
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
`Ansible vault`_ allows to create encrypted variables to embed in yaml using the `ansible-vault encrypt_string`_ command.
`Ansible vault`_ allows to create encrypted variables to embed in yaml using the `ansible-vault encrypt_string`_ command.
In the following example *myvariable* is the name of the variable and *acomplexpassword* the secret to encrypt (the content
of the variable).
::
::
$ ansible-vault encrypt_string -n my
passord
acomplexpassword
$ ansible-vault encrypt_string -n my
variable
acomplexpassword
New Vault password:
New Vault password:
Confirm New Vault password:
Confirm New Vault password:
my
passord
: !vault |
my
variable
: !vault |
$ANSIBLE_VAULT;1.1;AES256
$ANSIBLE_VAULT;1.1;AES256
3
3383731
306
5
33
343464396365336135653261316639643937326134313430313833316438633238
3
564306532393963
30633
03738656432333664613764326566663132313962363037663637363161
3
2376133323962393631343464626538316262
376
63
231
360a356235306262333634653036336236
3
43538396431393631336536643363313932336339
376231
0a626338663237313063353462623933
3
2
33
3435306334343839353664396165343861373333613830383762393734393434346633653839
3
7
33
6566633161303538323934626162626262356337636565353835393538643564343331306338
6139663637
3364
62330a316366326461633964386135346239303338366237383561643034
353
2
63
333
33
1
64
34353931640a386563353131386437376233376362663764633338373530393936
353
1
63
666233623338663735303164373
66
5
643
03332353032643961663435343939633164
393666376333363162393064
66643
637383165343936623864386366663631363837
Encryption successful
Encryption successful
Note that if you exported the **ANSIBLE_VAULT_PASSWORD_FILE** environment variable,
you won't be prompted for the vault password.
You can directly copy/paste the result of the command to CSEntry:
You can directly copy/paste the result of the command to CSEntry:
.. image:: _static/ansible/enter_vault_variable.png
.. image:: _static/ansible/enter_vault_variable.png
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment