morpheus.core.appliance_facts (0.5.1) — module

Gather Morpheus Appliance Facts

| "added in version" 0.3.0 of morpheus.core"

Authors: James Riach

Install collection

Install with ansible-galaxy collection install morpheus.core:==0.5.1


Add to requirements.yml

  collections:
    - name: morpheus.core
      version: 0.5.1

Description

Gathers Morpheus Appliance Facts

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather All Facts
  morpheus.core.appliance_facts:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather Minimum Facts
  morpheus.core.appliance_facts:
    gather_subset:
      - "!all"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Gather License Facts
  morpheus.core.appliance_facts:
    gather_subset:
      - "!all"
      - "!min"
      - "license"

Inputs

    
filter:
    default: []
    description:
    - Match facts to one of the specified patterns.
    elements: str
    type: list

gather_subset:
    default: all
    description:
    - 'Specify or restrict the facts that are gathered. Possible values: C(all), C(database),
      C(elastic), C(license), C(rabbitmq), C(settings), C(system), C(threads). The minimum
      subset is: C(license), C(settings), C(system). To specify a specific subset, use
      C(!all, !min) and then specify the fact(s) required.'
    elements: str
    type: list

gather_timeout:
    default: 10
    description:
    - Timeout period for collecting individual facts
    type: int

Outputs

ansible_facts:
  description: Example of returned ansible_facts
  returned: always
  sample:
    ansible_facts:
      gather_subset:
      - '!all'
      - '!min'
      - license
      - settings
      module_setup: true
      morpheus_license:
        account_name: MyCompany
        amazon_product_codes: null
        config: {}
        date_created: '2022-11-17T10:05:22Z'
        end_date: '2023-08-31T00:00:00Z'
        features:
          activity: true
          analytics: true
          approval_services: true
          approvals: true
          apps: true
          archives: true
          automation: true
          automation_services: true
          backup_services: true
          backups: true
          boot: true
          build_services: true
          clouds: true
          cmdb_services: true
          code_service: true
          cypher: true
          dashboard: true
          deployment_services: true
          deployments: true
          discovery: true
          dns_services: true
          groups: true
          guidance: true
          hosts: true
          identity_services: true
          image_builder: true
          instances: true
          ipam_services: true
          key_pairs: true
          library: true
          load_balancer_services: true
          load_balancers: true
          logging: true
          logging_services: true
          migrations: true
          monitoring: true
          monitoring_services: true
          network: true
          plans: true
          pricing: true
          scheduling: true
          security_services: true
          service_discovery_services: true
          ssl_certificates: true
          storage: true
          templates: true
          tenants: true
          trust_services: true
          usage: true
          user_groups: true
          users: true
          virtual_images: true
        free_trial: false
        hard_limit: true
        last_updated: '2022-11-17T10:05:22Z'
        max_instances: 1000
        max_memory: 0
        max_storage: 0
        multi_tenant: true
        product_tier: enterprise
        report_status: true
        start_date: '2022-08-22T00:00:00Z'
        support_level: standard
        whitelabel: true
        zone_types: null
      morpheus_settings:
        appliance_url: https://cmp.domain.tld
        cors_allowed: null
        currency_key: null
        currency_provider: null
        default_role_id: null
        default_user_role_id: null
        disable_after_attempts: '5'
        disable_after_days_inactive: null
        docker_privileged_mode: false
        enabled_zone_types:
        - id: 4
          name: Amazon
        - id: 9
          name: Azure (Public)
        - id: 11
          name: DigitalOcean
        - id: 3
          name: Morpheus
        - id: 18
          name: Oracle Public Cloud
        - id: 40
          name: PowerVC
        - id: 17
          name: UpCloud
        - id: 38
          name: VMware Fusion
        - id: 28
          name: VMware vCenter
        - id: 34
          name: vCloud Director
        expire_pwd_days: null
        internal_appliance_url: null
        maintenance_mode: false
        proxy_domain: null
        proxy_host: null
        proxy_password: null
        proxy_password_hash: null
        proxy_port: null
        proxy_user: null
        proxy_workstation: null
        registration_enabled: false
        smtp_mail_from: morpheus@domain.tld
        smtp_password: null
        smtp_password_hash: null
        smtp_port: '25'
        smtp_server: smtp.domain.tld
        smtp_ssl: false
        smtp_tls: true
        smtp_user: null
        stats_retainment_period: null
        warn_user_days_before: null