OpenStack-Ansible CloudKitty¶
这个 Ansible 角色安装并配置 OpenStack CloudKitty。这个角色将安装以下 Upstart 服务
cloudkitty-api
cloudkitty-processor
将服务添加到您的 OpenStack-Ansible 部署¶
要将新服务添加到您的 OpenStack-Ansible (OSA) 部署
在你的
conf.d或openstack_user_config.yml中定义rating_hosts。例如rating_hosts: infra1: ip: 172.20.236.111 infra2: ip: 172.20.236.112 infra3: ip: 172.20.236.113
创建相应的 LXC 容器(跳过金属部署中的此步骤)
openstack-ansible openstack.osa.containers_lxc_create --limit cloudkitty_all,rating_hosts运行服务部署 playbook
openstack-ansible openstack.osa.cloudkitty
有关更多信息,请参阅 OpenStack-Ansible 项目文档。
始终验证集成是否成功以及服务是否在生产环境中使用前表现正确。
必需变量¶
external_lb_vip_address: 172.16.24.1
internal_lb_vip_address: 192.168.0.1
cloudkitty_galera_address: "{{ internal_lb_vip_address }}"
cloudkitty_container_mysql_password: "SuperSecretePassword1"
cloudkitty_service_password: "SuperSecretePassword2"
cloudkitty_rabbitmq_password: "SuperSecretePassword3"
示例 Playbook¶
- name: Install cloudkitty service
hosts: cloudkitty_all
user: root
roles:
- { role: "os_cloudkitty", tags: [ "os-cloudkitty" ] }
vars:
external_lb_vip_address: 172.16.24.1
internal_lb_vip_address: 192.168.0.1
cloudkitty_galera_address: "{{ internal_lb_vip_address }}"
cloudkitty_container_mysql_password: "SuperSecretePassword1"
cloudkitty_service_password: "SuperSecretePassword2"
cloudkitty_oslomsg_rpc_password: "SuperSecretePassword3"
cloudkitty_oslomsg_notify_password: "SuperSecretePassword4"
依赖项¶
此角色需要在目标主机上安装 pip >= 7.1。