Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

join_cluster not working on agents #56

Closed
kostyrev opened this issue Dec 21, 2014 · 2 comments
Closed

join_cluster not working on agents #56

kostyrev opened this issue Dec 21, 2014 · 2 comments

Comments

@kostyrev
Copy link

Or maybe I'm using this module wrong.
I've setup one server with

class { 'consul':
  config_hash => {
      'datacenter'  => 'car',
      'data_dir'    => '/opt/consul',
      'ui_dir'      => '/opt/consul/ui',
      'client_addr' => '0.0.0.0',
      'log_level'   => 'INFO',
      'node_name'   => "${hostname}",
      'server'      => true,
      'bootstrap_expect' => 1
  }
}

and three agents with

class { 'consul':
join_cluster => 'test-cluster-vm.car.dmz',
  config_hash => {
      'datacenter'  => 'car',
      'data_dir'    => '/opt/consul',
      'client_addr' => '0.0.0.0',
      'log_level'   => 'INFO',
      'node_name'   => "${hostname}",
      'server'      => false,
  }
}
    consul::service { 'puppetmaster':
        port           => 8140,
    }

But exec exec { 'join consul cluster': is not working 'cause

/usr/local/bin/consul info | grep num

shows nothing on those three agents

@kostyrev
Copy link
Author

I guess I stumbled upon #31
It would be nice if you'd updated README

@solarkennedy
Copy link
Contributor

I've updated the readme. Please PR if you have any improvements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants