chef-deployment-monitor 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +0 -2
- data/lib/chef_deployment_monitor/sinks.rb +1 -15
- data/lib/chef_deployment_monitor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWE3YjZhYWE5MWI5OTQ0ZjQ4MmJlZmVhMTlkZTc3MzM4YzZiZWM1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDRiYTBmNzlhYTJjMTE4MjYxOTc0MDE2OTc3MmQ2MDY0MzRkMjRlMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzAzMWEzZTY5ZjBlZGM0YzdiN2QyZmQxNTM1MDk4ZTQzN2NiMzIwZmJlM2Q0
|
10
|
+
MGFjNmNlM2RjN2FkOTRlM2FmYTJmZTAxY2Q2NmJhMmQzZjRhMjkwZDFhMzc1
|
11
|
+
MmE0Y2YyMmZlNjc0YTUwMjNlZDRlYjlmYmZjOGE0MjI0ZTQ4NDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTlhNmFkYWRmOGQ0ZWJkZjZkY2VjOGQ5OTNlZjA0YzBkODY3YzMxYWRkNzQ1
|
14
|
+
MzEyOGJlNjlkMzFmZjMxMDZhNjM4NjkzYTc5ZTA2MGIzMzNkMmMxMzhiMTkz
|
15
|
+
YTY3ZTBiZDBhNTNiMjlhNTViYTA5NzlhM2Q5NTYwMDNmYTEwZjg=
|
data/README.md
CHANGED
@@ -10,8 +10,6 @@ chefserver in a more basic environment and is responsible for the following task
|
|
10
10
|
|
11
11
|
- Tail your NGINX log and record all POST/PUTS/DELETES
|
12
12
|
|
13
|
-
Basically every change that's being made to chef is registered within RabbitMQ.
|
14
|
-
|
15
13
|
#CONFIGURATION:
|
16
14
|
|
17
15
|
In order to execute both tools, you will need the following configuration settings:
|
@@ -8,27 +8,13 @@ class Chef
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
class RmqSink < Sink
|
12
|
-
def initialize
|
13
|
-
@conn = Bunny.new(hostname: Monitor::Config[:mq_server])
|
14
|
-
@conn.start
|
15
|
-
|
16
|
-
@ch = @conn.create_channel
|
17
|
-
@q = @ch.queue(Monitor::Config[:mq_queue], durable: true)
|
18
|
-
end
|
19
|
-
|
20
|
-
def receive(data)
|
21
|
-
@q.publish(data, persistent: true, content_type: 'application/json')
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
11
|
class MarkerFileSink < Sink
|
26
12
|
# will modify the marker file
|
27
13
|
# last write data of marker file will be within 5 seconds
|
28
14
|
# of last deployement
|
29
15
|
def receive(data)
|
30
16
|
File.open(Monitor::Config[:marker_file], 'w+') do |f|
|
31
|
-
f.write(data
|
17
|
+
f.write(data.to_json)
|
32
18
|
end
|
33
19
|
end
|
34
20
|
end
|