【问题标题】:State 'boto_rds.present' is unavailable. Ec2/saltstack状态“boto_rds.present”不可用。 Ec2/盐堆
【发布时间】:2015-07-18 15:07:59
【问题描述】:

我正在尝试使用 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

如果我通过 shell 使用 boto’s RDS interface,则 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

【问题讨论】:

  • 你运行的是什么版本的 Salt?
  • @mafro:我用那个信息更新了帖子。

标签: amazon-web-services amazon-ec2 boto amazon-rds salt-stack


【解决方案1】:

boto_rds Salt 模块在 2014.7 分支中不可用。它进入了 2015.5 分支,应该很快就会发布。

您可能会获取 boto_rds.py 模块和状态,然后从 Salt Master 上的 /srv/salt/_modules 和 /srv/salt/_state 目录部署它们。

https://github.com/saltstack/salt/blob/58c7ba2b5fc68f5d1fad6540900560b990bc90f7/salt/states/boto_rds.py#L6

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-07
    • 2018-03-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多