-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TES-381 Added provisioning of graphdb backup script #11
Conversation
files/graphdb_backup
Outdated
|
||
az login --identity | ||
|
||
RESOURCE_GROUP="$(curl -s -H Metadata:true "http://169.254.169.254/metadata/instance/compute/resourceGroupName?api-version=2021-01-01&format=text")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like these variables here. I could use the image with another user data script when creating VMs, we should not restrict this, IMO. Also, the way how the script assumes that the first storage account and app config are the ones to be used... it's wrong as it is not portable to most subscriptions. Better to pass the variables as arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ad326e3
to
d93229a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the PR description to mention the extra commits
variables.pkr.hcl
Outdated
variable use_azure_cli_auth { | ||
description = "CLI auth will use the information from an active az login session to connect to Azure and set the subscription id and tenant id associated to the signed in account." | ||
type = bool | ||
default = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this true
by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
files/graphdb_backup
Outdated
|
||
az login --identity | ||
|
||
GRAPHDB_ADMIN_PASSWORD="$(az appconfig kv show --name ${1} --auth-mode login --key graphdb-password | jq -r .value | base64 -d)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we provide it? It's coupling the script to KV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
files/graphdb_backup
Outdated
|
||
# Checks if GraphDB is running in cluster | ||
IS_CLUSTER=$( | ||
curl -s -o /dev/null \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the indent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Added provisioning of GraphDB backup script. Added keepalive and file max size settings. Improved logging of the GraphDB install script. Added script descriptions Removed dependency on application config resource from backup script Added support for single instance GDB to the backup script Changed use_azure_cli_auth to true
24a6129
to
eac5fea
Compare
Description
Added installation of Telegraf.
Added provisioning of GraphDB backup script.
Added keepalive and file max size settings.
Improved logging of the GraphDB install script.
Related Issues
TES-381
Changes
Added installation of Telegraf.
Added provisioning of GraphDB backup script.
Added keepalive and file max size settings.
Improved logging of the GraphDB install script.
Screenshots (if applicable)
N/A
Checklist