From 9e44fdc6c1f4225b6ea9343e73f6e2b65f4e152a Mon Sep 17 00:00:00 2001 From: ipvsean Date: Wed, 22 Apr 2020 15:00:32 -0400 Subject: [PATCH] new demo with insights --- galaxy.yml | 2 +- playbooks/08_insights.yml | 14 +++++++++ roles/install_demo/vars/main/08_insights.yml | 33 ++++++++++++++++++++ roles/requirements.yml | 1 + 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 playbooks/08_insights.yml create mode 100644 roles/install_demo/vars/main/08_insights.yml diff --git a/galaxy.yml b/galaxy.yml index 1398d3b..3319e2b 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: ipvsean name: product_demos -version: 1.0.4 +version: 1.0.5 readme: README.md authors: diff --git a/playbooks/08_insights.yml b/playbooks/08_insights.yml new file mode 100644 index 0000000..76abe27 --- /dev/null +++ b/playbooks/08_insights.yml @@ -0,0 +1,14 @@ +--- +- name: install and configure insights agent on all specified nodes + hosts: "{{ HOSTS | default('web') }}" + roles: + - role: RedHatInsights.insights-client + vars: + redhat_portal_username: "{{ insights_user }}" + redhat_portal_password: "{{ insights_password }}" + insights_display_name: "{{ inventory_hostname }}" + when: ansible_os_family == 'RedHat' + + - name: print info to terminal window + debug: + msg: "Red Hat Insights is installed and configured for {{ inventory_hostname }}" diff --git a/roles/install_demo/vars/main/08_insights.yml b/roles/install_demo/vars/main/08_insights.yml new file mode 100644 index 0000000..43d9889 --- /dev/null +++ b/roles/install_demo/vars/main/08_insights.yml @@ -0,0 +1,33 @@ +--- +insights: + author: "Sean Cavanaugh" + category: infrastructure + name: "SERVER / Red Hat Insights" + description: "install and configure Red Hat Insights" + job_type: "run" + inventory: "Workshop Inventory" + playbook: playbooks/08_insights.yml + credential: "Workshop Credential" + survey_enabled: true + survey_spec: + name: '' + description: '' + spec: + - question_name: 'Enter your Red Hat customer portal username' + type: text + variable: redhat_portal_username + required: true + - question_name: 'Enter your Red Hat customer portal passowrd' + type: password + variable: redhat_portal_password + required: true + project: + name: "Ansible official demo project" + description: "prescriptive demos from Red Hat Management Buisness Unit" + organization: "Default" + scm_type: git + scm_url: "https://github.com/ansible/product-demos" + workshop_type: + - f5 + - rhel + - rhel_90 diff --git a/roles/requirements.yml b/roles/requirements.yml index 46b6811..57a7fa5 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -4,3 +4,4 @@ - src: redhatofficial.rhel8_pci_dss - src: linux-system-roles.firewall - src: linux-system-roles.timesync +- src: RedHatInsights.insights-client