morpheus数据的ansible模

ansible-modules-morpheus的Python项目详细描述


Ansible模块Morpheus

Latest VersionLicense: MIT

安装此模块:

  • 通过pip
pipinstallansible-modules-morpheus
  • 通过ansible-galaxy
ansible-galaxyinstall'git+https://github.com/gomorpheus/ansible-modules-morpheus.git'

环境变量

如果您选择使用env vars,可以将以下变量导出到您使用ansible控制的环境中,以便向您的morpheus设备进行身份验证:

  • morpheus设备的url
  • morph_authType:morpheus的授权类型(令牌或用户密码)
  • morph_user:userpass authType的morpheus设备用户名
  • morph_password:用于userpass authType的morpheus设备用户密码
  • morph_token:用于token authType的morpheus api令牌
  • morf_ssl_verify:用于验证ssl的布尔值

特定模块的附加变量:

  • morph_secret:morpheus密码值的密钥在morph_cypher模块中读取

参数

或者,可以通过在任务模块中使用离散变量将参数传递给模块。支持的参数是:

  • baseurl:morpheus设备的url
  • authType:Morpheus的授权类型(令牌或用户密码)
  • api_令牌:用于令牌authType的morpheus api令牌
  • username:morpheus设备username for userpass authType
  • 密码:用于userpass authType的Morpheus设备用户密码
  • ssl_verify:用于验证ssl的布尔值

对于特定模块

  • secret_key:morpheus secret key for cypher value reads in morph_cypher module

模块示例

变形机

-hosts:footasks:-name:gettokenmorph_cypher:baseurl:"https://sandbox.morpheusdata.com"secret_key:"password/spark"authtype:tokenssl_verify:Falseregister:results-debug:var=results.secret

或者显式地将api_令牌作为变量传递:

-hosts:footasks:-name:gettokenmorph_cypher:baseurl:"https://sandbox.morpheusdata.com"secret_key:"secret/nooneknows"authtype:tokenapi_token:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"register:results

查找插件示例

变形机

-debug:msg:"{{ lookup('morph_cypher', 'baseurl=https://sandbox.morpheusdata.com authtype=token api_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx secret_key=password/spark')}}"-debug:msg:"{{ lookup('morph_cypher', 'baseurl=https://sandbox.morpheusdata.com authtype=userpass username=slim_shady password=password secret_key=secret/hello') }}"-debug:msg:"{{ lookup('morph_cypher', 'baseurl=https://sandbox.morpheusdata.com authtype=token api_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ssl_verify=False secret_key=key/256/myKey') }}"

许可证

MIT

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
用setter将对象转换为java中的映射   java如何通过JQL直接找到多对多实体的交集?   java Android文本检查帮助   纸牌游戏中的java玩家顺序   java从活动A移动到活动B,再从活动B返回到活动A   java如何在GAE servlet中保存JSON文件以满足Android客户端的请求?   连接到本地主机上的SLiM服务器时发生java错误:8080   java是否可以使用setOnMarkerClickListener对for循环中创建的各种标记产生不同的结果?   检查数字是否为回文的java逻辑   java在两个独立的服务中是否存在数据同步模式?   java在组合框中选择ascendingorder时如何对元素列表进行排序   java如何在不更新旧表的情况下更新表中的字段并将其插入新表   javasos和return语句   java与示例安卓活动建立解析连接。错误:任务“:app:dexDebug”的执行失败   java Maven发布问题,带有代理授权的分叉部署过程,因为参数失败,需要407代理授权