Clone this repo:

Branches

  1. 73ea2ee Updated README.md file by Carlos Frias · 8 years ago master
  2. f2d4b1c Updated existing changes by Carlos Frias · 8 years ago
  3. a9d05b5 Updated docs by Carlos Frias · 8 years ago
  4. 48a0d04 Updated README.md file by Carlos Frias · 8 years ago
  5. 6b9b833 Updated README.md file by Carlos Frias · 8 years ago

Apigee Fetch Files

This role will download logs and configuration files from a node used to install an Apigee platform component.

Requirements

None

Role Variables

Variable NameDescription
download_patternThis is a collection that indicates the directory and file pattern to find
download_folderThis indicates the folder on the control server where the files should be placed

The download_pattern collection should be structured in the following way:

 pattern:
    - { dir: '/tmp', pattern: 'setup*.log' }
    - { dir: '{{ opdk_installer_path }}/', pattern: '*' }
    - { dir: '{{ opdk_installer_path }}/', pattern: '*.log' }
    - { dir: '{{ opdk_installer_path }}/', pattern: '*.txt' }
    - { dir: '{{ opdk_installer_path }}/', pattern: '*.conf' }
    - { dir: '{{ opdk_installer_path }}/', pattern: '*.sh' }
    - { dir: '{{ apigee_home }}/', pattern: '*.out' }
    - { dir: '{{ apigee_home }}/var/log', pattern: '*.log' }
    - { dir: '{{ apigee_home }}/customer/', pattern: '*' }
    - { dir: '{{ apigee_home }}/etc/', pattern: 'default*.sh' }
    - { dir: '{{ apigee_home }}/customer', pattern: '*' }
    - { dir: '{{ apigee_home }}/apigee-cassandra/', pattern: '*conf' }
    - { dir: '{{ apigee_home }}/apigee-cassandra/', pattern: '*yaml' }
    - { dir: '{{ apigee_home }}/apigee-cassandra/', pattern: '*properties' }
    - { dir: '{{ apigee_home }}/apigee-zookeeper/', pattern: '*conf' }
    - { dir: '{{ apigee_home }}/apigee-zookeeper/', pattern: '*properties' }
    - { dir: '{{ apigee_home }}/apigee-postgresql/', pattern: '*conf' }

Dependencies

None

Example Playbook

- hosts: servers
  roles: 
    - { role: apigee-fetch-files, download_pattern: '{{ pattern }}', download_folder: "~/.apigee/planet_logs" }

License

Apache 2.0

Author Information

Carlos Frias

Required Disclaimer

This is not an officially supported Google product.

Not Google Product Clause

This is not an officially supported Google product.

How to Contribute

We'd love to accept your patches and contributions to this project. Please review our guidelines.