-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding container registry facts #43325
Conversation
Hi @zikalino, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for azure. |
@zikalino Could you help to confirm the PR ready for review or not? Thanks! |
1 similar comment
@zikalino Could you help to confirm the PR ready for review or not? Thanks! |
@Fred-sun this PR has label WIP which means that it's not ready for review |
@zikalino I'm sorry, The PR have no update more than one week, So I update the comment to understand the PR status. Thanks! |
description: A list of dict results where the key is the name of the Registry and the values are the facts for that Registry. | ||
returned: always | ||
type: complex | ||
contains: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we show username/password, webhook list, registry list, registry tag list and buildtask list in the facts?
The test
|
The test
|
pass | ||
|
||
|
||
class AzureRMRegistryFacts(AzureRMModuleBase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AzureRMContainerRegistryFacts
The test
|
The test
|
The test
|
@yungezz returning credentials follows azure_rm_containerregistry |
credentials: | ||
description: | ||
- Credentials, fields will be empty if admin user is not enabled for ACR | ||
return: always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return is not always, but when retrieve option is on
returned: when registry exists and C(admin_user_enabled) is set | ||
type: str | ||
sample: zim | ||
password: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jordan mentioned to add no_log to returned value this morning. do you know how to add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really, we can search... but I guess I we have option to specifically enable passwords, we can skip it for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think so. the option is weak, just make it little difficult to get credential. no_log is really make it not available in another other place other than ansible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yungezz no_log can be placed in the playbook, we do not have to do anything in the module itself
credentials: | ||
description: | ||
- Credentials, fields will be empty if admin user is not enabled for ACR | ||
return: when C(retrieve_credentials) is set and C(admin_user_enabled) is set on ACR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returned :( will lint fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I will recheck this once again
SUMMARY
Creating missing container registry facts.
ISSUE TYPE
COMPONENT NAME
azure_rm_containerregistry_facts
ANSIBLE VERSION
2.6
ADDITIONAL INFORMATION