Skip to content

Instantly share code, notes, and snippets.

View Znuff's full-sized avatar

Znuff Znuff

  • Romania
  • 06:16 (UTC +03:00)
View GitHub Profile
#!/bin/bash
RELEASEFILE="https://github.com/Znuff/qbic/releases/download/v1.1.1/qbicd-linux64-v1.1.1.tar.gz"
daemon="qbicd"
cli="qbic-cli"
stopcli="stop"
# environment setup, make it pretty
tred=$(tput setaf 1)
@Znuff
Znuff / fix-me.md
Last active February 12, 2018 01:59

So, I'll say it now in full, and only if these EXACT conditions apply:

  1. If you followed the guide, and your config is something like (please notice masternodeaddr=):
rpcport=21527

port=21526
masternodeaddr=IP:21527
node# cat myuuid.fact
"e48aeb68-ebb7-4e53-971d-0b4b59d242c4"
---
master# ansible cloudini-hosts -m setup -a "filter=ansible_local"
bu-x40092.appnor.net | SUCCESS => {
"ansible_facts": {
"ansible_local": {
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary