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

Missing environment variables ? #74

Open
theonlydoo opened this issue Nov 29, 2016 · 1 comment
Open

Missing environment variables ? #74

theonlydoo opened this issue Nov 29, 2016 · 1 comment

Comments

@theonlydoo
Copy link

so far I've added :

export MASTER="{{ master_ip_address }}:{{ mesos_master_port }}"

to the slaves
and

export ZK="{{ mesos_zookeeper_masters }}"
export IP="{{ ansible_eth1.ipv4.address }}"

to the master

Otherwise /usr/bin/mesos-init-wrapper is using default values for slaves :

  [[ ! ${MASTER:-} ]]    || args+=( --master="$MASTER" )

as well for master :

  [[ ! ${ZK:-} ]]      || args+=( --zk="$ZK" )
  [[ ! ${IP:-} ]]      || args+=( --ip="$IP" )

maybe I was missing something on the playbook execution

@ernestas-poskus
Copy link
Member

they @theonlydoo the most important (not environment variable) is

zookeeper_hostnames: "{{ mesos_hostname }}:{{ zookeeper_client_port }}"

which tells Mesos where Zookeeper instance lives and then can register itself and its standby masters which later are use in auto discovery by frameworks such as Apache Marathon.

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