大佬,请问可以传一下资产采集的客户端代码吗,想看看您采集资产是怎么编写playbook,操作ansible API,以及过滤数据
Activity
pythonzm commentedon May 16, 2020
你指的是采集服务器的基本信息,还是采集阿里云资产?而且所有的代码都在仓库里了,没有其他额外的代码
strugglehonor commentedon May 16, 2020
大佬,我指的是采集服务器的基本信息
strugglehonor commentedon May 16, 2020
请问是没有用ansible playbook,直接调用ansible API采集到数据然后进行过滤,然后发给后端进行处理与入库吗
pythonzm commentedon May 18, 2020
嗯,没有用playbook,直接使用的
setup模块,这个函数就是解析的过程:https://github.com/pythonzm/Ops/blob/master/assets/views.py#L448strugglehonor commentedon May 18, 2020
get,非常感谢哈