{"id":704,"date":"2018-09-13T01:00:00","date_gmt":"2018-09-13T01:00:00","guid":{"rendered":"http:\/\/inswwdev.azurewebsites.net\/au\/insights\/uncategorized\/how-to-speed-up-veritas-infoscale-installation\/"},"modified":"2024-12-13T02:02:00","modified_gmt":"2024-12-13T02:02:00","slug":"how-to-speed-up-veritas-infoscale-installation","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/us\/insights\/geek-speak\/modern-workplace\/how-to-speed-up-veritas-infoscale-installation\/","title":{"rendered":"How to Speed Up Veritas Infoscale Installation"},"content":{"rendered":"<p style=\"text-align: justify;\">Problem statement:<\/p>\n<p style=\"text-align: justify;\">Install Infoscale on fifty (50) nodes without copying chunky tar.gz to all of them.<\/p>\n<p style=\"text-align: justify;\">I had an issue some time ago. I needed to install the Infoscale on a large number of nodes and I did not want to do it manually. I like my coffee.<\/p>\n<p style=\"text-align: justify;\">How to approach that problem \u2013 create a repository and install required packages using Ansible playbook.<\/p>\n<p style=\"text-align: justify;\">So let\u2019s get to it.<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong><span>\u00a0<\/span>I will skip how to install and configure apache server but for your knowledge \u2013 once you install httpd on the server, the default path apache is checking is \/<em>var<\/em>\/www\/html<br \/><strong>2.<\/strong><span>\u00a0<\/span>Get the Infoscale package and untar it<br \/><strong>3.<\/strong><span>\u00a0<\/span>Copy the directory (or directories if you are planning to install Infoscale on RHEL 6.x) to \/<em>var<\/em>\/www\/html<br \/><strong>4.<\/strong><span>\u00a0<\/span>Ensure that the apache has privileges to read the files<br \/><strong>5.<\/strong><span>\u00a0<\/span>Create a small Ansible Playbook to create the repo on the host where the Infoscale supposed to be installed. For example:<\/p>\n<p>\u2014<\/p>\n<p>\u2013 name: Add \/etc\/hosts entry<\/p>\n<p>lineinfile:<\/p>\n<p>path: \/etc\/hosts<\/p>\n<p>line: \u201c172.16.36.102 centos\u201d<\/p>\n<p>owner: root<\/p>\n<p>group: root<\/p>\n<p>mode: 0644<\/p>\n<p>seuser: system_u<\/p>\n<p>setype: net_conf_t<\/p>\n<p>\u2013 name: Deploy the VRTS repo for Red Hat 7<\/p>\n<p>yum_repository:<\/p>\n<p>name: veritas<\/p>\n<p>description: Veritas YUM repo<\/p>\n<p>baseurl: http:\/\/centos\/rh7-rpms\/<\/p>\n<p>file: veritas_repo<\/p>\n<p>gpgcheck: yes<\/p>\n<p>enabled: yes<\/p>\n<p>gpgkey: http:\/\/centos\/rh7-rpms\/RPM-GPG-KEY-veritas-infoscale7<\/p>\n<p>enablegroups: yes<\/p>\n<p>when: ansible_distribution_major_version|int == 7<\/p>\n<p>\u2013 name: Deploy the VRTS repo for Red Hat 6<\/p>\n<p>yum_repository:<\/p>\n<p>name: veritas<\/p>\n<p>description: Veritas YUM repo<\/p>\n<p>baseurl: http:\/\/centos\/rh6-rpms\/<\/p>\n<p>file: veritas_repo<\/p>\n<p>gpgcheck: yes<\/p>\n<p>enabled: yes<\/p>\n<p>gpgkey: http:\/\/centos\/rh6-rpms\/RPM-GPG-KEY-veritas-infoscale7<\/p>\n<p>enablegroups: yes<\/p>\n<p>when: ansible_distribution_major_version|int == 6<\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong><span>\u00a0<\/span>Create another playbook which the only goal is to install the packages. For example:<\/p>\n<p>\u2014<\/p>\n<p>\u2013 name: Verify if the repo and group exist<\/p>\n<p>shell: $( which yum ) grouplist ENTERPRISE73<\/p>\n<p>register: repocheck<\/p>\n<p>\u2013 name: Install Veritas Packages<\/p>\n<p>yum:<\/p>\n<p>name: \u2018@ENTERPRISE73\u2019<\/p>\n<p>state: latest<\/p>\n<p>when: repocheck.rc == 0<\/p>\n<p style=\"text-align: justify;\"><strong>7.<\/strong><span>\u00a0<\/span>Create another playbook which the only goal is to install the packages. For example:<\/p>\n<p>\u2013 name: Verify if the add_install_scripts exists<\/p>\n<p>stat:<\/p>\n<p>path: \/opt\/VRTS\/install\/bin\/UXRT73\/add_install_scripts<\/p>\n<p>register: scriptstate<\/p>\n<p>\u2013 name: Run the script to deploy the installer script<\/p>\n<p>shell: \/opt\/VRTS\/install\/bin\/UXRT73\/add_install_scripts<\/p>\n<p>register: status<\/p>\n<p>when: scriptstate.stat.exists<\/p>\n<p>\u2013 name: Verify if the installer script exists<\/p>\n<p>stat:<\/p>\n<p>path: \/opt\/VRTS\/install\/installer<\/p>\n<p>register: installerstate<\/p>\n<p style=\"text-align: justify;\"><strong>8.<\/strong><span>\u00a0<\/span>Make sure the product is properly licensed. Nowadays most of the installation are KEYLESS installation:<\/p>\n<p>\u2014-<\/p>\n<p>\u2013 name: License the Enterprise Version using Keyless method<\/p>\n<p>shell: \/opt\/VRTS\/bin\/vxkeyless set ENTERPRISE -q<\/p>\n<p>register: licstate<\/p>\n<p>\u2013 name: Verify the state of the license<\/p>\n<p>debug:<\/p>\n<p>msg: \u201cLicense has been successfully set on {{ inventory_hostname }}\u201d<\/p>\n<p>when: licstate.rc == 0<\/p>\n<p>\u2013 name: Verify the state of the license<\/p>\n<p>debug:<\/p>\n<p>msg: \u201cLicense has not been successfully set on {{ inventory_hostname }}\u201d<\/p>\n<p>when: licstate.rc == 1<\/p>\n<p>failed_when: licstate.rc == 1<\/p>\n<p style=\"text-align: justify;\"><strong>9.<\/strong><span>\u00a0<\/span>Reference all the playbooks in one playbook or if you want to elaborate, convert them into a role and use tags for your convenience. This is a quick and dirty way of speeding up the work:<\/p>\n<p>\u2014<\/p>\n<p>\u2013 name: Install Infoscale 7.3<\/p>\n<p>hosts: all<\/p>\n<p>tasks:<\/p>\n<p>\u2013 name: Include vrts_repo.yml<\/p>\n<p>include: vrts_repo.yml<\/p>\n<p>\u2013 name: Include vrts_install.yml<\/p>\n<p>include: vrts_install.yml<\/p>\n<p>\u2013 name: Include vrts_license.yml<\/p>\n<p>include: vrts_license.yml<\/p>\n<p>\u2013 name: Include vrts_config.yml<\/p>\n<p>include: vrts_config.yml<\/p>\n<p style=\"text-align: justify;\"><strong>10.<\/strong><span>\u00a0<\/span>Configure the inventory and run the playbook. Sit back and relax.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem statement: Install Infoscale on fifty (50) nodes without copying chunky tar.gz to all of them. I had an issue some time ago. I needed to install the Infoscale on a large number of nodes and I did not want to do it manually. I like my coffee. How to approach that problem \u2013 create&hellip; <a class=\"more-link\" href=\"https:\/\/www.insentragroup.com\/us\/insights\/geek-speak\/modern-workplace\/how-to-speed-up-veritas-infoscale-installation\/\">Continue reading <span class=\"screen-reader-text\">How to Speed Up Veritas Infoscale Installation<\/span><\/a><\/p>\n","protected":false},"author":67,"featured_media":705,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[19],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-modern-workplace","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":1,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":23156,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/posts\/704\/revisions\/23156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media\/705"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/us\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}