Skip to content

Cluster Rollout to Baremetal #663

Open

Description

@loewa

I would like to request a feature, where the elasticluster is simply using the given inventory for the rollout. This would be used in conjunction with a Ubuntu Maas bare metal provisioning.
A switch to skip the cloud deployment would be sufficient. An adequate inventory file needs to be provided to rollout the various roles.

What do you think? Anyone like this idea, to extend to baremetal?

Activity

  1. riccardomurri commented on Oct 21, 2019

    @riccardomurri
    Contributor

    Hello @loewa

    thanks for your suggestion! It is actually already possible to use ElastiCluster's playbooks with a custom inventory, except it's not really advertised :-)

    If you run elasticluster start (or setup) in full debug mode, you'll see a line like this in the logs:

        DEBUG Running Ansible command `ansible-playbook --private-key=.../.ssh/id_rsa .../elasticluster/elasticluster/share/playbooks/main.yml --inventory=.../.elasticluster/storage/spark.inventory --become --become-user=root -vv -e @extra_vars.yml` ...
    

    To run on an existing cluster, you can simply:

    1. Replace the --inventory=.../.elasticluster/storage/cluster.inventory option with the path to an inventory file you provide: --inventory=/path/to/my/inventory.ini

    2. Provide an extra_vars.yml file containing the minimal amount of
      information that ElastiCluster playbooks need. It basically
      contains a YAML dump of the configuration; you can just have a look
      at any extra_vars.yml file created in a ElastiCluster working
      directory.

      Most keys are actually unused; a minimal extra_vars.yml file
      would look like this:

       elasticluster:
         cloud: {}
         nodes:
           # add one line per node
           master: {}
           worker001: {}
           # ...
         # replace with actual writable directory
         output_dir: /tmp
      

    Might it be worth exposing this functionality through the command-line? If yes, how?

  2. loewa commented on Oct 22, 2019

    @loewa
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions