added downloading of logs and configs
diff --git a/opdk-setup-log-files.yml b/opdk-setup-log-files.yml new file mode 100644 index 0000000..cb7591d --- /dev/null +++ b/opdk-setup-log-files.yml
@@ -0,0 +1,39 @@ +--- +- hosts: '{{ hosts }}' + become: true + strategy: free + vars: + pattern: + - { dir: '/etc/', pattern: 'hosts' } + - { dir: '/etc/', pattern: 'hosts.allow' } + - { dir: '/etc/', pattern: 'hosts.deny' } + - { dir: '/etc/', pattern: 'environment' } + - { dir: '/etc/', pattern: 'profile' } + - { dir: '/etc/', pattern: 'bashrc' } + - { dir: '/etc/', pattern: 'resolv.conf' } + - { dir: '/etc/', pattern: 'sysctl.conf' } + - { dir: '/etc/', pattern: 'sudoers' } + - { dir: '/etc/security/', pattern: 'limits.conf' } + - { dir: '/etc/security/limits.d/', pattern: '*conf' } + - { dir: '/var/log/', pattern: 'messages' } + - { dir: '{{ opdk_installer_path }}/', pattern: '*.log' } + - { dir: '{{ opdk_installer_path }}/', pattern: '*.txt' } + - { dir: '{{ apigee_installation_home }}/', pattern: '*.out' } + - { dir: '{{ apigee_installation_home }}/var/log', pattern: '*.log' } + - { dir: '{{ opdk_installer_path }}/', pattern: '*.conf' } + - { dir: '{{ opdk_installer_path }}/', pattern: '*.sh' } + - { dir: '{{ apigee_installation_home }}/customer/', pattern: '*' } + - { dir: '{{ apigee_installation_home }}/etc/', pattern: 'default*.sh' } + - { dir: '{{ apigee_installation_home }}/customer', pattern: '*' } + - { dir: '{{ apigee_installation_home }}/apigee-cassandra/', pattern: '*conf' } + - { dir: '{{ apigee_installation_home }}/apigee-cassandra/', pattern: '*cfg' } + - { dir: '{{ apigee_installation_home }}/apigee-cassandra/', pattern: '*yml' } + - { dir: '{{ apigee_installation_home }}/apigee-cassandra/', pattern: '*yaml' } + - { dir: '{{ apigee_installation_home }}/apigee-cassandra/', pattern: '*properties' } + - { dir: '{{ apigee_installation_home }}/apigee-zookeeper/', pattern: '*conf' } + - { dir: '{{ apigee_installation_home }}/apigee-zookeeper/', pattern: '*cfg' } + - { dir: '{{ apigee_installation_home }}/apigee-zookeeper/', pattern: '*yml' } + - { dir: '{{ apigee_installation_home }}/apigee-zookeeper/', pattern: '*yaml' } + - { dir: '{{ apigee_installation_home }}/apigee-zookeeper/', pattern: '*properties' } + roles: + - { role: apigee-fetch-files, download_pattern: '{{ pattern }}', download_folder: "~/.apigee/logs_configs/{{ hosts }}/" }
diff --git a/update.yml b/update.yml index b965b42..5af134c 100644 --- a/update.yml +++ b/update.yml
@@ -77,3 +77,45 @@ - { role: apigee-opdk-start-components, tags: ['start'], component_start_delay: '{{ start_delay | default(0) }}' } tags: - restart + +- name: Download logs and configs from dc-1-ds + include: opdk-setup-log-files.yml + vars: + hosts: dc-1-ds + tags: + - logs + +- name: Download logs and configs from dc-1-ms + include: opdk-setup-log-files.yml + vars: + hosts: dc-1-ms + tags: + - logs + +- name: Download logs and configs from dc-1-rmp + include: opdk-setup-log-files.yml + vars: + hosts: dc-1-rmp + tags: + - logs + +- name: Download logs and configs from dc-2-ds + include: opdk-setup-log-files.yml + vars: + hosts: dc-2-ds + tags: + - logs + +- name: Download logs and configs from dc-2-ms + include: opdk-setup-log-files.yml + vars: + hosts: dc-2-ms + tags: + - logs + +- name: Download logs and configs from dc-2-rmp + include: opdk-setup-log-files.yml + vars: + hosts: dc-2-rmp + tags: + - logs