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

资产采集的客户端 #77

Open
strugglehonor opened this issue May 15, 2020 · 5 comments
Open

资产采集的客户端 #77

strugglehonor opened this issue May 15, 2020 · 5 comments

Comments

@strugglehonor
Copy link

大佬,请问可以传一下资产采集的客户端代码吗,想看看您采集资产是怎么编写playbook,操作ansible API,以及过滤数据

@pythonzm
Copy link
Owner

你指的是采集服务器的基本信息,还是采集阿里云资产?而且所有的代码都在仓库里了,没有其他额外的代码

@strugglehonor
Copy link
Author

大佬,我指的是采集服务器的基本信息

@strugglehonor
Copy link
Author

请问是没有用ansible playbook,直接调用ansible API采集到数据然后进行过滤,然后发给后端进行处理与入库吗

@pythonzm
Copy link
Owner

嗯,没有用playbook,直接使用的 setup 模块,这个函数就是解析的过程:https://github.com/pythonzm/Ops/blob/master/assets/views.py#L448

@strugglehonor
Copy link
Author

get,非常感谢哈

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

No branches or pull requests

2 participants