Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c3681d17
authored
Aug 27, 2015
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pillar, manager, storagedriver, vmdriver, readme: rework deployment modes
parent
438e051f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
29 deletions
+17
-29
README.md
+11
-26
pillar/common.sls
+1
-0
salt/head.sls
+2
-0
salt/manager/rabbitmq.sls
+1
-1
salt/storagedriver/nfs-server.sls
+1
-1
salt/vmdriver/libvirt.sls
+1
-1
No files found.
README.md
View file @
c3681d17
# CIRCLE Project - Salt Installer
# CIRCLE Project - Salt Installer
for multiple nodes
## OS Support
## OS Support
...
@@ -37,28 +37,6 @@ sudo apt-get install python-pip git
...
@@ -37,28 +37,6 @@ sudo apt-get install python-pip git
sudo
pip install
salt
==
2014.7.1
sudo
pip install
salt
==
2014.7.1
```
```
## Configure salt
Open the salt minion configuration
```
bash
sudo
mkdir
-p
/etc/salt
sudo
vim /etc/salt/minion
```
Add these lines:
```
bash
file_client:
local
file_roots:
base:
- /home/cloud/salt/salt
pillar_roots:
base:
- /home/cloud/salt/pillar
```
## Get the installer
## Get the installer
Clone circle installer git repository into cloud home
Clone circle installer git repository into cloud home
...
@@ -77,7 +55,7 @@ Most used variables
...
@@ -77,7 +55,7 @@ Most used variables
*
**proxy_secret**
: This is used to provide cryptographic signing, and should be set to a unique, unpredictable value.
*
**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.
*
**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_type**
: local (development) or production
*
**deployment_mode**
: standalone or
multi
node
*
**deployment_mode**
: standalone or
head or
node
*
**admin_user**
: user name to login in as admin on the site
*
**admin_user**
: user name to login in as admin on the site
*
**admin_pass**
: password to login in as admin on the site
*
**admin_pass**
: password to login in as admin on the site
*
**database**
:
*
**database**
:
...
@@ -119,7 +97,7 @@ Other variables
...
@@ -119,7 +97,7 @@ Other variables
*
name: django database’s name
*
name: django database’s name
*
user: database user
*
user: database user
*
fwdriver:
*
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
*
repo_revision: revision
*
user: fwdriver user name
*
user: fwdriver user name
*
vm_if: vm interface
*
vm_if: vm interface
...
@@ -144,9 +122,16 @@ Other variables
...
@@ -144,9 +122,16 @@ Other variables
## Install Circle
## Install Circle
Run the following installation command:
Run the following installation command:
*For head machine:*
```
bash
```
bash
sudo
salt-call state.sls
allinone
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.
After this finished, you have to get "Failed: 0" message.
If installer fails, please visit the
[
Troubleshooting
](
#troubleshooting
)
paragraph.
If installer fails, please visit the
[
Troubleshooting
](
#troubleshooting
)
paragraph.
...
...
pillar/common.sls
View file @
c3681d17
...
@@ -5,6 +5,7 @@ secret_key: Ga4aex3Eesohngo
...
@@ -5,6 +5,7 @@ secret_key: Ga4aex3Eesohngo
timezone: Europe/Budapest
timezone: Europe/Budapest
deployment_type: local
deployment_type: local
deployment_mode: standalone
admin_user: admin
admin_user: admin
admin_pass: 4j23oihreehfd
admin_pass: 4j23oihreehfd
...
...
salt/head.sls
0 → 100644
View file @
c3681d17
include:
- allinone
salt/manager/rabbitmq.sls
View file @
c3681d17
...
@@ -31,7 +31,7 @@ virtual_host:
...
@@ -31,7 +31,7 @@ virtual_host:
- require:
- require:
- service: rabbitmq-server
- service: rabbitmq-server
{% if pillar["deployment_mode"] == "
multi
node" %}
{% if pillar["deployment_mode"] == "node" %}
open_amqp_port:
open_amqp_port:
cmd.run:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
...
...
salt/storagedriver/nfs-server.sls
View file @
c3681d17
...
@@ -40,7 +40,7 @@ nfs-server:
...
@@ -40,7 +40,7 @@ nfs-server:
file.managed:
file.managed:
- source: salt://storagedriver/files/nfsconfig
- source: salt://storagedriver/files/nfsconfig
{% if pillar["deployment_mode"] == "
multi
node" %}
{% if pillar["deployment_mode"] == "node" %}
salt://storagedriver/files/openports.sh:
salt://storagedriver/files/openports.sh:
cmd.script:
cmd.script:
- template: jinja
- template: jinja
...
...
salt/vmdriver/libvirt.sls
View file @
c3681d17
...
@@ -102,7 +102,7 @@ apparmor:
...
@@ -102,7 +102,7 @@ apparmor:
- group: kvm
- group: kvm
- mode: 755
- mode: 755
{% if pillar["deployment_mode"] == "
multi
node" %}
{% if pillar["deployment_mode"] == "node" %}
open_libvirt_ports:
open_libvirt_ports:
cmd.run:
cmd.run:
{% if grains['os_family'] == 'RedHat' %}
{% if grains['os_family'] == 'RedHat' %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment