Ver código fonte

fix ansible user vars

tags/v0.1.8
Jonathan Cobb 4 anos atrás
pai
commit
7e96d00028
3 arquivos alterados com 4 adições e 4 exclusões
  1. +1
    -1
      automation/roles/bubble/files/bubble_role.json
  2. +2
    -2
      automation/roles/bubble/templates/refresh_bubble_ssh_keys.sh.j2
  3. +1
    -1
      bubble-server/src/main/resources/ansible/install_local.sh.hbs

+ 1
- 1
automation/roles/bubble/files/bubble_role.json Ver arquivo

@@ -13,7 +13,7 @@
{"name": "bubble_version", "value": "[[configuration.version]]"},
{"name": "bubble_host", "value": "[[node.fqdn]]"},
{"name": "bubble_cname", "value": "[[network.networkDomain]]"},
{"name": "admin_user", "value": "[[node.user]]"},
{"name": "admin_user", "value": "[[node.ansibleUser]]"},
{"name": "db_encoding", "value": "UTF-8"},
{"name": "db_locale", "value": "en_US"},
{"name": "db_user", "value": "bubble"},


+ 2
- 2
automation/roles/bubble/templates/refresh_bubble_ssh_keys.sh.j2 Ver arquivo

@@ -36,9 +36,9 @@ for key in $(echo "${CURRENT_KEYS_SQL}" | PGPASSWORD="$(cat /home/bubble/.BUBBLE
done

# Retain self-generated ansible setup key
ANSIBLE_USER="{{node.user}}"
ANSIBLE_USER="{{admin_user}}"
if [[ ! -z "${ANSIBLE_USER}" ]] ; then
PUB_FILE="$(cd ~{{node.user}} && pwd)/.ssh/bubble_rsa.pub"
PUB_FILE="$(cd "~{{admin_user}}" && pwd)/.ssh/bubble_rsa.pub"
if [[ -f "${PUB_FILE}" ]] ; then
cat "${PUB_FILE}" >> ${NEW_KEYS}
fi


+ 1
- 1
bubble-server/src/main/resources/ansible/install_local.sh.hbs Ver arquivo

@@ -1,7 +1,7 @@
#!/bin/bash

ANSIBLE_USER="{{node.user}}"
ANSIBLE_HOME="$(cd ~{{node.user}} && pwd)"
ANSIBLE_HOME="$(cd "~{{node.user}}" && pwd)"
LOG="${ANSIBLE_HOME}/.ansible.log"

function log {


Carregando…
Cancelar
Salvar