Add glance
This commit is contained in:
parent
161d2e6d26
commit
adb2ef6f64
@ -7,7 +7,7 @@ input:
|
||||
value:
|
||||
image:
|
||||
schema: str!
|
||||
value:
|
||||
value: cgenie/centos-rdo-glance-registry
|
||||
ports:
|
||||
schema: [{value: [{value: int}]}]
|
||||
value: []
|
||||
@ -24,35 +24,4 @@ input:
|
||||
schema: str!
|
||||
value: []
|
||||
|
||||
db_host:
|
||||
schema: str!
|
||||
value:
|
||||
db_root_password:
|
||||
schema: str!
|
||||
value:
|
||||
db_name:
|
||||
schema: str!
|
||||
value:
|
||||
db_password:
|
||||
schema: str!
|
||||
value:
|
||||
db_user:
|
||||
schema: str!
|
||||
value:
|
||||
keystone_admin_token:
|
||||
schema: str!
|
||||
value:
|
||||
keystone_admin_tenant:
|
||||
schema: str!
|
||||
value:
|
||||
keystone_user:
|
||||
schema: str!
|
||||
value:
|
||||
keystone_password:
|
||||
schema: str!
|
||||
value:
|
||||
keystone_host:
|
||||
schema: str!
|
||||
value:
|
||||
|
||||
tags: [resource/container]
|
||||
|
@ -57,6 +57,7 @@ resources:
|
||||
keystone_ip: 'keystone_service_1::ip'
|
||||
keystone_admin_port: 'keystone_service_1::admin_port'
|
||||
keystone_port: 'keystone_service_1::port'
|
||||
admin_token: 'keystone_config_1::admin_token'
|
||||
|
||||
- id: glance_base
|
||||
from: templates/glance_base.yml
|
||||
@ -71,5 +72,19 @@ resources:
|
||||
ssh_user: '{{ssh_user}}'
|
||||
ssh_key: '{{ssh_key}}'
|
||||
|
||||
- id: glance_registry_1
|
||||
from: templates/glance_registry.yml
|
||||
values:
|
||||
idx: 1
|
||||
keystone_admin_port: 'keystone_service_1::admin_port'
|
||||
keystone_ip: 'keystone_service_1::ip'
|
||||
mysql_password: 'glance_db_user::user_password'
|
||||
mysql_user: 'keystone_db_user::user_name'
|
||||
mysql_db: 'keystone_db_user::db_name'
|
||||
mysql_ip: 'mariadb_service::ip'
|
||||
ip: '{{ip}}'
|
||||
ssh_user: '{{ssh_user}}'
|
||||
ssh_key: '{{ssh_key}}'
|
||||
|
||||
tags: ['resources/controller', 'resource/primary_controller']
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
id: glance_register_{{idx}}
|
||||
|
||||
resources:
|
||||
- id: keystone_config_{{idx}}
|
||||
from: resources/keystone_config
|
||||
values:
|
||||
config_dir: '/etc/solar/keystone_{{idx}}'
|
||||
db_host: '{{db_host}}'
|
||||
db_port: '{{db_port}}'
|
||||
db_name: '{{db_name}}'
|
||||
db_user: '{{db_user}}'
|
||||
db_password: '{{db_password}}'
|
||||
ip: '{{ip}}'
|
||||
ssh_user: '{{ssh_user}}'
|
||||
ssh_key: '{{ssh_key}}'
|
||||
|
||||
|
||||
- id: keystone_service_{{idx}}
|
||||
from: resources/keystone_service
|
||||
values:
|
||||
image: 'kollaglue/centos-rdo-k-keystone'
|
||||
config_dir: 'keystone_config_{{idx}}::config_dir'
|
||||
ip: 'keystone_config_{{idx}}::ip'
|
||||
ssh_user: 'keystone_config_{{idx}}::ssh_user'
|
||||
ssh_key: 'keystone_config_{{idx}}::ssh_key'
|
||||
|
||||
tags: ['resources/keystone', 'resource/keystone_api']
|
||||
|
26
templates/glance_registry.yml
Normal file
26
templates/glance_registry.yml
Normal file
@ -0,0 +1,26 @@
|
||||
id: glance_register_{{idx}}
|
||||
|
||||
resources:
|
||||
- id: glance_config_{{idx}}
|
||||
from: resources/glance_config
|
||||
values:
|
||||
keystone_admin_port: '{{keystone_admin_port}}'
|
||||
keystone_ip: '{{keystone_ip}}'
|
||||
mysql_password: '{{mysql_password}}'
|
||||
mysql_user: '{{mysql_user}}'
|
||||
mysql_db: '{{mysql_db}}'
|
||||
mysql_ip: '{{mysql_ip}}'
|
||||
ip: '{{ip}}'
|
||||
ssh_user: '{{ssh_user}}'
|
||||
ssh_key: '{{ssh_key}}'
|
||||
|
||||
|
||||
- id: glance_registry_{{idx}}
|
||||
from: resources/glance_registry_service
|
||||
values:
|
||||
ip: 'keystone_config_{{idx}}::ip'
|
||||
ssh_user: 'keystone_config_{{idx}}::ssh_user'
|
||||
ssh_key: 'keystone_config_{{idx}}::ssh_key'
|
||||
|
||||
tags: ['resources/keystone', 'resource/keystone_api']
|
||||
|
Loading…
Reference in New Issue
Block a user