solar-resources/templates/controller.yaml
2015-09-15 12:24:34 +02:00

77 lines
2.0 KiB
YAML

id: primary_controller
resources:
- id: mariadb_service
from: resources/mariadb_service
values:
port: 3306
root_password: mariadb
image: mariadb
ip: '{{ip}}'
ssh_user: '{{ssh_user}}'
ssh_key: '{{ssh_key}}'
- id: rabbitmq_service
from: resources/rabbitmq_service
values:
ip: '{{ip}}'
ssh_user: '{{ssh_user}}'
ssh_key: '{{ssh_key}}'
- id: keystone_base
from: templates/keystone_base.yaml
values:
login_user: root
login_password: 'mariadb_service::root_password'
login_port: 'mariadb_service::port'
db_name: 'keystone'
db_host: 'mariadb_service::ip'
user_password: 'keystone'
user_name: 'keystone'
ip: '{{ip}}'
ssh_user: '{{ssh_user}}'
ssh_key: '{{ssh_key}}'
- id: keystone_api_1
from: templates/keystone_api.yaml
values:
idx: 1
db_password: 'keystone_db_user::user_password'
db_user: 'keystone_db_user::user_name'
db_port: 'keystone_db_user::login_port'
db_name: 'keystone_db_user::db_name'
db_host: 'mariadb_service::ip'
admin_token: 132fdsfwqee
admin_port: 35357
port: 5000
ip: '{{ip}}'
ssh_user: '{{ssh_user}}'
ssh_key: '{{ssh_key}}'
- id: openstack_base
from: templates/openstack_base.yaml
values:
ip: '{{ip}}'
ssh_user: '{{ssh_user}}'
ssh_key: '{{ssh_key}}'
keystone_ip: 'keystone_service_1::ip'
keystone_admin_port: 'keystone_service_1::admin_port'
keystone_port: 'keystone_service_1::port'
admin_token: 'keystone_service_1::admin_token'
- id: openrc_file
from: resources/openrc_file
values:
keystone_host: 'keystone_service_1::ip'
keystone_port: 'keystone_service_1::admin_port'
tenant: 'admin_user::tenant_name'
user_name: 'admin_user::user_name'
password: 'admin_user::user_password'
ip: '{{ip}}'
ssh_key: '{{ssh_key}}'
ssh_user: '{{ssh_user}}'
tags: ['resources/controller', 'resource/primary_controller']