我目前正在尝试SaltStack,它似乎有一些很酷的特性。但我错过了Ansible的一个模块:
在SaltStack中,什么相当于Ansible的模块"uri“?
Ansible中的示例:
- name: using webservices
uri:
url: http://.../v1/method
method: PUT
body: {{ lookup('template', 'job.j2') }}
body_format: json
status_code: 201,409
HEADER_Content-Type: "application/json"发布于 2016-10-26 12:58:01
您可以使用http.query模块。
例如:
http://example.com/restapi:
http.query:
- match: 'SUCCESS'
- data_render: True
- header_file: /tmp/headers.txt
- header_render: True
- cookies: True
- persist_session: Truehttps://stackoverflow.com/questions/40261410
复制相似问题