You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/02/24 12:47:44 UTC
[incubator-dlab] 01/02: DLAB-1531 added sbn-tag for azure storage
accounts
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1581
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 431f1e01b9d4b4e5c6187a766a4e2e27502a20e1
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 24 14:27:39 2020 +0200
DLAB-1531 added sbn-tag for azure storage accounts
---
.../src/general/scripts/azure/project_prepare.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py b/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
index 7976d5a..a79f9e5 100644
--- a/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
+++ b/infrastructure-provisioning/src/general/scripts/azure/project_prepare.py
@@ -49,7 +49,7 @@ if __name__ == "__main__":
project_conf['azure_ad_user_name'] = os.environ['azure_iam_user']
project_conf['key_name'] = os.environ['conf_key_name']
-
+ project_conf['tag_name'] = notebook_config['service_base_name'] + '-tag'
project_conf['vpc_name'] = os.environ['azure_vpc_name']
project_conf['subnet_name'] = os.environ['azure_subnet_name']
project_conf['private_subnet_name'] = project_conf['service_base_name'] + '-' + project_conf['project_name'] + '-subnet'
@@ -95,7 +95,8 @@ if __name__ == "__main__":
"SBN": project_conf['service_base_name'],
"project_tag": project_conf['project_tag'],
"endpoint_tag": project_conf['endpoint_tag'],
- os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value']}
+ os.environ['conf_billing_tag_key']: os.environ['conf_billing_tag_value'],
+ project_conf['tag_name']: project_conf['shared_bucket_name']}
project_conf['primary_disk_size'] = '32'
project_conf['shared_storage_account_name'] = '{0}-{1}-shared-storage'.format(project_conf['service_base_name'],
project_conf['endpoint_name'])
@@ -103,7 +104,8 @@ if __name__ == "__main__":
project_conf['shared_storage_account_tags'] = {"Name": project_conf['shared_storage_account_name'],
"SBN": project_conf['service_base_name'],
os.environ['conf_billing_tag_key']: os.environ[
- 'conf_billing_tag_value'], "endpoint_tag": project_conf['endpoint_tag'],}
+ 'conf_billing_tag_value'], "endpoint_tag": project_conf['endpoint_tag'],
+ project_conf['tag_name']: project_conf['shared_bucket_name']}
# FUSE in case of absence of user's key
try:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org