diff options
author | Martin Schwenke <martin@meltin.net> | 2019-02-27 15:11:58 +1100 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2019-03-25 16:52:25 +1100 |
commit | 5cc52f23c345faf13daf579c3e8eaafb5a08a56c (patch) | |
tree | ba845d87ee0b54c4e67b4750cb2f2245d6e67f8c /example.yml | |
parent | 51ff83de30db6934e243226ce05c6394b8986a12 (diff) | |
download | autocluster-5cc52f23c345faf13daf579c3e8eaafb5a08a56c.tar.gz autocluster-5cc52f23c345faf13daf579c3e8eaafb5a08a56c.tar.xz autocluster-5cc52f23c345faf13daf579c3e8eaafb5a08a56c.zip |
Rewrite autocluster in Python
Reads a YAML configuration, with defaults in defaults.yml. This
replaces the bash version.
Currently does the following actions for cluster <cluster>: defaults,
dump, status, generate, destroy, create, ssh_config, setup, build.
update_hosts is replaced by ssh_update. If necessary, hosts file can
be updated by hand using hosts file in state directory.
Update build/packaging and example configuration file.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'example.yml')
-rw-r--r-- | example.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/example.yml b/example.yml new file mode 100644 index 0000000..8a154dc --- /dev/null +++ b/example.yml @@ -0,0 +1,34 @@ +--- +# 3 CTDB nodes, an active directory node and a test node +node_list: [nas, nas, nas, ad, test] + +# Last octet of the first node's IP address - the default is OK but +# this will obviously need to be set if running multiple clusters +firstip: 50 + +repositories: + # local CentOS mirror, will cause default repos to be removed +- name: centos-7-os + type: distro + baseurl: http://10.11.12.13/mediasets + path: CENTOS/7/os/\$basearch/ + + # local Samba and CTDB repository - assumed to be served by host machine +- name: samba + type: nas + path: SAMBA/samba-4.9.4/ + + # local Samba AD repository - assumed to be served by host machine +- name: samba-ad + type: ad + path: SAMBA-AD/samba-4.9.4/ + + # GPFS cluster filesystme - assumed to be served by host machine +- name: gpfs + type: clusterfs + path: GPFS/4.2.3 + +resolv_conf: + # nameserver will be the active directory node or, if done, then virthost + domain: example.local +... |