Skip to content

资产采集的客户端 #77

Open
Open

Description

@strugglehonor

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

Activity

  1. pythonzm commented on May 16, 2020

    @pythonzm
    Owner

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

  2. strugglehonor commented on May 16, 2020

    @strugglehonor
    Author

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

  3. strugglehonor commented on May 16, 2020

    @strugglehonor
    Author

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

  4. pythonzm commented on May 18, 2020

    @pythonzm
    Owner

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

  5. strugglehonor commented on May 18, 2020

    @strugglehonor
    Author

    get,非常感谢哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions