Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build simple script to make running scenarios easier #129

Open
leifmadsen opened this issue Dec 12, 2017 · 2 comments
Open

Build simple script to make running scenarios easier #129

leifmadsen opened this issue Dec 12, 2017 · 2 comments

Comments

@leifmadsen
Copy link
Contributor

Right now, when you go and run kube-centos-ansible (more on that later), it starts to get a little wordy. For example:

ansible-playbook -i inventory/virthost/ virthost-setup.yml

It would be a lot nicer to do something like...

kean setup

kean would be shorthand for kube-ansible which is the new proposed name for this project, since we're not strictly limited to centos any more.

Scope of kean

So basically I just want to build a simple (lolz...) bash script which mostly just wraps some commands with simplified versions. The initial version should support the following:

  • setup: virthost-setup.yml
  • deploy: kube-install.yml
  • teardown: vm-teardown.yml
  • build: builder.yml

Some environment variables could be loaded from ~/.kean.cfg which would contain things like the inventory path to use. We could start expanding on things like adding other Ansible variables that would be passed in like -e etc. I don't think that should be strictly necessary for the initial deploy.

Other Thoughts

The purpose is to make iterating a bit easier and to make the barrier of entry a bit lower for people coming to this repository. We don't necessarily want to replace everything and make something incredibly complicated, but rather just build out some shorthand from the larger commands we have now.

@leifmadsen
Copy link
Contributor Author

Relates to #122 (comment)

@leifmadsen
Copy link
Contributor Author

leifmadsen commented Dec 12, 2017

Also talked to @dougbtv some more about this. It would be great if you used a syntax like:

kean <action> [inventory]

Where [inventory] was optional, with a default of vms.local.generated. An example would be something like kean setup virthost where virthost would reference ./inventory/virthost/.

If vms.local.generated is not found, then provide some helpful output telling you what is happening.

@leifmadsen leifmadsen added this to the Version 0.next milestone Dec 14, 2017
@leifmadsen leifmadsen removed this from the Version 0.next milestone Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants