kite 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +18 -1
- data/Dockerfile +30 -9
- data/Makefile +21 -9
- data/README.md +9 -0
- data/bin/concourse/check +12 -0
- data/bin/concourse/in +12 -0
- data/bin/concourse/out +46 -0
- data/config/pipelines/review.yml +158 -0
- data/config/pipelines/tasks/create-pull-requests-tag.yml +13 -0
- data/config/pipelines/tasks/create-repository-tag.yml +13 -0
- data/config/pipelines/tasks/run-master-tests.yml +12 -0
- data/config/pipelines/tasks/run-pr-tests.yml +12 -0
- data/kite.gemspec +1 -1
- data/lib/kite/generate.rb +39 -0
- data/lib/kite/helpers/concourse.rb +36 -0
- data/lib/kite/render.rb +68 -2
- data/lib/kite/version.rb +1 -1
- data/tpl/aws/README.md +20 -0
- data/tpl/aws/bin/concourse-deploy.sh.tt +4 -1
- data/tpl/aws/bin/ingress-deploy.sh.tt +7 -0
- data/tpl/aws/bin/ingress-update.sh.tt +7 -0
- data/tpl/aws/bin/kops-delete.sh.erb +5 -0
- data/tpl/aws/bin/kops-deploy.sh.erb +11 -0
- data/tpl/aws/bin/oauth-deploy.sh.tt +17 -0
- data/tpl/aws/bin/prometheus-deploy.sh.tt +23 -0
- data/tpl/aws/bosh-vars.yml.erb +1 -0
- data/tpl/aws/config/oauth.yml +59 -0
- data/tpl/aws/deployments/bosh/cloud-config.yml.tt +17 -1
- data/tpl/aws/deployments/concourse/concourse.yml.tt +6 -0
- data/tpl/aws/deployments/ingress/ingress.yml.erb +78 -0
- data/tpl/aws/deployments/oauth/oauth.yml.tt +95 -0
- data/tpl/aws/deployments/prometheus/monitor-bosh.yml +518 -0
- data/tpl/aws/deployments/prometheus/monitor-kubernetes.yml +30 -0
- data/tpl/aws/deployments/prometheus/prometheus.yml.tt +184 -0
- data/tpl/aws/docs/concourse.md +2 -2
- data/tpl/aws/docs/ingress.md +14 -0
- data/tpl/aws/docs/kops.md +5 -8
- data/tpl/aws/docs/oauth.md +24 -0
- data/tpl/aws/docs/prometheus.md +31 -0
- data/tpl/aws/terraform/kite_bucket.tf +8 -0
- data/tpl/aws/terraform/network.tf.tt +27 -0
- data/tpl/aws/terraform/outputs.tf +4 -0
- data/tpl/aws/terraform/terraform.tfvars.tt +1 -0
- data/tpl/aws/terraform/variables.tf +4 -0
- data/tpl/gcp/README.md +19 -3
- data/tpl/gcp/bin/base/setup-tunnel.sh.tt +8 -3
- data/tpl/gcp/bin/bosh-install.sh.tt +4 -0
- data/tpl/gcp/bin/concourse-deploy.sh.tt +4 -1
- data/tpl/gcp/bin/ingress-deploy.sh.tt +7 -0
- data/tpl/gcp/bin/ingress-update.sh.tt +7 -0
- data/tpl/gcp/bin/oauth-deploy.sh.tt +19 -0
- data/tpl/gcp/bin/prometheus-deploy.sh.tt +23 -0
- data/tpl/gcp/bin/vault-deploy.sh.tt +1 -1
- data/tpl/gcp/bosh-vars.yml.erb +1 -0
- data/tpl/gcp/config/oauth.yml +59 -0
- data/tpl/gcp/deployments/bosh/cloud-config.yml.tt +17 -3
- data/tpl/gcp/deployments/concourse/concourse.yml.tt +15 -5
- data/tpl/gcp/deployments/ingress/ingress.yml.erb +111 -0
- data/tpl/gcp/deployments/oauth/oauth.yml.tt +95 -0
- data/tpl/gcp/deployments/prometheus/monitor-bosh.yml +518 -0
- data/tpl/gcp/deployments/prometheus/monitor-kubernetes.yml +30 -0
- data/tpl/gcp/deployments/prometheus/prometheus.yml +183 -0
- data/tpl/gcp/docs/bosh.md +5 -0
- data/tpl/gcp/docs/concourse.md +3 -3
- data/tpl/gcp/docs/ingress.md +12 -0
- data/tpl/gcp/docs/oauth.md +24 -0
- data/tpl/gcp/docs/prometheus.md +27 -0
- data/tpl/gcp/docs/vault.md +2 -1
- data/tpl/gcp/terraform/main.tf +6 -1
- data/tpl/gcp/terraform/outputs.tf +4 -0
- data/tpl/service/%output_path%/charts/%app_name%/Chart.yaml.tt +4 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/NOTES.txt.tt +19 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/_helpers.tpl +16 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/deployment.yaml +37 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/ingress.yaml +32 -0
- data/tpl/service/%output_path%/charts/%app_name%/templates/service.yaml +19 -0
- data/tpl/service/%output_path%/charts/%app_name%/values.yaml.tt +37 -0
- data/tpl/service/%output_path%/environments/.keep +0 -0
- data/tpl/service/%output_path%/pipelines/review.yml.tt +189 -0
- data/tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt +13 -0
- data/tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt +13 -0
- data/tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt +22 -0
- data/tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt +12 -0
- data/tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt +12 -0
- data/tpl/service/Dockerfile.tt +4 -0
- data/tpl/service/Makefile.tt +28 -0
- data/tpl/service/VERSION.tt +1 -0
- data/tpl/service/docs/pipeline.md.tt +58 -0
- data/tpl/skel/config/cloud.yml +30 -5
- metadata +58 -5
- data/tpl/gcp/deployments/nginx/nginx.yml.erb +0 -62
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Bellet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -99,8 +99,6 @@ email:
|
|
99
99
|
- lbellet@heliostech.fr
|
100
100
|
executables:
|
101
101
|
- kite
|
102
|
-
- kite-config
|
103
|
-
- kite-console
|
104
102
|
extensions: []
|
105
103
|
extra_rdoc_files: []
|
106
104
|
files:
|
@@ -113,9 +111,17 @@ files:
|
|
113
111
|
- Makefile
|
114
112
|
- README.md
|
115
113
|
- Rakefile
|
114
|
+
- bin/concourse/check
|
115
|
+
- bin/concourse/in
|
116
|
+
- bin/concourse/out
|
116
117
|
- bin/kite
|
117
118
|
- bin/kite-config
|
118
119
|
- bin/kite-console
|
120
|
+
- config/pipelines/review.yml
|
121
|
+
- config/pipelines/tasks/create-pull-requests-tag.yml
|
122
|
+
- config/pipelines/tasks/create-repository-tag.yml
|
123
|
+
- config/pipelines/tasks/run-master-tests.yml
|
124
|
+
- config/pipelines/tasks/run-pr-tests.yml
|
119
125
|
- kite.gemspec
|
120
126
|
- lib/kite.rb
|
121
127
|
- lib/kite/base.rb
|
@@ -124,6 +130,7 @@ files:
|
|
124
130
|
- lib/kite/error.rb
|
125
131
|
- lib/kite/generate.rb
|
126
132
|
- lib/kite/helpers.rb
|
133
|
+
- lib/kite/helpers/concourse.rb
|
127
134
|
- lib/kite/render.rb
|
128
135
|
- lib/kite/version.rb
|
129
136
|
- tpl/aws/README.md
|
@@ -133,18 +140,34 @@ files:
|
|
133
140
|
- tpl/aws/bin/base/setup-tunnel.sh.tt
|
134
141
|
- tpl/aws/bin/bosh-install.sh.tt
|
135
142
|
- tpl/aws/bin/concourse-deploy.sh.tt
|
143
|
+
- tpl/aws/bin/ingress-deploy.sh.tt
|
144
|
+
- tpl/aws/bin/ingress-update.sh.tt
|
145
|
+
- tpl/aws/bin/kops-delete.sh.erb
|
146
|
+
- tpl/aws/bin/kops-deploy.sh.erb
|
147
|
+
- tpl/aws/bin/oauth-deploy.sh.tt
|
148
|
+
- tpl/aws/bin/prometheus-deploy.sh.tt
|
136
149
|
- tpl/aws/bin/vault-deploy.sh.tt
|
137
150
|
- tpl/aws/bosh-vars.yml.erb
|
151
|
+
- tpl/aws/config/oauth.yml
|
138
152
|
- tpl/aws/deployments/bosh/bosh.yml
|
139
153
|
- tpl/aws/deployments/bosh/cloud-config.yml.tt
|
140
154
|
- tpl/aws/deployments/bosh/cpi.yml
|
141
155
|
- tpl/aws/deployments/bosh/jumpbox-user.yml
|
142
156
|
- tpl/aws/deployments/concourse/concourse.yml.tt
|
157
|
+
- tpl/aws/deployments/ingress/ingress.yml.erb
|
158
|
+
- tpl/aws/deployments/oauth/oauth.yml.tt
|
159
|
+
- tpl/aws/deployments/prometheus/monitor-bosh.yml
|
160
|
+
- tpl/aws/deployments/prometheus/monitor-kubernetes.yml
|
161
|
+
- tpl/aws/deployments/prometheus/prometheus.yml.tt
|
143
162
|
- tpl/aws/deployments/vault/vault.yml.erb
|
144
163
|
- tpl/aws/docs/bosh.md
|
145
164
|
- tpl/aws/docs/concourse.md
|
165
|
+
- tpl/aws/docs/ingress.md
|
146
166
|
- tpl/aws/docs/kops.md
|
167
|
+
- tpl/aws/docs/oauth.md
|
168
|
+
- tpl/aws/docs/prometheus.md
|
147
169
|
- tpl/aws/docs/vault.md
|
170
|
+
- tpl/aws/terraform/kite_bucket.tf
|
148
171
|
- tpl/aws/terraform/main.tf.tt
|
149
172
|
- tpl/aws/terraform/network.tf.tt
|
150
173
|
- tpl/aws/terraform/outputs.tf
|
@@ -157,8 +180,13 @@ files:
|
|
157
180
|
- tpl/gcp/bin/base/setup-tunnel.sh.tt
|
158
181
|
- tpl/gcp/bin/bosh-install.sh.tt
|
159
182
|
- tpl/gcp/bin/concourse-deploy.sh.tt
|
183
|
+
- tpl/gcp/bin/ingress-deploy.sh.tt
|
184
|
+
- tpl/gcp/bin/ingress-update.sh.tt
|
185
|
+
- tpl/gcp/bin/oauth-deploy.sh.tt
|
186
|
+
- tpl/gcp/bin/prometheus-deploy.sh.tt
|
160
187
|
- tpl/gcp/bin/vault-deploy.sh.tt
|
161
188
|
- tpl/gcp/bosh-vars.yml.erb
|
189
|
+
- tpl/gcp/config/oauth.yml
|
162
190
|
- tpl/gcp/deployments/bosh/bosh.yml
|
163
191
|
- tpl/gcp/deployments/bosh/cloud-config.yml.tt
|
164
192
|
- tpl/gcp/deployments/bosh/cpi.yml
|
@@ -166,10 +194,17 @@ files:
|
|
166
194
|
- tpl/gcp/deployments/concourse/concourse.yml.tt
|
167
195
|
- tpl/gcp/deployments/concourse/test/test-credentials.yml
|
168
196
|
- tpl/gcp/deployments/concourse/test/test-pipeline.yml
|
169
|
-
- tpl/gcp/deployments/
|
197
|
+
- tpl/gcp/deployments/ingress/ingress.yml.erb
|
198
|
+
- tpl/gcp/deployments/oauth/oauth.yml.tt
|
199
|
+
- tpl/gcp/deployments/prometheus/monitor-bosh.yml
|
200
|
+
- tpl/gcp/deployments/prometheus/monitor-kubernetes.yml
|
201
|
+
- tpl/gcp/deployments/prometheus/prometheus.yml
|
170
202
|
- tpl/gcp/deployments/vault/vault.yml.erb
|
171
203
|
- tpl/gcp/docs/bosh.md
|
172
204
|
- tpl/gcp/docs/concourse.md
|
205
|
+
- tpl/gcp/docs/ingress.md
|
206
|
+
- tpl/gcp/docs/oauth.md
|
207
|
+
- tpl/gcp/docs/prometheus.md
|
173
208
|
- tpl/gcp/docs/vault.md
|
174
209
|
- tpl/gcp/terraform/gcs.tf.tt
|
175
210
|
- tpl/gcp/terraform/main.tf
|
@@ -177,6 +212,24 @@ files:
|
|
177
212
|
- tpl/gcp/terraform/outputs.tf
|
178
213
|
- tpl/gcp/terraform/terraform.tfvars.tt
|
179
214
|
- tpl/gcp/terraform/variables.tf
|
215
|
+
- tpl/service/%output_path%/charts/%app_name%/Chart.yaml.tt
|
216
|
+
- tpl/service/%output_path%/charts/%app_name%/templates/NOTES.txt.tt
|
217
|
+
- tpl/service/%output_path%/charts/%app_name%/templates/_helpers.tpl
|
218
|
+
- tpl/service/%output_path%/charts/%app_name%/templates/deployment.yaml
|
219
|
+
- tpl/service/%output_path%/charts/%app_name%/templates/ingress.yaml
|
220
|
+
- tpl/service/%output_path%/charts/%app_name%/templates/service.yaml
|
221
|
+
- tpl/service/%output_path%/charts/%app_name%/values.yaml.tt
|
222
|
+
- tpl/service/%output_path%/environments/.keep
|
223
|
+
- tpl/service/%output_path%/pipelines/review.yml.tt
|
224
|
+
- tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt
|
225
|
+
- tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt
|
226
|
+
- tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt
|
227
|
+
- tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt
|
228
|
+
- tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt
|
229
|
+
- tpl/service/Dockerfile.tt
|
230
|
+
- tpl/service/Makefile.tt
|
231
|
+
- tpl/service/VERSION.tt
|
232
|
+
- tpl/service/docs/pipeline.md.tt
|
180
233
|
- tpl/skel/Gemfile.tt
|
181
234
|
- tpl/skel/README.md.tt
|
182
235
|
- tpl/skel/bin/kite
|
@@ -1,62 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: nginx
|
3
|
-
|
4
|
-
releases:
|
5
|
-
- name: nginx
|
6
|
-
version: latest
|
7
|
-
|
8
|
-
|
9
|
-
instance_groups:
|
10
|
-
- name: nginx
|
11
|
-
instances: 1
|
12
|
-
vm_type: default
|
13
|
-
azs: [z1]
|
14
|
-
stemcell: trusty
|
15
|
-
networks:
|
16
|
-
- name: public
|
17
|
-
static_ips: [<%= @private_subnet[13] %>]
|
18
|
-
default: [dns, gateway]
|
19
|
-
|
20
|
-
jobs:
|
21
|
-
- name: nginx
|
22
|
-
release: nginx
|
23
|
-
properties:
|
24
|
-
nginx_conf: |
|
25
|
-
worker_processes 1;
|
26
|
-
error_log /var/vcap/sys/log/nginx/error.log info;
|
27
|
-
events {
|
28
|
-
worker_connections 1024;
|
29
|
-
}
|
30
|
-
|
31
|
-
http {
|
32
|
-
include /var/vcap/packages/nginx/conf/mime.types;
|
33
|
-
default_type application/octet-stream;
|
34
|
-
sendfile on;
|
35
|
-
keepalive_timeout 65;
|
36
|
-
server_names_hash_bucket_size 64;
|
37
|
-
server {
|
38
|
-
server_name kite-nginx;
|
39
|
-
|
40
|
-
location / {
|
41
|
-
proxy_pass http://<%= @private_subnet[13] %>; # Concourse web panel IP
|
42
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
43
|
-
proxy_set_header Host $http_host;
|
44
|
-
proxy_redirect off;
|
45
|
-
}
|
46
|
-
|
47
|
-
access_log /var/vcap/sys/log/nginx/kite-access.log;
|
48
|
-
error_log /var/vcap/sys/log/nginx/kite-error.log;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
stemcells:
|
53
|
-
- alias: trusty
|
54
|
-
os: ubuntu-trusty
|
55
|
-
version: latest
|
56
|
-
|
57
|
-
update:
|
58
|
-
canaries: 1
|
59
|
-
max_in_flight: 1
|
60
|
-
serial: false
|
61
|
-
canary_watch_time: 1000-60000
|
62
|
-
update_watch_time: 1000-60000
|