Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add simple 2 node ubuntu master senario #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions molecule/multinode-master/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
*********************************
Vagrant driver installation guide
*********************************

Requirements
============

* Vagrant
* Virtualbox, Parallels, VMware Fusion, VMware Workstation or VMware Desktop

Install
=======

Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.

.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site

.. code-block:: bash

$ pip install 'molecule_vagrant'
3 changes: 3 additions & 0 deletions molecule/multinode-master/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- name: "execute deploy multi-node devstack"
import_playbook: ../../ansible/deploy_multinode_devstack.yaml
53 changes: 53 additions & 0 deletions molecule/multinode-master/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
dependency:
name: galaxy
verifier:
name: ansible
driver:
name: vagrant
provider:
name: libvirt
# Run vagrant up with --provision.
# Defaults to --no-provision)
provision: no
# vagrant-cachier configuration
# Defaults to 'machine'
# Any value different from 'machine' or 'box' will disable it
cachier: machine
# If set to false, set VAGRANT_NO_PARALLEL to '1'
# Defaults to true
parallel: true
# vagrant box to use by default
# Defaults to 'generic/alpine310'
default_box: 'generic/ubuntu2004'
platforms:
- name: controller
memory: 8192
cpus: 8
provider_options:
cpu_mode: 'host-passthrough'
nested: true
provider_raw_config_args:
- cputopology :sockets => '1', :cores => '4', :threads => '2'
- random :model => 'random'
groups:
- controller
- switch
- name: compute1
memory: 8192
cpus: 8
provider_options:
cpu_mode: 'host-passthrough'
nested: true
provider_raw_config_args:
- cputopology :sockets => '1', :cores => '4', :threads => '2'
- random :model => 'random'
groups:
- compute
- peers
- subnode
provisioner:
name: ansible
env:
ANSIBLE_STDOUT_CALLBACK: yaml
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:../../submodules/zuul-jobs/roles:../../submodules/devstack/roles:../../submodules/openstack-zuul-jobs/roles"
10 changes: 10 additions & 0 deletions molecule/multinode-master/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# This is an example playbook to execute Ansible tests.

- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true