Commit Graph

31 Commits

Author SHA1 Message Date
Tom Whiston
be97a6a324 remove the need for config init function in bindata and refactor to function called by main 2018-03-05 18:06:24 +01:00
Matej Kramny
56f22f9673
gofmt 2017-08-19 09:45:01 +01:00
Matej Kramny
27d2e3778a
Merge branch 'develop' of https://github.com/TeliaSweden/semaphore into TeliaSweden-develop 2017-08-16 22:50:59 +01:00
Matej Kramny
38294dd248
remove default setup webhost url 2017-07-03 17:07:59 +09:00
Viktor Anderling
8bc1b7f2d2 Allow concurrency for tasks that does not collide
Two different concurrency modes are implemented, and is enabled by
setting "concurrency_mode" in the config file to either "project" or "node".

When "project" concurrency is enabled, tasks will run in parallel if and
only if they do not share the same project id, with no regard to the
nodes/hosts that are affected.

When "node" concurrency is enabled, a task will run in parallel if and
only if the hosts affected by tasks already running does not intersect
with the hosts that would be affected by the task in question.

If "concurrency_mode" is not specified, no task will start before the
previous one has finished.

The collision check is based on the output from the "--list-hosts"
argument to ansible, which uses the hosts specified in the inventory.
Thus, if two different hostnames are used that points to the same node,
such as "127.0.0.1" and "localhost", there will be no collision and two
tasks may connect to the same node concurrently. If this behaviour is
not desired, one should make sure to not include aliases for their hosts
in their inventories when enabling concurrency mode.

To restrict the amount of parallel tasks that runs at the same time, one
can add the "max_parallel_tasks" to the config file. This defaults to a
humble 10 if not specified.
2017-05-29 17:27:56 +02:00
Matej Kramny
624f2c3527 fix for base paths 2017-05-20 16:25:41 +02:00
Matej Kramny
68c5c49fdc base path resources
fixes #350
2017-05-20 16:14:36 +02:00
Matej Kramny
5bcb34ef62 improvements for #287 2017-04-18 15:36:09 +01:00
Anton Markelov
68f5aec9b6 make ldap searched parameters configurable 2017-04-04 22:27:06 +10:00
Anton Markelov
ce4278ae97 merge with actual master 2017-04-04 21:49:00 +10:00
Anton Markelov
65dc565bd0 make go vet happy 2017-03-27 16:57:31 +10:00
Anton Markelov
09edee808e mispell 2017-03-27 16:11:09 +10:00
Anton Markelov
902187167b add ldap settings to the setup process 2017-03-27 15:08:41 +10:00
Anton Markelov
308c1e64ef add simple LDAP authentification to the config and login page 2017-03-27 14:53:00 +10:00
Anton Markelov
d95491d05d add config generation for telegram alerting 2017-03-22 18:44:37 +10:00
Anton Markelov
90d7708647 add basic telegram alerting 2017-03-22 17:22:09 +10:00
Anton Markelov
1e95790197 made changes from review 2017-03-13 12:30:48 +10:00
Anton Markelov
ff31d42cca add new config parameters to the setup procedure 2017-03-10 16:59:29 +10:00
Anton Markelov
4bbedac795 add alert setting for user and (WIP) project 2017-03-10 10:12:55 +10:00
Anton Markelov
31599e01de [WIP] add alerts for failed deploy 2017-02-22 19:06:03 +10:00
Matej Kramny
47a6fe51f1 improve setup
- fix bug with -setup not accepting spaces
- fix pointless panic while decoding cookies
- fix bug generating secure hashes for cookies during setup
2016-05-17 21:17:17 +01:00
Matej Kramny
b2eb39d605 🎉 remove redis dependency
- Remove mandrill
- Remove redis
- Sessions & more transparency into who's logged into your user
- Session is stored in cookies (map of two integers.)
- Encrypted sessions, configurable keys (auto-generated)
2016-04-30 14:28:47 +02:00
Matej Kramny
8fd27ee16b Improved setup formatting 2016-04-30 09:52:33 +02:00
Matej Kramny
697e456802 Upgrade 2016-04-26 19:18:28 +01:00
Matej Kramny
98210da21d Improve setup 2016-04-24 19:11:43 +01:00
Matej Kramny
ab3a33e763 Interactive setup 2016-04-18 01:58:29 +01:00
Matej Kramny
5354d0a645 Print example configuration 2016-04-11 11:30:31 +01:00
Matej Kramny
2e1ad91e7a Running tasks
- Link models with tables
- Basic API to fetch everything
2016-04-07 13:49:34 +01:00
Matej Kramny
ad860ef236 Login working 2016-03-18 23:23:03 +00:00
Matej Kramny
252b4fbe50 Use proper github path 2016-03-16 21:49:43 +00:00
Matej Kramny
90f9295505 Initial v2 work 2016-01-05 00:32:53 +01:00