Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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

41 changes: 41 additions & 0 deletions .plasmactl/config.yaml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions image/actions/build/action.sh
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions image/actions/build/action.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"