Skip to content

Commit

Permalink
Add support for CA authentication in Keystone
Browse files Browse the repository at this point in the history
Change-Id: Ida2240b5217509cbd4116b4d468848760354be18
Fixes: bug #1194046
  • Loading branch information
jd committed Aug 1, 2013
1 parent f6e8b8a commit ede3cc0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ceilometer/alarm/service.py
Expand Up @@ -83,6 +83,7 @@ def _client():
os_tenant_name=auth_config.os_tenant_name,
os_password=auth_config.os_password,
os_username=auth_config.os_username,
cacert=auth_config.os_cacert,
endpoint_type=auth_config.os_endpoint_type,
)
return ceiloclient.get_client(2, **creds)
Expand Down
1 change: 1 addition & 0 deletions ceilometer/alarm/threshold_evaluation.py
Expand Up @@ -72,6 +72,7 @@ def _client(self):
os_tenant_name=auth_config.os_tenant_name,
os_password=auth_config.os_password,
os_username=auth_config.os_username,
cacert=auth_config.os_cacert,
endpoint_type=auth_config.os_endpoint_type,
)
self.api_client = ceiloclient.get_client(2, **creds)
Expand Down
1 change: 1 addition & 0 deletions ceilometer/central/manager.py
Expand Up @@ -71,6 +71,7 @@ def interval_task(self, task):
password=cfg.CONF.service_credentials.os_password,
tenant_id=cfg.CONF.service_credentials.os_tenant_id,
tenant_name=cfg.CONF.service_credentials.os_tenant_name,
cacert=cfg.CONF.service_credentials.os_cacert,
auth_url=cfg.CONF.service_credentials.os_auth_url)

super(AgentManager, self).interval_task(task)
Expand Down
1 change: 1 addition & 0 deletions ceilometer/nova_client.py
Expand Up @@ -52,6 +52,7 @@ def __init__(self):
project_id=tenant,
auth_url=cfg.CONF.service_credentials.os_auth_url,
endpoint_type=cfg.CONF.service_credentials.os_endpoint_type,
cacert=cfg.CONF.service_credentials.os_cacert,
no_cache=True)

def _with_flavor_and_image(self, instances):
Expand Down
3 changes: 3 additions & 0 deletions ceilometer/service.py
Expand Up @@ -57,6 +57,9 @@
deprecated_group="DEFAULT",
default=os.environ.get('OS_TENANT_NAME', 'admin'),
help='Tenant name to use for openstack service access'),
cfg.StrOpt('os-cacert',
default=os.environ.get('OS_CACERT', None),
help='Certificate chain for SSL validation'),
cfg.StrOpt('os-auth-url',
deprecated_group="DEFAULT",
default=os.environ.get('OS_AUTH_URL',
Expand Down
3 changes: 3 additions & 0 deletions etc/ceilometer/ceilometer.conf.sample
Expand Up @@ -639,6 +639,9 @@
# value)
#os_tenant_name=admin

# Certificate chain for SSL validation (string value)
#os_cacert=<None>

# Auth URL to use for openstack service access (string value)
#os_auth_url=http://localhost:5000/v2.0

Expand Down

0 comments on commit ede3cc0

Please sign in to comment.