solar-resources/templates/openstack_base/1.0.0/openstack_base.yaml
Łukasz Oleś 25dc2685f5 Refactor VirtualResources
- rename VirtualResource to Composer
- rename event parameter depend_action to child_action
- rename values parameter to input

Closes-bug: #1526780

Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
2015-12-29 16:50:46 +01:00

75 lines
2.1 KiB
YAML

id: openstack_base
resources:
- id: admin_tenant
from: resources/keystone_tenant
input:
tenant_name: admin
keystone_port: '#{keystone_admin_port}#'
keystone_host: '#{keystone_ip}#'
admin_token: '#{admin_token}#'
ip: '#{ip}#'
ssh_user: '#{ssh_user}#'
ssh_key: '#{ssh_key}#'
- id: admin_user
from: resources/keystone_user
input:
user_name: 'admin'
user_password: 'admin'
tenant_name: 'admin_tenant::tenant_name'
keystone_port: '#{keystone_admin_port}#'
keystone_host: '#{keystone_ip}#'
admin_token: '#{admin_token}#'
ip: '#{ip}#'
ssh_user: '#{ssh_user}#'
ssh_key: '#{ssh_key}#'
- id: admin_role
from: resources/keystone_role
input:
role_name: 'admin'
user_name: 'admin_user::user_name'
tenant_name: 'admin_user::tenant_name'
keystone_port: '#{keystone_admin_port}#'
keystone_host: '#{keystone_ip}#'
admin_token: '#{admin_token}#'
ip: '#{ip}#'
ssh_user: '#{ssh_user}#'
ssh_key: '#{ssh_key}#'
- id: keystone_service_endpoint
from: resources/keystone_service_endpoint
input:
#% raw %#
adminurl: 'http://#{admin_ip}#:#{admin_port}#/v2.0'
internalurl: 'http://#{internal_ip}#:#{internal_port}#/v2.0'
publicurl: 'http://#{public_ip}#:#{public_port}#/v2.0'
#% endraw %#
description: 'OpenStack Identity Service'
type: 'identity'
endpoint_name: 'keystone'
admin_port: '#{keystone_admin_port}#'
public_port: '#{keystone_port}#'
internal_port: '#{keystone_port}#'
admin_ip: '#{ip}#'
public_ip: '#{ip}#'
internal_ip: '#{ip}#'
keystone_admin_port: '#{keystone_admin_port}#'
keystone_host: '#{keystone_ip}#'
admin_token: '#{admin_token}#'
ip: '#{ip}#'
ssh_user: '#{ssh_user}#'
ssh_key: '#{ssh_key}#'
- id: service_tenant
from: resources/keystone_tenant
input:
tenant_name: services
keystone_port: '#{keystone_admin_port}#'
keystone_host: '#{keystone_ip}#'
admin_token: '#{admin_token}#'
ip: '#{ip}#'
ssh_user: '#{ssh_user}#'
ssh_key: '#{ssh_key}#'