diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4328201 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +.idea +__pycache__/ +.metals +.swp +**/.swp +*.iml +.DS_Store +**/.~lock.* +plasmactl +plasmactl.exe +.compose +.compose/* +file.diff +build_*/ +deploy.log +.plasmactl/* +!.plasmactl/config.yaml +codebase.md + diff --git a/.plasmactl/config.yaml b/.plasmactl/config.yaml new file mode 100644 index 0000000..ef0324b --- /dev/null +++ b/.plasmactl/config.yaml @@ -0,0 +1,41 @@ +launchrctl: + actions_naming: + - search: ".roles." + replace: "." + - search: "_" + replace: "-" +web: + vars_file: platform/group_vars/platform/vars.yaml + variables: + - plasmactl_web_ui_platform_name + - plasmactl_web_ui_platform_page_name + - plasmactl_web_ui_platform_header_name + - plasmactl_web_ui_platform_favicon + - machine_color_1 + - machine_color_2 + - machine_color_3 + - machine_color_4 + - machine_color_5 + - machine_color_6 + - machine_color_7 + - machine_color_8 + - machine_color_9 + - machine_color_10 + - machine_color_11 + - machine_color_12 + - machine_color_13 + - machine_color_14 + - machine_color_15 + - machine_color_16 + - machine_color_17 +sshconfig: + port: 13377777 + user: skilld +platform: + entities: + timelog: + diff: + gitlab_url: http://projects.interaction.svc.skilld:8081/api/v4 + odoo_url: http://erp.interaction.svc.skilld:8069 + odoo_admin: skilld + odoo_db: skilld diff --git a/image/actions/build/action.sh b/image/actions/build/action.sh new file mode 100755 index 0000000..3481c29 --- /dev/null +++ b/image/actions/build/action.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +echo +# Print the total count of arguments +echo "Total number of arguments passed to the script: $#" +count=1 +for arg in "$@" +do + if [ -z "$arg" ]; then + echo "- Argument $count: \"\"" + else + echo "- Argument $count: $arg" + fi + count=$((count + 1)) +done diff --git a/image/actions/build/action.yaml b/image/actions/build/action.yaml new file mode 100644 index 0000000..389c102 --- /dev/null +++ b/image/actions/build/action.yaml @@ -0,0 +1,44 @@ +action: + title: Build + description: Create + arguments: + - name: action + title: Action + description: Operation type to use (sub/pub) + enum: [sub, pub] + required: true + options: + - name: firstoption + title: First option + type: string + default: "" + - name: secondoption + title: Second option + description: Option to do something + type: boolean + default: false + - name: sshpass + title: SSH Key passphrase + process: + - processor: keyring.GetKeyValue + options: + key: sshpass + default: "" + - name: port + description: The SSH port for connections (default is 22). + type: integer + process: + - processor: config.GetValue + options: + path: sshconfig.port + default: 22 + +runtime: + type: shell + env: + MY_ENV_VAR: "my_env_var" + script: | + echo "firstoption: {{ .firstoption }}" + echo "secondoption: {{ .secondoption }}" + echo "sshpass: {{ .sshpass }}" + echo "port: {{ .port }}"