Skip to content

Commit 592016d

Browse files
committed
(CONT-580) - Updating readme with Deferred function for sensitive fields
1 parent 063755d commit 592016d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,18 @@ vcsrepo { '/path/to/repo':
550550
}
551551
~~~
552552

553+
The sensitive `basic_auth_password` can be deferred using the [Deferred](https://www.puppet.com/docs/puppet/7/template_with_deferred_values.html) function on Puppet Master and enable to execute on agent.
554+
555+
~~~ puppet
556+
vcsrepo { '/path/to/repo':
557+
ensure => latest,
558+
provider => hg,
559+
source => 'http://hg.example.com/myrepo',
560+
basic_auth_username => 'hgusername',
561+
basic_auth_password => Deferred('sprintf', ['hgpassword']),
562+
}
563+
~~~
564+
553565
#### Connect via SSH
554566

555567
To connect to your source repository via SSH (such as `'ssh://...'`), we recommend using the [`require` metaparameter](http://docs.puppet.com/references/stable/metaparameter.html#require) to make sure your SSH keys are present before the `vcsrepo` resource is applied:

0 commit comments

Comments
 (0)