config.pp 616 B

1234567891011121314151617181920212223242526272829303132
  1. # == Class ceph::config
  2. #
  3. # This class is called from ceph for service config.
  4. #
  5. class ceph::config {
  6. file { '/etc/ceph':
  7. ensure => 'directory',
  8. owner => 'root',
  9. group => 'root',
  10. mode => '0755',
  11. }
  12. file { '/etc/ceph/ceph.conf':
  13. owner => 'root',
  14. group => 'root',
  15. mode => '0644',
  16. content => template('ceph/ceph.conf.erb'),
  17. }
  18. file { [
  19. '/var/lib/ceph',
  20. '/var/lib/ceph/bootstrap-osd',
  21. '/var/lib/ceph/bootstrap-mds',
  22. '/var/lib/ceph/bootstrap-rgw',
  23. ]:
  24. ensure => 'directory',
  25. owner => 'root',
  26. group => 'root',
  27. mode => '0755',
  28. }
  29. }