diff --git a/app/models/configuration_script_source.rb b/app/models/configuration_script_source.rb index 66158eb443e..c0700b5f5f0 100644 --- a/app/models/configuration_script_source.rb +++ b/app/models/configuration_script_source.rb @@ -1,4 +1,6 @@ class ConfigurationScriptSource < ApplicationRecord has_many :configuration_script_payloads belongs_to :manager, :class_name => "ExtManagementSystem" + + virtual_total :total_payloads, :configuration_script_payloads end diff --git a/config/permissions.tmpl.yml b/config/permissions.tmpl.yml index 37b34a3327b..f91a70ac405 100644 --- a/config/permissions.tmpl.yml +++ b/config/permissions.tmpl.yml @@ -1,6 +1,7 @@ --- - :aut - :automate +- :ansible - :clo - :cnt - :compute diff --git a/locale/en.yml b/locale/en.yml index 7f312ac0a80..6e76190ec88 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -699,6 +699,7 @@ en: ContainerBuild: Container Build CustomButton: Button CustomButtonSet: Buttons Group + ConfigurationScriptSource: Repository Container: Container ContainerPerformance: Performance - Container ContainerGroup: Pod @@ -737,6 +738,7 @@ en: ManageIQ::Providers::BaseManager: Provider ManageIQ::Providers::AnsibleTower::AutomationManager: Automation Manager (Ansible Tower) ManageIQ::Providers::AnsibleTower::AutomationManager::ConfigurationScript: Job Template (Ansible Tower) + ManageIQ::Providers::AnsibleTower::AutomationManager::Playbook: Playbook (Ansible Tower) ManageIQ::Providers::Foreman::ConfigurationManager: Configuration Manager (Foreman) ManageIQ::Providers::ConfigurationManager: Configuration Manager ManageIQ::Providers::AnsibleTower::AutomationManager::ConfiguredSystem: Configured System (Ansible Tower) @@ -894,6 +896,7 @@ en: Zone: Zone table: + ansible_playbook: Playbook auth_key_pair_cloud: Key Pair auth_key_pair_clouds: Key Pairs availability_zone: Availability Zone diff --git a/product/views/ConfigurationScriptSource.yaml b/product/views/ConfigurationScriptSource.yaml new file mode 100644 index 00000000000..c067f5178fa --- /dev/null +++ b/product/views/ConfigurationScriptSource.yaml @@ -0,0 +1,82 @@ +# +# This is an MIQ Report configuration file +# Single value parameters are specified as: +# single_value_parm: value +# Multiple value parameters are specified as: +# multi_value_parm: +# - value 1 +# - value 2 +# + +# Report title +title: Repository + +# Menu name +name: Repository + +# Main DB table report is based on +db: ConfigurationScriptSource + +# Columns to fetch from the main table +cols: +- name +- description +- total_payloads +- created_at +- updated_at + +# Included tables (joined, has_one, has_many) and columns + +# Included tables and columns for query performance + +# Order of columns (from all tables) +col_order: +- name +- description +- total_payloads +- created_at +- updated_at + +# Column titles, in order +headers: +- Name +- Description +- Playbooks +- Created On +- Updated On + +col_formats: +- +- +- +- + +# Condition(s) string for the SQL query +conditions: + +# Order string for the SQL query +order: Ascending + +# Columns to sort the report on, in order +sortby: +- name + +# Group rows (y=yes,n=no,c=count) +group: n + +# Graph type +# Bar +# Column +# ColumnThreed +# ParallelThreedColumn +# Pie +# PieThreed +# StackedBar +# StackedColumn +# StackedThreedColumn + +graph: + +# Dimensions of graph (1 or 2) +# Note: specifying 2 for a single dimension graph may not return expected results +dims: diff --git a/product/views/ManageIQ_Providers_AnsibleTower_AutomationManager_Playbook.yaml b/product/views/ManageIQ_Providers_AnsibleTower_AutomationManager_Playbook.yaml new file mode 100644 index 00000000000..81cc08575ee --- /dev/null +++ b/product/views/ManageIQ_Providers_AnsibleTower_AutomationManager_Playbook.yaml @@ -0,0 +1,86 @@ +# +# This is an MIQ Report configuration file +# Single value parameters are specified as: +# single_value_parm: value +# Multiple value parameters are specified as: +# multi_value_parm: +# - value 1 +# - value 2 +# + +# Report title +title: Ansible Tower Playbooks + +# Menu name +name: Playbooks + +# Main DB table report is based on +db: ManageIQ::Providers::AnsibleTower::AutomationManager::Playbook + +# Columns to fetch from the main table +cols: +- name +- description +- repository +- created_at +- updated_at + +# Included tables (joined, has_one, has_many) and columns +include: + configuration_script_source: + columns: + - name + +# Order of columns (from all tables) +col_order: +- name +- description +- configuration_script_source.name +- created_at +- updated_at + +# Column titles, in order +headers: +- Name +- Description +- Repository +- Created On +- Updated On + + +col_formats: +- +- +- +- +- + +# Condition(s) string for the SQL query +conditions: + +# Order string for the SQL query +order: Ascending + +# Columns to sort the report on, in order +sortby: +- name + +# Group rows (y=yes,n=no,c=count) +group: n + +# Graph type +# Bar +# Column +# ColumnThreed +# ParallelThreedColumn +# Pie +# PieThreed +# StackedBar +# StackedColumn +# StackedThreedColumn + +graph: + +# Dimensions of graph (1 or 2) +# Note: specifying 2 for a single dimension graph may not return expected results +dims: