salt.states.nova module

New in version 2017.7.

Module for handling OpenStack Nova calls

codeauthor

Jakub Sliva <jakub.sliva@ultimum.io>

salt.states.nova.flavor_absent(name, **kwargs)

Makes flavor to be absent

Parameters

name -- flavor name

nova-flavor-absent:
    nova.flavor_absent:
        - name: flavor_name
salt.states.nova.flavor_access_list(name, projects, **kwargs)

Grants access of the flavor to a project. Flavor must be private.

Parameters
  • name -- non-public flavor name

  • projects -- list of projects which should have the access to the flavor

nova-flavor-share:
    nova.flavor_project_access:
        - name: myflavor
        - project:
            - project1
            - project2

To remove all project from access list:

- project: []
salt.states.nova.flavor_present(name, params=None, **kwargs)

Creates Nova flavor if it does not exist

Parameters
  • name -- Flavor name

  • params -- Definition of the Flavor (see Compute API documentation)

nova-flavor-present:
    nova.flavor_present:
        - name: myflavor
        - params:
            ram: 2
            vcpus: 1
            disk: 10
            is_public: False