From f25777f17e133d931ab90c3e8635e2137c07704a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Thu, 25 Jun 2015 12:02:00 +0000 Subject: [PATCH] Keystone virtual resources --- templates/keystone_api.yml | 27 +++++++++++++++++++++++++++ templates/keystone_base.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 templates/keystone_api.yml create mode 100644 templates/keystone_base.yml diff --git a/templates/keystone_api.yml b/templates/keystone_api.yml new file mode 100644 index 00000000..566f9448 --- /dev/null +++ b/templates/keystone_api.yml @@ -0,0 +1,27 @@ +id: keystone_api_{{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'] diff --git a/templates/keystone_base.yml b/templates/keystone_base.yml new file mode 100644 index 00000000..34fbddf9 --- /dev/null +++ b/templates/keystone_base.yml @@ -0,0 +1,26 @@ +id: keystone_base + +resources: + - id: keystone_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: keystone_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'