Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

WIP: simple configuration & metaconfiguration tool #5

Closed
wants to merge 1 commit into from

Conversation

justinsb
Copy link
Contributor

@justinsb justinsb commented Apr 1, 2016

@mikedanese here is an example of a much simpler way to specify configuration. We have a simple go installer program, that walks a directory tree, and interprets that as task (ala Salt or Ansible). We have tasks that are a little smarter / more specialized for our use case than Salt or Ansible, such that most of the complexity here goes away.

So here we have a zero-dependency installer, with a very readable (IMO) installation specification. There are obviously still issues to resolve, e.g. the generation of options is funky, but I think we could use jsonnet for that.

The nice thing here is that this "filesystem tree as specification" is simple enough that it would be trivial to transform this into salt, ansible, or whatever people want.

But, at the same time, by having a simple golang tool that works without external dependencies we can package this however we want - in a container, running directly on the host, running over SSH/SFTP etc.

@justinsb
Copy link
Contributor Author

justinsb commented Apr 1, 2016

Oh, and the included template is a translation of the salt configuration, except that I assumed we were using systemd, and that we were using default networking. Probably some other code paths I ripped out for sanity also.

I think only supporting systemd with kube-up v2 would be a great simplification, and would not really cost us anything given that everyone has gone systemd and docker needs a fairly modern kernel anyway.

ssh admin@${MASTER_IP} sudo time /opt/fastdeploy/fastdeploy --template /opt/fastdeploy/template --tags=_kubernetes_master,_systemd,_aws,_jessie,_debian_family --v=2


```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra ticks unneeded?

@justinsb
Copy link
Contributor Author

Closing this - this became upup!

@justinsb justinsb closed this May 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants