Solard resource with run action (start-stop-daemon)
This commit is contained in:
parent
e4f65416ae
commit
551b6868c2
5
resources/transport_solard/actions/run.yaml
Normal file
5
resources/transport_solard/actions/run.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
- hosts: [{{ host }}]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- shell: pip install -e /vagrant/solard
|
||||
- shell: start-stop-daemon -b --name solard --start --make-pidfile --pidfile /tmp/solard.pid --chdir /vagrant/solard --exec /usr/bin/python -- solard/tcp_server.py
|
22
resources/transport_solard/meta.yaml
Normal file
22
resources/transport_solard/meta.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
id: transport_solard
|
||||
handler: ansible
|
||||
input:
|
||||
solard_user:
|
||||
schema: str!
|
||||
value:
|
||||
solard_password:
|
||||
schema: str!
|
||||
value:
|
||||
# solard_transport_class:
|
||||
# schema: str!
|
||||
# value:
|
||||
solard_port:
|
||||
schema: int!
|
||||
value: 5555
|
||||
name:
|
||||
schema: str!
|
||||
value: solard
|
||||
location_id:
|
||||
schema: str!
|
||||
value:
|
||||
reverse: True
|
Loading…
x
Reference in New Issue
Block a user