Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example init.pp puppet-ceph (stackforge)
class { 'ceph::repo':
release => "dumpling"
}
class { 'ceph::init': }
Class['ceph::repo'] -> Class['ceph::init']
@dmsimard

This comment has been minimized.

Copy link
Owner Author

commented Nov 13, 2013

class { 'ceph::repo':
    release => "emperor"
}

class { 'ceph::init':
    fsid                       => 'd5252e7d-75bc-4083-85ed-fe51fa83f62b',
    authentication_type        => 'cephx',
    global_keyring             => '/etc/ceph/keyring',
    osd_pool_default_pg_num    => '128',
    osd_pool_default_pgp_num   => '128',
    osd_pool_default_size      => '3',
    osd_pool_default_min_size  => '2',
    osd_default_crush_rule     => '0',
    mon_osd_full_ratio         => '90',
    mon_osd_nearfull_ratio     => '85',
    require_signatures         => false,
    cluster_require_signatures => false,
    service_require_signatures => false,
    sign_messages              => true,
    cluster_network            => undef,
    public_network             => undef,
    # [osd]
    osd_data                   => '/var/lib/ceph/osd/osd.$id',
    osd_journal                => '/var/lib/ceph/osd/osd.$id/journal',
    osd_journal_size           => '4096',
    osd_keyring                => '/var/lib/ceph/osd/osd.$id/keyring',
    filestore_flusher          => false,
    osd_mkfs_type              => 'xfs',
    osd_mkfs_options           => '-f',
    osd_mount_options          => 'rw,noatime,inode64,nobootwait',
    # [mon]
    mon_data                   => '/var/lib/ceph/mon/mon.$id',
    mon_keyring                => '/var/lib/ceph/mon/mon.$id/keyring',
    mon_initial_members        => undef,
    # [mds]
    mds_activate               => true,
    mds_data                   => '/var/lib/ceph/mds/mds.$id',
    mds_keyring                => '/var/lib/ceph/mds/mds.$id/keyring',
}

Class['ceph::repo'] -> Class['ceph::init']
@dmsimard

This comment has been minimized.

Copy link
Owner Author

commented Nov 13, 2013

class { 'ceph::repo':
    release => "emperor"
}

class { 'ceph':
    fsid                       => 'd5252e7d-75bc-4083-85ed-fe51fa83f62b',
    authentication_type        => 'cephx',
    global_keyring             => '/etc/ceph/keyring',
    osd_pool_default_pg_num    => '128',
    osd_pool_default_pgp_num   => '128',
    osd_pool_default_size      => '3',
    osd_pool_default_min_size  => '2',
    osd_default_crush_rule     => '0',
    mon_osd_full_ratio         => '90',
    mon_osd_nearfull_ratio     => '85',
    require_signatures         => false,
    cluster_require_signatures => false,
    service_require_signatures => false,
    sign_messages              => true,
    cluster_network            => undef,
    public_network             => undef,
}

class { 'ceph::osd':
    osd_data                   => '/var/lib/ceph/osd/osd.$id',
    osd_journal                => '/var/lib/ceph/osd/osd.$id/journal',
    osd_journal_size           => '4096',
    osd_keyring                => '/var/lib/ceph/osd/osd.$id/keyring',
    filestore_flusher          => false,
    osd_mkfs_type              => 'xfs',
    osd_mkfs_options           => '-f',
    osd_mount_options          => 'rw,noatime,inode64,nobootwait',
}

class { 'ceph::mon':
    mon_data                   => '/var/lib/ceph/mon/mon.$id',
    mon_keyring                => '/var/lib/ceph/mon/mon.$id/keyring',
    mon_initial_members        => undef,
}

class { 'ceph::mds':
    mds_activate               => true,
    mds_data                   => '/var/lib/ceph/mds/mds.$id',
    mds_keyring                => '/var/lib/ceph/mds/mds.$id/keyring',
}

Class['ceph::repo']->
Class['ceph::init']->
Class['ceph::osd']->
Class['ceph::mon']->
Class['ceph::mds']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.