|
@@ -454,7 +454,9 @@ class GitHubIdentityProvider(IdentityProviderOauthBase):
|
|
def __init__(self, api_version, idp):
|
|
def __init__(self, api_version, idp):
|
|
IdentityProviderOauthBase.__init__(self, api_version, idp)
|
|
IdentityProviderOauthBase.__init__(self, api_version, idp)
|
|
self._optional += [['organizations'],
|
|
self._optional += [['organizations'],
|
|
- ['teams']]
|
|
|
|
|
|
+ ['teams'],
|
|
|
|
+ ['ca'],
|
|
|
|
+ ['hostname']]
|
|
|
|
|
|
def validate(self):
|
|
def validate(self):
|
|
''' validate this idp instance '''
|
|
''' validate this idp instance '''
|
|
@@ -462,6 +464,8 @@ class GitHubIdentityProvider(IdentityProviderOauthBase):
|
|
raise errors.AnsibleFilterError("|failed provider {0} does not "
|
|
raise errors.AnsibleFilterError("|failed provider {0} does not "
|
|
"allow challenge authentication".format(self.__class__.__name__))
|
|
"allow challenge authentication".format(self.__class__.__name__))
|
|
|
|
|
|
|
|
+ self._idp['ca'] = '/etc/origin/master/{}_github_ca.crt'.format(self.name)
|
|
|
|
+
|
|
|
|
|
|
class FilterModule(object):
|
|
class FilterModule(object):
|
|
''' Custom ansible filters for use by the openshift_control_plane role'''
|
|
''' Custom ansible filters for use by the openshift_control_plane role'''
|