-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a receipt so auth_cmd exec only runs when parameters change.
- Loading branch information
Showing
2 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,6 +559,20 @@ docker::registry { 'example.docker.io:5000': | |
} | ||
``` | ||
|
||
By default the exec to add registries will run on every Puppet run. To prevent this you can enable the use of a receipt. | ||
Caveat: If the values in config.json for this registry are modified outside of Puppet, puppet will not correct them unless the receipt file is removed from /root/.docker/ | ||
|
||
Default: receipt => false | ||
|
||
```puppet | ||
docker::registry { 'example.docker.io:5000': | ||
username => 'user', | ||
password => 'secret', | ||
email => '[email protected]', | ||
receipt => true, | ||
} | ||
``` | ||
|
||
You can logout of a registry if it is no longer required. | ||
|
||
```puppet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters