From 4170fe1e0657e90bfa394d975d55c50c05e18b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Thu, 25 Jun 2015 12:02:21 +0000 Subject: [PATCH] Glance virtual resources --- templates/glance_base.yml | 26 ++++++++++++++++++++++++++ templates/glance_register.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 templates/glance_base.yml create mode 100644 templates/glance_register.yml diff --git a/templates/glance_base.yml b/templates/glance_base.yml new file mode 100644 index 00000000..98a293a0 --- /dev/null +++ b/templates/glance_base.yml @@ -0,0 +1,26 @@ +id: glance_base + +resources: + - id: glance_db + from: resources/mariadb_db + values: + db_name: {{db_name}} + login_user: '{{login_user}}' + login_password: '{{login_password}}' + login_port: '{{login_port}}' + ip: '{{ip}}' + ssh_user: '{{ssh_user}}' + ssh_key: '{{ssh_key}}' + + - id: glance_db_user + from: resources/mariadb_user + values: + user_password: '{{user_password}}' + user_name: '{{user_name}}' + db_name: 'keystone_db::db_name' + login_user: 'keystone_db::login_user' + login_password: 'keystone_db::login_password' + login_port: 'keystone_db::login_port' + ip: 'keystone_db::ip' + ssh_user: 'keystone_db::ssh_user' + ssh_key: 'keystone_db::ssh_key' diff --git a/templates/glance_register.yml b/templates/glance_register.yml new file mode 100644 index 00000000..6e483d31 --- /dev/null +++ b/templates/glance_register.yml @@ -0,0 +1,28 @@ +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'] +