Created
February 9, 2016 21:11
-
-
Save mpenick/bbbaf3982c48c57a32ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/support/ccm.php b/support/ccm.php | |
| index 32fccff..135f3f0 100644 | |
| --- a/support/ccm.php | |
| +++ b/support/ccm.php | |
| @@ -129,7 +129,7 @@ class CCM | |
| return array('active' => $active, 'list' => $clusters); | |
| } | |
| - public function setup($dataCenterOneNodes, $dataCenterTwoNodes) | |
| + private function internalSetup($dataCenterOneNodes, $dataCenterTwoNodes) | |
| { | |
| $this->dataCenterOneNodes = $dataCenterOneNodes; | |
| $this->dataCenterTwoNodes = $dataCenterTwoNodes; | |
| @@ -197,11 +197,17 @@ class CCM | |
| } | |
| } | |
| + private function setup($dataCenterOneNodes, $dataCenterTwoNodes) { | |
| + $this->ssl = false; | |
| + $this->clientAuth = false; | |
| + $this->internalSetup($dataCenterOneNodes, $dataCenterTwoNodes); | |
| + } | |
| + | |
| public function setupSSL() | |
| { | |
| if (!$this->ssl) { | |
| $this->ssl = true; | |
| - $this->setup(1, 0); | |
| + $this->internalSetup(1, 0); | |
| $this->stop(); | |
| $this->run('updateconf', | |
| 'client_encryption_options.enabled: true', | |
| @@ -215,7 +221,7 @@ class CCM | |
| { | |
| if (!$this->clientAuth) { | |
| $this->clientAuth = true; | |
| - $this->setup(1, 0); | |
| + $this->internalSetup(1, 0); | |
| $this->stop(); | |
| $this->run('updateconf', | |
| 'client_encryption_options.enabled: true', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment