clean up product demo readme to generate on flat-files
This commit is contained in:
57
README.md
57
README.md
@@ -26,11 +26,20 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
|||||||
<th>Video Walkthrough</th>
|
<th>Video Walkthrough</th>
|
||||||
<th>Workshop Types</th>
|
<th>Workshop Types</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Create Developer Report</td>
|
<td>SERVER / Fact Scan</td>
|
||||||
<td>Sean Cavanaugh</td>
|
<td>Will Tome</td>
|
||||||
<td><pre>demo: developer_report</pre></td>
|
<td><pre>demo: fact_scan</pre></td>
|
||||||
<td>Create HTML report using <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a></td>
|
<td>scan facts for Linux and Windows systems</td>
|
||||||
|
<td>Not available </td>
|
||||||
|
<td><ul><li>f5</li><li>rhel</li><li>windows</li></ul></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>SERVER / Patching</td>
|
||||||
|
<td>Will Tome</td>
|
||||||
|
<td><pre>demo: patching</pre></td>
|
||||||
|
<td>patching for Linux servers</td>
|
||||||
<td>Not available </td>
|
<td>Not available </td>
|
||||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -42,22 +51,6 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
|||||||
<td>Not available </td>
|
<td>Not available </td>
|
||||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>Deploy Application (survey)</td>
|
|
||||||
<td>Sean Cavanaugh</td>
|
|
||||||
<td><pre>demo: deploy_application</pre></td>
|
|
||||||
<td>install yum applications on Linux with a survey</td>
|
|
||||||
<td><a href="https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED">Video Link</a></td>
|
|
||||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>SERVER / Fact Scan</td>
|
|
||||||
<td>Will Tome</td>
|
|
||||||
<td><pre>demo: fact_scan</pre></td>
|
|
||||||
<td>scan facts for Linux and Windows systems</td>
|
|
||||||
<td>Not available </td>
|
|
||||||
<td><ul><li>f5</li><li>rhel</li><li>windows</li></ul></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>SERVER / Hardening</td>
|
<td>SERVER / Hardening</td>
|
||||||
<td>Will Tome</td>
|
<td>Will Tome</td>
|
||||||
@@ -66,14 +59,6 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
|||||||
<td>Not available </td>
|
<td>Not available </td>
|
||||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>SERVER / Patching</td>
|
|
||||||
<td>Will Tome</td>
|
|
||||||
<td><pre>demo: patching</pre></td>
|
|
||||||
<td>patching for Linux servers</td>
|
|
||||||
<td>Not available </td>
|
|
||||||
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Windows IIS Server</td>
|
<td>Windows IIS Server</td>
|
||||||
<td>Colin McNaughton</td>
|
<td>Colin McNaughton</td>
|
||||||
@@ -82,6 +67,22 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
|||||||
<td>Not available </td>
|
<td>Not available </td>
|
||||||
<td><ul><li>windows</li></ul></td>
|
<td><ul><li>windows</li></ul></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Deploy Application (survey)</td>
|
||||||
|
<td>Sean Cavanaugh</td>
|
||||||
|
<td><pre>demo: deploy_application</pre></td>
|
||||||
|
<td>install yum applications on Linux with a survey</td>
|
||||||
|
<td><a href="https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED">Video Link</a></td>
|
||||||
|
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Create Developer Report</td>
|
||||||
|
<td>Sean Cavanaugh</td>
|
||||||
|
<td><pre>demo: developer_report</pre></td>
|
||||||
|
<td>Create HTML report using <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variables-discovered-from-systems-facts">Ansible facts</a></td>
|
||||||
|
<td>Not available </td>
|
||||||
|
<td><ul><li>f5</li><li>rhel</li></ul></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
|
|||||||
@@ -4,11 +4,11 @@
|
|||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: install demo
|
|
||||||
debug:
|
|
||||||
msg: "{{item.key}}"
|
|
||||||
loop: "{{ hostvars['localhost']|dict2items }}"
|
|
||||||
when: "item.key[:8] != 'ansible_'"
|
|
||||||
# - name: install demo
|
# - name: install demo
|
||||||
# include_role:
|
# debug:
|
||||||
# name: "../roles/generate_readme"
|
# msg: "{{item}}"
|
||||||
|
# loop: "{{dict(hostvars[inventory_hostname]|dictsort|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined'))|dict2items}}"
|
||||||
|
|
||||||
|
- name: install demo
|
||||||
|
include_role:
|
||||||
|
name: "../roles/generate_readme"
|
||||||
|
|||||||
@@ -8,7 +8,21 @@ deploy_application:
|
|||||||
playbook: "playbooks/01_deploy_application.yml"
|
playbook: "playbooks/01_deploy_application.yml"
|
||||||
credential: "Workshop Credential"
|
credential: "Workshop Credential"
|
||||||
survey_enabled: yes
|
survey_enabled: yes
|
||||||
survey_spec: "{{survey_deploy_application}}"
|
survey_spec:
|
||||||
|
name: Deploy application survey
|
||||||
|
description: Which application do you want to install?
|
||||||
|
spec:
|
||||||
|
- type: multiplechoice
|
||||||
|
question_name: Select a command you would like to execute
|
||||||
|
question_description: select the application
|
||||||
|
variable: application
|
||||||
|
required: true
|
||||||
|
default: httpd
|
||||||
|
choices:
|
||||||
|
- httpd
|
||||||
|
- nginx
|
||||||
|
- htop
|
||||||
|
- gdb
|
||||||
video: "https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED"
|
video: "https://www.youtube.com/watch?v=pU8ZgSBuEJw&list=PLdu06OJoEf2bp-PNtxPP_2n7Avkax8TED"
|
||||||
project:
|
project:
|
||||||
name: "Ansible official demo project"
|
name: "Ansible official demo project"
|
||||||
@@ -19,18 +33,3 @@ deploy_application:
|
|||||||
workshop_type:
|
workshop_type:
|
||||||
- f5
|
- f5
|
||||||
- rhel
|
- rhel
|
||||||
survey_deploy_application:
|
|
||||||
name: Deploy application survey
|
|
||||||
description: Which application do you want to install?
|
|
||||||
spec:
|
|
||||||
- type: multiplechoice
|
|
||||||
question_name: Select a command you would like to execute
|
|
||||||
question_description: select the application
|
|
||||||
variable: application
|
|
||||||
required: true
|
|
||||||
default: httpd
|
|
||||||
choices:
|
|
||||||
- httpd
|
|
||||||
- nginx
|
|
||||||
- htop
|
|
||||||
- gdb
|
|
||||||
|
|||||||
@@ -8,7 +8,14 @@ patching:
|
|||||||
playbook: "playbooks/02_patching.yml"
|
playbook: "playbooks/02_patching.yml"
|
||||||
credential: "Workshop Credential"
|
credential: "Workshop Credential"
|
||||||
survey_enabled: yes
|
survey_enabled: yes
|
||||||
survey_spec: "{{survey_patching}}"
|
survey_spec:
|
||||||
|
name: ''
|
||||||
|
description: ''
|
||||||
|
spec:
|
||||||
|
- question_name: 'Enter host to configure'
|
||||||
|
type: text
|
||||||
|
variable: HOSTS
|
||||||
|
required: false
|
||||||
project:
|
project:
|
||||||
name: "Ansible official demo project"
|
name: "Ansible official demo project"
|
||||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||||
@@ -18,11 +25,3 @@ patching:
|
|||||||
workshop_type:
|
workshop_type:
|
||||||
- f5
|
- f5
|
||||||
- rhel
|
- rhel
|
||||||
survey_patching:
|
|
||||||
name: ''
|
|
||||||
description: ''
|
|
||||||
spec:
|
|
||||||
- question_name: 'Enter host to configure'
|
|
||||||
type: text
|
|
||||||
variable: HOSTS
|
|
||||||
required: false
|
|
||||||
|
|||||||
@@ -8,7 +8,42 @@ hardening:
|
|||||||
playbook: "playbooks/03_hardening.yml"
|
playbook: "playbooks/03_hardening.yml"
|
||||||
credential: "Workshop Credential"
|
credential: "Workshop Credential"
|
||||||
survey_enabled: yes
|
survey_enabled: yes
|
||||||
survey_spec: "{{survey_hardening}}"
|
survey_spec:
|
||||||
|
name: ''
|
||||||
|
description: ''
|
||||||
|
spec:
|
||||||
|
- question_name: 'Enter host to configure'
|
||||||
|
type: text
|
||||||
|
variable: HOSTS
|
||||||
|
required: false
|
||||||
|
- question_name: Configure Firewall?
|
||||||
|
type: multiplechoice
|
||||||
|
variable: harden_firewall
|
||||||
|
required: false
|
||||||
|
choices:
|
||||||
|
- 'Yes'
|
||||||
|
- 'No'
|
||||||
|
- question_name: Configure Time?
|
||||||
|
type: multiplechoice
|
||||||
|
variable: harden_time
|
||||||
|
required: false
|
||||||
|
choices:
|
||||||
|
- 'Yes'
|
||||||
|
- 'No'
|
||||||
|
- question_name: Harden SSH?
|
||||||
|
type: multiplechoice
|
||||||
|
variable: harden_ssh
|
||||||
|
required: false
|
||||||
|
choices:
|
||||||
|
- 'Yes'
|
||||||
|
- 'No'
|
||||||
|
- question_name: PCI Baseline?
|
||||||
|
type: multiplechoice
|
||||||
|
variable: harden_pci
|
||||||
|
required: false
|
||||||
|
choices:
|
||||||
|
- 'Yes'
|
||||||
|
- 'No'
|
||||||
project:
|
project:
|
||||||
name: "Ansible official demo project"
|
name: "Ansible official demo project"
|
||||||
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
description: "prescriptive demos from Red Hat Management Buisness Unit"
|
||||||
@@ -18,39 +53,3 @@ hardening:
|
|||||||
workshop_type:
|
workshop_type:
|
||||||
- f5
|
- f5
|
||||||
- rhel
|
- rhel
|
||||||
survey_hardening:
|
|
||||||
name: ''
|
|
||||||
description: ''
|
|
||||||
spec:
|
|
||||||
- question_name: 'Enter host to configure'
|
|
||||||
type: text
|
|
||||||
variable: HOSTS
|
|
||||||
required: false
|
|
||||||
- question_name: Configure Firewall?
|
|
||||||
type: multiplechoice
|
|
||||||
variable: harden_firewall
|
|
||||||
required: false
|
|
||||||
choices:
|
|
||||||
- 'Yes'
|
|
||||||
- 'No'
|
|
||||||
- question_name: Configure Time?
|
|
||||||
type: multiplechoice
|
|
||||||
variable: harden_time
|
|
||||||
required: false
|
|
||||||
choices:
|
|
||||||
- 'Yes'
|
|
||||||
- 'No'
|
|
||||||
- question_name: Harden SSH?
|
|
||||||
type: multiplechoice
|
|
||||||
variable: harden_ssh
|
|
||||||
required: false
|
|
||||||
choices:
|
|
||||||
- 'Yes'
|
|
||||||
- 'No'
|
|
||||||
- question_name: PCI Baseline?
|
|
||||||
type: multiplechoice
|
|
||||||
variable: harden_pci
|
|
||||||
required: false
|
|
||||||
choices:
|
|
||||||
- 'Yes'
|
|
||||||
- 'No'
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
|||||||
<th>Video Walkthrough</th>
|
<th>Video Walkthrough</th>
|
||||||
<th>Workshop Types</th>
|
<th>Workshop Types</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for key, value in demos.items()|sort(attribute='1.name') %}
|
|
||||||
|
{% for key, value in hostvars[inventory_hostname].items()|rejectattr('0', 'match', 'ansible_')|selectattr('1.name', 'defined') %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{value.name}}</td>
|
<td>{{value.name}}</td>
|
||||||
<td>{{value.author}}</td>
|
<td>{{value.author}}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user