Skip to content
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

improve(inventory): Support more authentication methods and Change us… #209

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

lixue323
Copy link
Contributor

@lixue323 lixue323 commented Dec 6, 2019

…er_agent

@lixue323 lixue323 force-pushed the inv branch 2 times, most recently from 428aa83 to 033634a Compare December 10, 2019 06:20
# alicloud_profile=test
# alicloud_role_arn=acs:ram::1182725234319447:role/role_name
# alicloud_assume_role_session_name=ansible-test
# alicloud_assume_role_policy={"Statement": [{"Action": ["*"],"Effect": "Allow","Resource": "*"}],"Version": "1"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然有了assume_role了,为啥还要alicloud_role_arn,alicloud_assume_role_session_name和alicloud_assume_role_policy
这几个应该都放在assume_role 这个参数下面

@@ -441,7 +480,7 @@ def connect_to_ecs(self, module, region):

# Check module args for credentials, then check environment vars access key pair and region
connect_args = self.credentials
connect_args['user_agent'] = 'Ansible-Provider-Alicloud'
connect_args['user_agent'] = 'Ansible-Provider-Inventory'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ansible-Provider-Alicloud/Dynamic-Inventory

@xiaozhu36 xiaozhu36 merged commit c9f71ec into alibaba:master Dec 10, 2019
@lixue323 lixue323 deleted the inv branch March 1, 2020 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants