Esempio n. 1
0
         context.IdentityServiceContext(service='glance',
                                        service_user='******'),
         glance_contexts.GlanceContext(),
         glance_contexts.CephGlanceContext(),
         glance_contexts.ObjectStoreContext(),
         glance_contexts.CinderStoreContext(),
         glance_contexts.HAProxyContext(),
         context.SyslogContext(),
         glance_contexts.LoggingConfigContext(),
         glance_contexts.GlanceIPv6Context(),
         context.WorkerConfigContext(),
         glance_contexts.MultiStoreContext(),
         context.OSConfigFlagContext(charm_flag='api-config-flags',
                                     template_flag='api_config_flags'),
         context.InternalEndpointContext(),
         context.VolumeAPIContext('glance-common'),
         context.SubordinateConfigContext(interface=['storage-backend'],
                                          service=['glance-api'],
                                          config_file=GLANCE_API_CONF),
         context.MemcacheContext()
     ],
     'services': ['glance-api']
 }),
 (GLANCE_SWIFT_CONF, {
     'hook_contexts': [
         glance_contexts.ObjectStoreContext(),
         context.IdentityServiceContext(service='glance',
                                        service_user='******')
     ],
     'services': ['glance-api']
 }),
         NovaComputeCephContext(),
         context.SyslogContext(),
         context.SubordinateConfigContext(interface=[
             'neutron-plugin', 'nova-ceilometer', 'ephemeral-backend'
         ],
                                          service=['nova-compute', 'nova'],
                                          config_file=NOVA_CONF),
         InstanceConsoleContext(),
         context.ZeroMQContext(),
         context.NotificationDriverContext(),
         MetadataServiceContext(),
         HostIPContext(),
         NovaComputeVirtContext(),
         context.LogLevelContext(),
         context.InternalEndpointContext(),
         context.VolumeAPIContext('nova-common'),
         SerialConsoleContext(),
         NovaComputeAvailabilityZoneContext(),
         context.WorkerConfigContext(),
         vaultlocker.VaultKVContext(vaultlocker.VAULTLOCKER_BACKEND),
         context.IdentityCredentialsContext(rel_name='cloud-credentials')
     ],
 },
 NOVA_API_AA_PROFILE_PATH: {
     'services': ['nova-api'],
     'contexts': [NovaAPIAppArmorContext()],
 },
 NOVA_COMPUTE_AA_PROFILE_PATH: {
     'services': ['nova-compute'],
     'contexts': [NovaComputeAppArmorContext()],
 },