我试图使用boto_rds.present创建一个RDS实例,代码如下:
rds_instance_abc:
boto_rds.present:
- name: learn_rds1
- allocated_storage: 10
- storage_type: gp2
- db_name: abc_testing
- db_instance_class: db.t2.micro
- engine: MySQL
- master_username: root
- master_user_password: root
- region: us-east-1}
- keyid: fsdfsdfsdfs
- key: fsdfsdfsfsdfsdfsfsdfs
在salt-call state.highstate
之后我有错误:
local:
----------
ID: rds_instance_abc
Function: boto_rds.present
Name: learn_rds1
Result: False
Comment: State 'boto_rds.present' found in SLS u'tester' is unavailable
Started:
Duration:
Changes:
Summary
------------
Succeeded: 0
Failed: 1
I have installed boto in my instance: pip27 install boto
如果我使用boto’s RDS interface via shell,则可以很好地创建rds实例。
我在州内遗失了什么吗?
这是版本报告:
Salt: 2014.7.5
Python: 2.6.9 (unknown, Apr 1 2015, 18:16:00)
Jinja2: 2.7.2
M2Crypto: 0.21.1
msgpack-python: 0.4.6
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.3.1
RAET: Not Installed
ZMQ: 3.2.5
Mako: Not Installed
答案 0 :(得分:1)
boto_rds Salt模块在2014.7分支中不可用。它进入了2015.5分支机构,应尽快发布。
您可以使用boto_rds.py模块并在Salt master上的/ srv / salt / _modules和/ srv / salt / _state目录中进行状态和部署。