Julien Pivotto
472663193a
prometheus: Initialize all metrics
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-11-24 11:02:36 +01:00
James Shubin
879ff838ae
resources: Replace golang 1.6 specific code with newer 1.7 version
...
We now require at least 1.8 so we might as well fix this up.
2017-11-23 10:57:11 -05:00
Julien Pivotto
5e9a085e39
exec: Add autoEdges between ExecRes and PkgRes
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-11-23 16:30:22 +01:00
Julien Pivotto
c2b5729ebd
build: Build mgmt on any go file change
...
Prior to this commit, running make would only rebuild mgmt when
main.go was changed. It means that make clean build was needed.
With this commit, any go file change in this directory will
trigger a new compilation.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-11-23 09:32:02 -05:00
Julien Pivotto
fdce9d6a6a
prometheus: Initialize mgmt_checkapply_total metrics
...
It is recommended by Prometheus to initialize metrics:
https://prometheus.io/docs/practices/instrumentation/#avoid-missing-metrics
This commits initialize the mgmt_checkapply_total metric
for each registered resource.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-11-23 15:23:41 +01:00
Guillaume Herail
bfc2549289
resources: Move FileRes.uid()/.gid() to util.go
2017-11-23 08:34:38 -05:00
James Shubin
52fd1ae73e
test: Add check for common doc vs docs ambiguity
2017-11-23 08:20:44 -05:00
Julien Pivotto
23e167616f
doc: Fix link to the prometheus wiki
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu >
2017-11-23 09:52:28 +01:00
James Shubin
51ce83f20b
test: Add extra commit message tests for some common mistakes
...
Feel free to add more if we identify them.
2017-11-21 11:05:20 -05:00
Jonathan Gold
5e5bbf4b39
travis: Allow travis builds to access target branches
...
Because travis builds only fetch a single branch (master) by default,
test-commit-message.sh only had access to commits in the master branch.
In order to fetch the correct branch for our build, we need to run
'git config remote.origin.fetch..' with the target branch's information
before executing git fetch on the repo in before_install.
Now git will always fetch the appropriate branch.
2017-11-18 21:04:12 -05:00
Guillaume Herail
cbc3a691b9
docker: Bump to golang 1.8
2017-11-16 17:36:35 +01:00
Jonathan Gold
a5247d6e69
resources: aws: ec2: Change event messages to iota consts
2017-11-14 16:48:51 -05:00
Jonathan Gold
d698b82a83
resources: aws: ec2: Start and stop SNS endpoint in snsWatch
...
This patch adds snsWatch which launches the HTTP server and listens
for messages on awsChan to forward as events to the mgmt engine.
2017-11-11 23:07:12 -05:00
Jonathan Gold
91eff75288
resources: aws: ec2: Add method to make sns topic
2017-11-10 17:31:19 -05:00
James Shubin
91a9edb322
resources: aws: ec2: Fix deadlock on rare error scenarios
...
If we get an error in the Watch loop, it will send this on awsChan,
which will cause Watch to loop. However, in this scenario it will never
cause closeChan to close, and we will deadlock because we have a
waitGroup in a helper goroutine which is waiting on this channel to
close the context.
Normally this wouldn't be an issue, but since we have more than one
goroutine (with associated waitGroup) it is. It's also good practice to
close all the channels to help avoid this kind of bug.
This patch also moves the waitGroup Wait into a more logical place for
visibility.
2017-11-10 14:17:54 -05:00
Jonathan Gold
c8ddbeaa5c
resource: aws: ec2: Add http server
2017-11-09 13:13:42 -05:00
Jonathan Gold
3634b3450d
resource: aws: ec2: Move waitgroup to resource struct
2017-11-08 16:57:41 -05:00
Jonathan Gold
c2a5e3f5d8
resources: aws: ec2: Move watch channels into struct
2017-11-08 16:16:01 -05:00
Jonathan Gold
db49fe85e4
resources: aws: ec2: Move chanStruct type out of longpollWatch
2017-11-08 16:08:25 -05:00
Jonathan Gold
567a2e9fd8
resources: aws: ec2: Reorganized consts
2017-11-08 16:02:29 -05:00
Jonathan Gold
987de00e17
resources: aws: ec2: Remove extra wait from Watch
...
There were two calls to WaitUntilInstanceTerminatedWithContext in a row.
There's no reason to make the call twice.
2017-11-08 16:02:24 -05:00
Jonathan Gold
baeafec74a
resources: aws: ec2: Move Watch to longpollWatch
2017-11-08 16:02:12 -05:00
James Shubin
9cfa0b14d4
yamlgraph: Improve error output
...
This makes it easier to know what's missing.
2017-11-02 09:13:27 -04:00
James Shubin
948ded6792
github: This event is over
...
And it wasn't successful at all.
2017-11-01 07:07:14 -04:00
James Shubin
3c69619fd9
github: Add new label for design discussions and trackers
...
Open ideas related to designs can be tracked here. We've already got a
few such tickets open.
2017-11-01 07:04:32 -04:00
Jonathan Gold
e7c4bc7f47
resources: Add UserData field to AwsEc2
...
UserData specifies first-launch bash and cloud-init commands. See
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
for documentation and examples.
2017-10-30 00:22:30 -04:00
Jonathan Gold
277ecc901b
etcd: Plumbed in the new cli flags for advertise urls
2017-10-29 17:16:51 -04:00
Jonathan Gold
0f70c31a30
etcd: Add advertise urls to cli
...
This patch adds the option to specify URLs to advertise for clients and peers.
This will facilitate etcd communication through nat, where we want to listen
on a local IP, but expose a public IP to clients/peers.
2017-10-28 22:42:27 -04:00
James Shubin
9a97a92e31
github: Use third-party settings app to sync github settings
...
Let's give this a try. One downside is that giving anyone push access
gives them ability to rename repo and do other bad admin type things.
2017-10-26 05:04:41 -04:00
James Shubin
f9d452ad2c
examples: Add longpoll server and client
...
This is an example of a race-free long-poll server and client. It uses a
redirection method to signal that the "Watch" is running.
Other race-free methods exist.
2017-10-24 04:20:19 -04:00
Jonathan Gold
9907c12eda
resources: Enhancements to user and group
...
This patch adds autoedges between users and groups, and extends
users with additional fields for supplementary groups and a named
primary group. Also, some small fixes to log and error messages.
0.0.13
2017-10-23 19:18:52 -04:00
Jonathan Gold
19533a32b5
resources: Add a group resource
2017-10-21 01:28:22 -04:00
Jonathan Gold
c5a5004f9e
resources: Fix user gid compare
2017-10-19 06:58:31 -04:00
Jonathan Gold
677cdea99d
resources: Improve nspawn resource
2017-10-17 19:23:04 -04:00
Jonathan Gold
4d7c0ddbce
resources: Add an Aws resource
2017-10-09 04:05:13 -04:00
James Shubin
81daf10157
test: Fix linter issues
...
These are some linter issues that were found in a new version of the
linter. Let's fix them now before that linter hits our test suite.
2017-09-26 19:38:53 -04:00
James Shubin
b3ef4e41bf
test: Use stable version of gometalinter
...
Hopefully this prevents the various breakages seen in our lint test.
2017-09-26 19:08:43 -04:00
James Shubin
9fbf149717
etcd: Bump to newer versions
2017-09-19 18:21:15 -04:00
James Shubin
95cb94a039
vendor: Add codec package because of breakage
...
Recent git master 54210f4e076c57f351166f0ed60e67d3fca57a36 of
github.com/ugorji/go broke the builds. See:
https://github.com/coreos/etcd/issues/8579
2017-09-19 18:21:15 -04:00
Juan Luis de Sousa-Valadas Castaño
21f7f87716
resources: Refresh packagekit cache before install
...
Fixes #80
2017-09-17 22:29:15 +02:00
Jonathan Gold
831c7e2c32
resources: Add user resource
2017-09-17 01:04:36 -04:00
James Shubin
cc0d04c8b7
git: Ignore .envrc file from direnv
...
Some find this useful for setting a custom GOPATH per project.
2017-09-15 16:17:40 -04:00
James Shubin
46be83f8f7
legal: Re-license to GPLv3
2017-09-11 18:07:47 -04:00
James Shubin
28560e2045
resources: Fix formatting
2017-09-11 18:06:34 -04:00
James Shubin
0df4824a56
test: Increase timeouts for slow travis
...
Should prevent more intermittent failures.
2017-09-09 15:31:06 -04:00
James Shubin
dbcabc6517
github: Improve the PR template
2017-09-09 15:03:53 -04:00
Jonathan Gold
69f479b67e
virt: Allow more than 26 disks
2017-09-08 02:15:40 +00:00
James Shubin
af75696018
github: Add a PR template to help new users
...
Hopefully this addresses the most common things.
2017-09-07 16:14:11 -04:00
Arthur Mello
80b8f8740f
virt: Added support for ~user into expandHome
...
- Enabled expandHome to expand both ~/ and ~username/ paths
- Added some unit tests for expandHome
2017-09-06 14:59:08 -04:00
James Shubin
71ab325940
yaml2: Meta should keep defaults, and Res should have kind
...
This would previously panic since it wouldn't get a kind, and the meta
parameters would overwrite the defaults so it would block because limit
didn't have the default of +inf.
The removal of the SetKind was my fault in:
b8ff6938df
It's funny because it ends in `bad`. Guess I should have checked that!
2017-09-06 13:44:21 -04:00