Skip to content

Instantly share code, notes, and snippets.

@mpenick
Created February 9, 2016 21:11
Show Gist options
  • Select an option

  • Save mpenick/bbbaf3982c48c57a32ef to your computer and use it in GitHub Desktop.

Select an option

Save mpenick/bbbaf3982c48c57a32ef to your computer and use it in GitHub Desktop.
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