Skip to content

Commit

Permalink
Merge pull request #9 from cloudm2/master
Browse files Browse the repository at this point in the history
Changed permission on ceph dir
  • Loading branch information
Chris Jones committed Jan 18, 2016
2 parents 36fef32 + 8681802 commit 6a3ecd4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache v2.0'
description 'Installs/Configures Ceph (Hammer and above)'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.9.6'
version '0.9.7'

depends 'apache2', '>= 1.1.12'
depends 'apt'
Expand Down
2 changes: 1 addition & 1 deletion recipes/conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
directory '/etc/ceph' do
owner node['ceph']['owner']
group node['ceph']['group']
mode '0644'
mode node['ceph']['mode']
action :create
not_if "test -f /etc/ceph"
end
Expand Down
33 changes: 21 additions & 12 deletions recipes/osd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
# Create the scripts directory within the /etc/ceph directory. This is not standard Ceph. It's included here as
# a place to hold helper scripts mainly for OSD and Journal maintenance
directory '/etc/ceph/scripts' do
owner 'root'
group 'root'
mode '0755'
owner node['ceph']['owner']
group node['ceph']['group']
mode node['ceph']['mode']
recursive true
action :create
not_if "test -d /etc/ceph/scripts"
Expand All @@ -71,26 +71,35 @@
# Add ceph_journal.sh helper script to all OSD nodes and place it in /etc/ceph
cookbook_file '/etc/ceph/scripts/ceph_journal.sh' do
source 'ceph_journal.sh'
owner 'root'
group 'root'
mode '0755'
# owner 'root'
# group 'root'
# mode '0755'
owner node['ceph']['owner']
group node['ceph']['group']
mode node['ceph']['mode']
not_if "test -f /etc/ceph/scripts/ceph_journal.sh"
end

directory '/var/lib/ceph/bootstrap-osd' do
owner 'root'
group 'root'
mode '0755'
# owner 'root'
# group 'root'
# mode '0755'
owner node['ceph']['owner']
group node['ceph']['group']
mode node['ceph']['mode']
recursive true
action :create
not_if "test -d /var/lib/ceph/bootstrap-osd"
end

# Default data location - do not modify
directory '/var/lib/ceph/osd' do
owner 'root'
group 'root'
mode '0755'
# owner 'root'
# group 'root'
# mode '0755'
owner node['ceph']['owner']
group node['ceph']['group']
mode node['ceph']['mode']
recursive true
action :create
not_if "test -d /var/lib/ceph/osd"
Expand Down

0 comments on commit 6a3ecd4

Please sign in to comment.