Commit 0e6d1f40 authored by Spiros Koulouzis's avatar Spiros Koulouzis

moved dbs

parent 28dfc109
......@@ -114,7 +114,7 @@ def handle_delivery(message):
def threaded_function(args):
while not done:
connection.process_data_events()
sleep(5)
sleep(8)
if __name__ == "__main__":
......
......@@ -62,7 +62,7 @@ services:
- rabbit
- mongo
- sure-tosca
image: manager
image: qcdis/manager
environment:
RABBITMQ_HOST: rabbit
MONGO_HOST: mongo
......
......@@ -14,9 +14,7 @@ import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator.Feature;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
import nl.uva.sne.drip.api.NotFoundException;
import nl.uva.sne.drip.dao.ToscaTemplateDAO;
import nl.uva.sne.drip.model.Exceptions.TypeExeption;
......
......@@ -71,9 +71,10 @@ class SemaphoreHelper:
repository = self.find_repository(project_id, name, git_url)
return repository.id
def create_template(self, project_id,key_id,inventory_id,repository_id,playbook_name):
def create_template(self, project_id,key_id,inventory_id,repository_id,playbook_name,arguments=None):
template_request = TemplateRequest(ssh_key_id=key_id, project_id=project_id, inventory_id=inventory_id,
repository_id=repository_id, alias=playbook_name, playbook=playbook_name)
repository_id=repository_id, alias=playbook_name, playbook=playbook_name,
arguments=arguments)
self.project_api.project_project_id_templates_post(template_request , project_id )
templates = self.project_api.project_project_id_templates_get(project_id, playbook_name, 'asc')
return self.find_template(templates,playbook_name).id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment