From 09610d64315ce3194f509f69cab01c55bd61509f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 16 Jan 2024 16:22:42 +0100 Subject: move examples --- actions.yml | 14 -------------- endpoints.yml | 21 --------------------- example/test/actions.yml | 14 ++++++++++++++ example/test/endpoints.yml | 21 +++++++++++++++++++++ example/test/triggers.yml | 10 ++++++++++ triggers.yml | 10 ---------- 6 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 actions.yml delete mode 100644 endpoints.yml create mode 100644 example/test/actions.yml create mode 100644 example/test/endpoints.yml create mode 100644 example/test/triggers.yml delete mode 100644 triggers.yml diff --git a/actions.yml b/actions.yml deleted file mode 100644 index caf6e70..0000000 --- a/actions.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -send-hello: - trigger: - - conditional: - interval: 30 - when: - - host1.user.jonas > 0 - - True - then: - - host1.notify: - msg: Hello - - host1.notify: - msg: World! - - host1.wol: {} diff --git a/endpoints.yml b/endpoints.yml deleted file mode 100644 index e52cd70..0000000 --- a/endpoints.yml +++ /dev/null @@ -1,21 +0,0 @@ -host1: - info: - hostname: 'localhost' - mac: 90:1b:0e:4a:d8:1b - transports: - ssh: - class: automato.transport.SshTransport - hostname: 'localhost' - username: 'jonas' - allow_agent: True - commands: - notify: - class: automato.command.NotifyCommand - transport: ssh - wol: - class: automato.command.WakeOnLanCommand - states: - user: - class: automato.state.UserSessionState - transport: ssh - ttl: 30 diff --git a/example/test/actions.yml b/example/test/actions.yml new file mode 100644 index 0000000..caf6e70 --- /dev/null +++ b/example/test/actions.yml @@ -0,0 +1,14 @@ +--- +send-hello: + trigger: + - conditional: + interval: 30 + when: + - host1.user.jonas > 0 + - True + then: + - host1.notify: + msg: Hello + - host1.notify: + msg: World! + - host1.wol: {} diff --git a/example/test/endpoints.yml b/example/test/endpoints.yml new file mode 100644 index 0000000..e52cd70 --- /dev/null +++ b/example/test/endpoints.yml @@ -0,0 +1,21 @@ +host1: + info: + hostname: 'localhost' + mac: 90:1b:0e:4a:d8:1b + transports: + ssh: + class: automato.transport.SshTransport + hostname: 'localhost' + username: 'jonas' + allow_agent: True + commands: + notify: + class: automato.command.NotifyCommand + transport: ssh + wol: + class: automato.command.WakeOnLanCommand + states: + user: + class: automato.state.UserSessionState + transport: ssh + ttl: 30 diff --git a/example/test/triggers.yml b/example/test/triggers.yml new file mode 100644 index 0000000..b1b38c7 --- /dev/null +++ b/example/test/triggers.yml @@ -0,0 +1,10 @@ +conditional: + class: automato.trigger.ConditionalTrigger + +#mqtt: +# class: trigger.Mqtt +# server: asdf +# user: OwO +# +#timer: +# class: trigger.Timer diff --git a/triggers.yml b/triggers.yml deleted file mode 100644 index b1b38c7..0000000 --- a/triggers.yml +++ /dev/null @@ -1,10 +0,0 @@ -conditional: - class: automato.trigger.ConditionalTrigger - -#mqtt: -# class: trigger.Mqtt -# server: asdf -# user: OwO -# -#timer: -# class: trigger.Timer -- cgit v1.2.3