Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 2.78 KB

ansible_integration.md

File metadata and controls

71 lines (56 loc) · 2.78 KB
page_title subcategory description
morpheus_ansible_integration Resource - terraform-provider-morpheus
Provides an ansible integration resource

morpheus_ansible_integration

Provides an ansible integration resource

Example Usage

data "morpheus_key_pair" "tf_example_key_pair" {
  name = "morpheusgit"
}

resource "morpheus_ansible_integration" "tf_example_ansible_integration" {
  name                          = "tfexample ansible"
  enabled                       = true
  url                           = "https://github.com/gomorpheus/morpheus-ansible.git"
  default_branch                = "master"
  playbooks_path                = "/"
  roles_path                    = "/roles"
  group_variables_path          = "/vars"
  host_variables_path           = "/vars"
  enable_ansible_galaxy_install = true
  enable_verbose_logging        = true
  enable_agent_command_bus      = true
  key_pair_id                   = data.morpheus_key_pair.tf_example_key_pair.id
  enable_git_caching            = true
}

Schema

Required

  • name (String) The name of the ansible integration
  • url (String) The url of the ansible repository

Optional

  • access_token (String, Sensitive) The access token of the account used to authenticate to the ansible repository
  • default_branch (String) The default branch of the ansible repository
  • enable_agent_command_bus (Boolean) Whether the agent command bus is used to execute the ansible playbook
  • enable_ansible_galaxy_install (Boolean) Whether to install the Ansible roles defined in the requirements.yml
  • enable_git_caching (Boolean) Whether the git repository is cached
  • enable_verbose_logging (Boolean) Whether verbose logging is used during the execution of the ansible playbook
  • enabled (Boolean) Whether the ansible integration is enabled
  • group_variables_path (String) The path in the repository of the Ansible group variables relative to the Git url
  • host_variables_path (String) The path in the repository of the Ansible host variables relative to the Git url
  • key_pair_id (Number) The ID of the key pair used to authenticate to the ansible repository
  • password (String, Sensitive) The password of the account used to authenticate to the ansible repository
  • playbooks_path (String) The path in the repository of the Ansible playbooks relative to the Git url
  • roles_path (String) The path in the repository of the Ansible roles relative to the Git url
  • username (String) The username of the account used to authenticate to the ansible repository

Read-Only

  • id (String) The ID of the ansible integration

Import

Import is supported using the following syntax:

terraform import morpheus_ansible_integration.tf_example_ansible_integration 1