Commit 9325f9f3 authored by Levin Zimmermann's avatar Levin Zimmermann

playbook: Fix Fluentd request

Replaced 'computer_name' with 'computer_id'. Previously I confused both.
Now the user has to enter the respective computer reference.
parent c647ed6f
# Constants
fluentd_software_release_uri = product.fluentd
computer_name = "{{computer_name}}"
computer_id = "{{computer_id}}"
fluentd_software_name = "{{fluentd_software_name}}"
fluentd_config = """{{fluentd_config}}"""
# Supplying and requesting
supply(fluentd_software_release_uri, computer_name)
supply(fluentd_software_release_uri, computer_id)
request(
fluentd_software_release_uri,
fluentd_software_name,
filter_kw={"computer_guid": computer_name},
filter_kw={"computer_guid": computer_id},
partition_parameter_kw={"conf_text": fluentd_config},
)
......@@ -6,6 +6,13 @@
hosts: 127.0.0.1
connection: local
pre_tasks:
- pause:
prompt: "What is the reference of your computer (COMP-XXXX)?"
register: prompt
- set_fact:
computer_id: "{{ prompt.user_input }}"
tasks:
- name: Check if client configuration exists already
stat: path=/root/.slapos/slapos-client.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment