[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

oo-install heads-up; refactor completed



Hey all--
I needed to do a fairly big code refactor in oo-install before the code base got too big and too many people had instrumented things around it.

If you aren't playing around with oo-install, you totally should, but you will be unaffected by the rest of this e-mail.

If you -are- playing around with oo-install, here's a quick summary of how this change will affect you:

# Why the Change?
The roles-based original config file format was highly redundant, particularly for the most basic all-in-one deployment. Furthermore, the config file layout meant more work for the workflow author, who had to write their own routines for coalescing the role lists into a consolidated list of hosts. Changing the config file to represent things in terms of the hosts solves these issues.

# What is the Change?
The original config file format organized host instances by role:

Brokers:
- Host Instance
Nodes:
- Host Instance
MsgServers:
- Host Instance
DBServers:
- Host Instance

The config file is now flipped to make Hosts the main object instead of Roles:

Hosts:
- Host Instance
- Host Instance

In the new model, roles are attributes of the host instance. You can see this in more detail in the updated PEP here:
https://github.com/openshift/openshift-pep/blob/master/openshift-pep-008.md#default-configuration

# How do I Migrate my Config File?
If you are already have a config file in the old format, you have two options:

1. Delete the whole file (~/.openshift/oo-install-cfg.yml) and have oo-install generate a new skeleton template that you can then edit
2. Delete the four role-based sublists from the Deployment portion of your config file (you can leave the DNS section) and rerun oo-install to rebuild only the deployment info

As always, please post to the list with any questions.

Thanks,
Harrison



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]