Commit 215399b6 by Czémán Arnold Committed by cloud

pillar, manager, storagedriver, vmdriver, readme: rework deployment modes

parent 5792c2ad
# CIRCLE Project - Salt Installer
# CIRCLE Project - Salt Installer for multiple nodes
## OS Support
......@@ -56,7 +56,7 @@ Most used variables
* **proxy_secret**: This is used to provide cryptographic signing, and should be set to a unique, unpredictable value.
* **secret_key**: This is used to provide cryptographic signing, and should be set to a unique, unpredictable value.
* **deployment_type**: local (development) or production
* **deployment_mode**: standalone or multinode
* **deployment_mode**: standalone or head or node
* **admin_user**: user name to login in as admin on the site
* **admin_pass**: password to login in as admin on the site
* **database**:
......@@ -98,7 +98,7 @@ Other variables
* name: django database’s name
* user: database user
* fwdriver:
* open_ports: True or False - open necessary ports for libvirt, nfs server and AMQP services
* open_ports: True or False - open necessary ports for libvirt, nfs server and AMQP services (only for head machine)
* repo_revision: revision
* user: fwdriver user name
* vm_if: vm interface
......@@ -124,9 +124,16 @@ Other variables
## Install Circle
Run the following installation command:
*For head machine:*
```bash
sudo salt-call state.sls allinone --local --file-root=/home/$USER/salt/salt --pillar-root=/home/$USER/salt/pillar
sudo salt-call state.sls head --local --file-root=/home/$USER/salt/salt --pillar-root=/home/$USER/salt/pillar
```
*For node machines:*
```bash
sudo salt-call state.sls node --local --file-root=/home/$USER/salt/salt --pillar-root=/home/$USER/salt/pillar
```
After this finished, you have to get "Failed: 0" message.
If installer fails, please visit the [Troubleshooting](#troubleshooting) paragraph.
......
......@@ -5,6 +5,7 @@ secret_key: Ga4aex3Eesohngo
timezone: Europe/Budapest
deployment_type: local
deployment_mode: standalone
admin_user: admin
admin_pass: 4j23oihreehfd
......
include:
- allinone
......@@ -31,7 +31,7 @@ virtual_host:
- require:
- service: rabbitmq-server
{% if pillar["deployment_mode"] == "multinode" %}
{% if pillar["deployment_mode"] == "node" %}
open_amqp_port:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
......
......@@ -40,7 +40,7 @@ nfs-server:
file.managed:
- source: salt://storagedriver/files/nfsconfig
{% if pillar["deployment_mode"] == "multinode" %}
{% if pillar["deployment_mode"] == "node" %}
salt://storagedriver/files/openports.sh:
cmd.script:
- template: jinja
......
......@@ -128,7 +128,7 @@ apparmor:
- group: kvm
- mode: 755
{% if pillar["deployment_mode"] == "multinode" %}
{% if pillar["deployment_mode"] == "node" %}
open_libvirt_ports:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment