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
1a72c1fb
authored
Oct 28, 2015
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph-client: add ceph client installer and necessary configuration properties
parent
c8474c60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
13 deletions
+33
-13
README.md
+12
-13
pillar/common.sls
+5
-0
salt/ceph-client/init.sls
+16
-0
No files found.
README.md
View file @
1a72c1fb
...
...
@@ -45,19 +45,6 @@ Open the salt minion configuration
sudo
mkdir
-p
/etc/salt
```
```
bash
sudo
sh
-c
"cat > sudo vim /etc/salt/minion"
<<
END
file_client: local
file_roots:
base:
- /home/cloud/salt/salt
pillar_roots:
base:
- /home/cloud/salt/pillar
END
```
## Get the installer
Clone circle installer git repository into cloud home
...
...
@@ -136,6 +123,10 @@ Other variables
*
repo_revision: revision
*
vnc-driver:
*
repo_revision: revision
*
ceph:
*
enabled: ceph is enabled
*
server: addres of ceph monitor
*
directory: this directory will be shared
## Install Circle
Run the following installation command:
...
...
@@ -215,3 +206,11 @@ sudo service nginx restart
```
bash
sudo
systemctl restart systemd-sysctl
```
### Permission denied at VM starting, if i use CephFS on distro from Red Hat family
Ceph has no support SeLinux, you should switch it to permissive mode.
```
bash
sudo
setenforce 0
sudo
sed
-i
's/SELINUX=enforcing/SELINUX=permissive/g'
/etc/selinux/config
```
pillar/common.sls
View file @
1a72c1fb
...
...
@@ -22,3 +22,8 @@ nfs:
server: localhost
network: 192.168.1.0/24
directory: /datastore
ceph:
enabled: false
server: localhost
directory: /
salt/ceph-client/init.sls
0 → 100644
View file @
1a72c1fb
ceph-client:
pkg.installed:
- pkgs:
- ceph
- require_in:
- mount: /datastore
/datastore:
mount.mounted:
- device: {{ pillar['ceph']['server'] }}:{{ pillar['ceph']['directory'] }}
- fstype: ceph
- opts: rw
- dump: 0
- pass_num: 2
- persist: True
- mkmnt: True
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