https://github.com/openware/kite
Kite is a devops CLI for generating infrastructure as code
https://github.com/openware/kite
cli devops infrastructure kite
Last synced: 5 months ago
JSON representation
Kite is a devops CLI for generating infrastructure as code
- Host: GitHub
- URL: https://github.com/openware/kite
- Owner: openware
- License: apache-2.0
- Created: 2017-08-24T11:08:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-24T07:47:25.000Z (almost 5 years ago)
- Last Synced: 2024-12-15T19:06:17.701Z (about 1 year ago)
- Topics: cli, devops, infrastructure, kite
- Language: Ruby
- Homepage: https://www.openware.com
- Size: 295 KB
- Stars: 46
- Watchers: 6
- Forks: 38
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README

Guide |
API Docs |
Consulting |
Community
Kite is part of OpenDAX Trading Platform
---
# Kite
[](https://badge.fury.io/rb/kite)
[](https://github.com/rubykube/kite/blob/master/LICENSE.md)
[](https://travis-ci.org/rubykube/kite)
[](https://codecov.io/gh/rubykube/kite)
Kite is a CLI for scaffolding and managing devops modules
The main purpose is templating of various tools for devops around terraform, bosh, ansible.
Currently Kite supports modular stacks(Kite modules) on both AWS and GCP.
We plan in adding community stack using a simple template repository structure.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'kite'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install kite
## Usage
To start using kite for bootstraping your infrastructure
follow the steps below.
[Note] Most kite commands can be referred by their first letter(for example `kite generate environment test` is the same as `kite g e test`)
### Create your Infrastructure as Code base repository
Create a new kite project using:
```
$ kite new PROJECT_NAME
```
### Generate an environment(e.g. development/test/production)
Kite environments are separated workspaces with their own credentials, variables and modules.
Generate an environment
```
$ kite generate environment *env_name* --provider=aws|gcp
```
If you want to change the credentials for an environment, edit `config/cloud.yml` and regenerate environment with the same command.
Now the environment should be generated at `config/environments/*env_name*`
### Add a module to your environment
To add a Kite module to your environment, you should first initialize it.
It's recommended to use specific module versions/tags(master branch would be used by default):
```
kite module init https://url.for/your/module --env *env_name* --version *x.y.z/x-y-stable*
```
This should clone module's source files into `modules/*module_name*` and create a `vars.*module_name*.yml` file with all variables needed by the module.
Fill in `vars.*module_name*.yml` with correct values and render the module:
```
kite module render modules/*module_name* --env *env_name*
```
### Apply Terraform configuration from the environment
Set your default gcloud credentials using
```
gcloud auth application-default login
```
```
kite terraform init
kite terraform apply --env *env_name*
```
## Getting help
To list all Kite commands, use
```shell
$> kite help
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
### Concourse Resource
To use resource scripts locally, set env variable `is_devel` to `true`, e.h.:
```sh
$ ruby -Ilib ./bin/concourse/in
```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/rubykube/kite.