Skip to content

Commit

Permalink
Merge pull request #13731 from mzazrivec/core_changes_for_ansible_tow…
Browse files Browse the repository at this point in the history
…er_playbook_ui

Core changes for Ansible Tower Playbooks & Repositories UI
  • Loading branch information
martinpovolny authored Feb 15, 2017
2 parents fdb12b1 + 891bb33 commit d23115d
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/configuration_script_source.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions config/permissions.tmpl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- :aut
- :automate
- :ansible
- :clo
- :cnt
- :compute
Expand Down
3 changes: 3 additions & 0 deletions locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ en:
ContainerBuild: Container Build
CustomButton: Button
CustomButtonSet: Buttons Group
ConfigurationScriptSource: Repository
Container: Container
ContainerPerformance: Performance - Container
ContainerGroup: Pod
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
82 changes: 82 additions & 0 deletions product/views/ConfigurationScriptSource.yaml
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit d23115d

Please sign in to comment.