Skip to content
Snippets Groups Projects
glance.pp 3.05 KiB
Newer Older
  • Learn to ignore specific revisions
  •   $public_interface = hiera('iaas::public_interface', undef),
      $admin_interface = hiera('iaas::admin_interface', undef),
    
    ##verbose, debug
    
      $verbose = hiera('iaas::verbose', undef),
      $debug = hiera('iaas::debug', undef),
    
    
      $region = hiera('iaas::region', undef),
      $endpoint = hiera('iaas::role::endpoint::main_address', undef),
    
      $rhosts = hiera('iaas::profile::rabbitmq::rhosts', undef),
    
      $rabbitmq_user = hiera('iaas::profile::rabbitmq::user', undef),
      $rabbitmq_password = hiera('iaas::profile::rabbitmq::password', undef),
    ) {
    
      include iaas::resources::connectors
    
      class { 'ceph::profile::client': } ->
      class { 'ceph::keys': } ->
    
      class { '::glance::api':
    
    ##verbose, debug
    
        verbose => $verbose,
        debug => $debug,
    
    ##Identity_uri - planed to be implemented in Kilo
    #    identity_uri => "http://${endpoint}:35357",
    
        bind_host => $::facts["ipaddress_${admin_interface}"],
    
        auth_host => $endpoint,
    
        auth_uri => "http://${endpoint}:5000/v2.0",
    
        keystone_tenant => 'services',
        keystone_user => 'glance',
    
        auth_url => "http://${endpoint}:5000/v2.0",
    
        database_connection => $iaas::resources::connectors::glance,
    
        registry_host => $endpoint,
    
        known_stores => ['glance.store.filesystem.Store', 'glance.store.http.Store', 'glance.store.rbd.Store', 'glance.store.cinder.Store'],
    #    known_stores => ['glance.store.filesystem.Store', 'glance.store.http.Store', 'glance.store.rbd.Store', 'glance.store.cinder.Store'], 
    #  'glance.store.sheepdog.Store', 'glance.store.vmware_datastore.Store', 'glance.store.s3.Store', 'glance.store.swift.Store'
    
    #    show_multiple_locations => true,
    
      }
    
      class { '::glance::backend::rbd':
        rbd_store_user => 'glance',
        rbd_store_ceph_conf => '/etc/ceph/ceph.conf',
        rbd_store_pool => 'images',
      }
    
      class { '::glance::registry':
    
    ##verbose, debug
    
        verbose => $verbose,
        debug => $debug,
    
    ##Identity_uri - planed to be implemented
    #    identity_uri => "http://${endpoint}:35357",
    
        database_connection => $iaas::resources::connectors::glance,
    
        auth_host => $endpoint,
    
        auth_uri => "http://${endpoint}:5000/v2.0",
    
        keystone_tenant => 'services',
        keystone_user => 'glance',
        mysql_module => '2.3',
    
        database_idle_timeout => 3600,
        bind_host => $::facts["ipaddress_${admin_interface}"],
    
      class { '::glance::notify::rabbitmq':
    
        rabbit_userid => $rabbitmq_user,
        rabbit_password => $rabbitmq_password,
    
    ##rabbit_hosts - uncomment as needed
    
    #    rabbit_host => $endpoint,
        rabbit_hosts => $rhosts,
    
    ##Leave commented if DB is not controller
    #  iaas::resources::database { 'glance': }
    
    
      class  { '::glance::keystone::auth':
    
        public_address => $endpoint,
        admin_address => $endpoint,
        internal_address => $endpoint,