]> WPIA git - infra.git/blobdiff - manager/config
add: readme in root dir
[infra.git] / manager / config
index 6625d0d892a1bc609578026a69cffc4c41796ef5..3d7b25a323c5be165d15857e4aebaf6051ac2cee 100755 (executable)
@@ -64,3 +64,35 @@ function read_activation_link {
     read -rp "Link: " link
     printf '%s\n' "$link"
 }
+
+# Assign to the variable "admin_email" the email address of the gigi user account that should issue certificates for the system.
+function read_admin_email {
+    read -rp "Gigi user account email for certificates: " admin_email
+}
+
+# Assign to the variable "admin_password" the password of the gigi user account that should issue certificates for the system.
+function read_admin_password {
+    read -rsp "Gigi password: " admin_password
+}
+
+# Connect to gigi using $1 as local url part, the remaining args as additional curl arguments, "root.crt" as root certificate, "$folder/cookie-jar" as cookie-jar.
+function mcurl {
+    local url="$1"
+    shift
+    curl -s --cacert root.crt -b $folder/cookie-jar "https://www.$domain/$url" "$@"
+}
+
+# Connect via ssh into the "hop" container.
+function admin_ssh {
+    ssh -i admin-key -p 2222 "admin@$to" "$@"
+}
+
+# Install backup is a hook to be triggered before the sytem is set up
+function install_backup {
+    :
+}
+
+function populate_system {
+    # default is create fresh data using bootstrap-user
+    execute-bootstrap-user
+}