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

Make Ubuntu16 default box for Vagrant #131

Merged
merged 3 commits into from
Apr 11, 2017
Merged
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
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Aka IFTTT orchestration for Ops.
* RHEL6 / CentOS6
* RHEL7 / CentOS7

> If you're using the provided Vagrantfile, note that it uses Xenial by default. Due to some of the changes there, Vagrant 1.9.1 or better is required.
> If you're using the provided Vagrantfile, note that it uses Xenial by default.

## Requirements
At least 2GB of memory and 3.5GB of disk space is required, since StackStorm is shipped with RabbitMQ, PostgreSQL, Mongo, nginx and OpenStack Mistral.
Expand Down Expand Up @@ -87,8 +87,7 @@ st2smoketests, you will need to disable proxy for localhost.
```

## Developing

There are a few requirements when developing on `ansible-st2`:
There are a few requirements when developing on `ansible-st2`.

These are the platforms we must support (must pass end-to-end testing):
- Xenial
Expand All @@ -100,6 +99,18 @@ These are the platforms we must support (must pass end-to-end testing):

Must also support Ansible Idempotence (Eg. Ansible-playbook re-run should end with the following results: `changed=0.*failed=0`)

For development purposes there is [Vagrantfile](Vagrantfile) available. The following command will setup ubuntu16 box (`ubuntu/xenial64`) by default:
```sh
vagrant up
```

Other distros:
```sh
vagrant up ubuntu14
vagrant up centos6
vagrant up centos7
```

## Other Installers
You might be interested in other methods to deploy StackStorm engine:
* Configuration Management
Expand Down
7 changes: 3 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = '2'
VIRTUAL_MACHINES = {
:ubuntu14 => {
:hostname => 'ansible-st2-ubuntu14',
Expand All @@ -21,14 +20,14 @@ VIRTUAL_MACHINES = {
},
}


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
Vagrant.require_version ">= 1.9.1"
Vagrant.configure(2) do |config|
config.vm.network "forwarded_port", guest: 22, host: 2200, auto_correct: true
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.ssh.forward_agent = true

VIRTUAL_MACHINES.each do |name, cfg|
config.vm.define name do |vm_config|
config.vm.define name, autostart: (name == :ubuntu16) do |vm_config|
vm_config.vm.hostname = cfg[:hostname]
vm_config.vm.box = cfg[:box]

Expand Down