Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2013 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7870449 to your computer and use it in GitHub Desktop.
Save anonymous/7870449 to your computer and use it in GitHub Desktop.
Use Cases
==========
I want to try this module, heard of ceph, want to see it in action
------------------------------------------------------------------
I want to run it on my own laptop, all in one. The ceph::conf class will create configuration file with no authentication enabled, on my localhost. The ceph::mon resource configures and runs a monitor to which two ceph::osd daemon will connect to provide disk storage, using directories in /srv on the laptop.
/node/ {
class { 'ceph::conf':
auth_enable => false,
mon_host => 'localhost'
}
ceph::mon { $hostname: };
ceph::osd { '/srv/osd1': };
ceph::osd { '/srv/osd2': };
}
* install puppet,
* paste this in site.pp and replace /node/ with the name of your current node,
* puppet apply site.pp,
* ceph -s and see that it works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment