feedhenry / negotiator

Apache License 2.0
2 stars 3 forks source link

Mongo config #18

Closed maleck13 closed 7 years ago

maleck13 commented 7 years ago

…config jobs. add new mongo configurer that uses a Job template.

@philbrookes review when you get chance. Still needs a bit of a tidy but would like thoughts / feedback.

To see this working, update your negotiator to 0.0.5 then deploy the data service to your environment

curl -X POST http://<negotiator>/service/deploy/data/<env> -d '{"serviceName":"data","domain":"rhmap", "replicas":1,"target":{"host":"https://local.feedhenry.io:8443","token":"TOKEN"}}'

then deploy a cloud app to that environment. It should create a job and set up a new database user and password. It should also update the cloudapp deploymentConfig

philbrookes commented 7 years ago

Tested this locally and it worked fine.

maleck13 commented 7 years ago

@philbrookes Thanks. One thing to note here is although I am using negotiator as the base image, that may not gain us anything as the image may not be present on the machine. For example on OSCP online. So we may yet be better off going for something more light weight. I tried this on OSCP online and it timed out pulling the image :(

philbrookes commented 7 years ago

@maleck13 that's a pity, I guess small images for each type of configuration might make more sense then