kite 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/CHANGELOG.md +18 -1
  4. data/Dockerfile +30 -9
  5. data/Makefile +21 -9
  6. data/README.md +9 -0
  7. data/bin/concourse/check +12 -0
  8. data/bin/concourse/in +12 -0
  9. data/bin/concourse/out +46 -0
  10. data/config/pipelines/review.yml +158 -0
  11. data/config/pipelines/tasks/create-pull-requests-tag.yml +13 -0
  12. data/config/pipelines/tasks/create-repository-tag.yml +13 -0
  13. data/config/pipelines/tasks/run-master-tests.yml +12 -0
  14. data/config/pipelines/tasks/run-pr-tests.yml +12 -0
  15. data/kite.gemspec +1 -1
  16. data/lib/kite/generate.rb +39 -0
  17. data/lib/kite/helpers/concourse.rb +36 -0
  18. data/lib/kite/render.rb +68 -2
  19. data/lib/kite/version.rb +1 -1
  20. data/tpl/aws/README.md +20 -0
  21. data/tpl/aws/bin/concourse-deploy.sh.tt +4 -1
  22. data/tpl/aws/bin/ingress-deploy.sh.tt +7 -0
  23. data/tpl/aws/bin/ingress-update.sh.tt +7 -0
  24. data/tpl/aws/bin/kops-delete.sh.erb +5 -0
  25. data/tpl/aws/bin/kops-deploy.sh.erb +11 -0
  26. data/tpl/aws/bin/oauth-deploy.sh.tt +17 -0
  27. data/tpl/aws/bin/prometheus-deploy.sh.tt +23 -0
  28. data/tpl/aws/bosh-vars.yml.erb +1 -0
  29. data/tpl/aws/config/oauth.yml +59 -0
  30. data/tpl/aws/deployments/bosh/cloud-config.yml.tt +17 -1
  31. data/tpl/aws/deployments/concourse/concourse.yml.tt +6 -0
  32. data/tpl/aws/deployments/ingress/ingress.yml.erb +78 -0
  33. data/tpl/aws/deployments/oauth/oauth.yml.tt +95 -0
  34. data/tpl/aws/deployments/prometheus/monitor-bosh.yml +518 -0
  35. data/tpl/aws/deployments/prometheus/monitor-kubernetes.yml +30 -0
  36. data/tpl/aws/deployments/prometheus/prometheus.yml.tt +184 -0
  37. data/tpl/aws/docs/concourse.md +2 -2
  38. data/tpl/aws/docs/ingress.md +14 -0
  39. data/tpl/aws/docs/kops.md +5 -8
  40. data/tpl/aws/docs/oauth.md +24 -0
  41. data/tpl/aws/docs/prometheus.md +31 -0
  42. data/tpl/aws/terraform/kite_bucket.tf +8 -0
  43. data/tpl/aws/terraform/network.tf.tt +27 -0
  44. data/tpl/aws/terraform/outputs.tf +4 -0
  45. data/tpl/aws/terraform/terraform.tfvars.tt +1 -0
  46. data/tpl/aws/terraform/variables.tf +4 -0
  47. data/tpl/gcp/README.md +19 -3
  48. data/tpl/gcp/bin/base/setup-tunnel.sh.tt +8 -3
  49. data/tpl/gcp/bin/bosh-install.sh.tt +4 -0
  50. data/tpl/gcp/bin/concourse-deploy.sh.tt +4 -1
  51. data/tpl/gcp/bin/ingress-deploy.sh.tt +7 -0
  52. data/tpl/gcp/bin/ingress-update.sh.tt +7 -0
  53. data/tpl/gcp/bin/oauth-deploy.sh.tt +19 -0
  54. data/tpl/gcp/bin/prometheus-deploy.sh.tt +23 -0
  55. data/tpl/gcp/bin/vault-deploy.sh.tt +1 -1
  56. data/tpl/gcp/bosh-vars.yml.erb +1 -0
  57. data/tpl/gcp/config/oauth.yml +59 -0
  58. data/tpl/gcp/deployments/bosh/cloud-config.yml.tt +17 -3
  59. data/tpl/gcp/deployments/concourse/concourse.yml.tt +15 -5
  60. data/tpl/gcp/deployments/ingress/ingress.yml.erb +111 -0
  61. data/tpl/gcp/deployments/oauth/oauth.yml.tt +95 -0
  62. data/tpl/gcp/deployments/prometheus/monitor-bosh.yml +518 -0
  63. data/tpl/gcp/deployments/prometheus/monitor-kubernetes.yml +30 -0
  64. data/tpl/gcp/deployments/prometheus/prometheus.yml +183 -0
  65. data/tpl/gcp/docs/bosh.md +5 -0
  66. data/tpl/gcp/docs/concourse.md +3 -3
  67. data/tpl/gcp/docs/ingress.md +12 -0
  68. data/tpl/gcp/docs/oauth.md +24 -0
  69. data/tpl/gcp/docs/prometheus.md +27 -0
  70. data/tpl/gcp/docs/vault.md +2 -1
  71. data/tpl/gcp/terraform/main.tf +6 -1
  72. data/tpl/gcp/terraform/outputs.tf +4 -0
  73. data/tpl/service/%output_path%/charts/%app_name%/Chart.yaml.tt +4 -0
  74. data/tpl/service/%output_path%/charts/%app_name%/templates/NOTES.txt.tt +19 -0
  75. data/tpl/service/%output_path%/charts/%app_name%/templates/_helpers.tpl +16 -0
  76. data/tpl/service/%output_path%/charts/%app_name%/templates/deployment.yaml +37 -0
  77. data/tpl/service/%output_path%/charts/%app_name%/templates/ingress.yaml +32 -0
  78. data/tpl/service/%output_path%/charts/%app_name%/templates/service.yaml +19 -0
  79. data/tpl/service/%output_path%/charts/%app_name%/values.yaml.tt +37 -0
  80. data/tpl/service/%output_path%/environments/.keep +0 -0
  81. data/tpl/service/%output_path%/pipelines/review.yml.tt +189 -0
  82. data/tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt +13 -0
  83. data/tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt +13 -0
  84. data/tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt +22 -0
  85. data/tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt +12 -0
  86. data/tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt +12 -0
  87. data/tpl/service/Dockerfile.tt +4 -0
  88. data/tpl/service/Makefile.tt +28 -0
  89. data/tpl/service/VERSION.tt +1 -0
  90. data/tpl/service/docs/pipeline.md.tt +58 -0
  91. data/tpl/skel/config/cloud.yml +30 -5
  92. metadata +58 -5
  93. 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.1.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-10-09 00:00:00.000000000 Z
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/nginx/nginx.yml.erb
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