ceph.conf.sh 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env bash
  2. # Copyright 2015 The Kubernetes Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # Configures /etc/ceph.conf from a template.
  17. #
  18. echo "
  19. [global]
  20. auth cluster required = none
  21. auth service required = none
  22. auth client required = none
  23. [mon.a]
  24. host = cephbox
  25. mon addr = $1
  26. [osd]
  27. osd journal size = 128
  28. journal dio = false
  29. # allow running on ext4
  30. osd max object name len = 256
  31. osd max object namespace len = 64
  32. [osd.0]
  33. osd host = cephbox
  34. " > /etc/ceph/ceph.conf