Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-2318

Write first draft playbook to provision control node

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      We have been facing some problems with setting up control nodes in a way that will allow running of the appstore provisioning playbooks.

      To ensure reproducibility of control node setup, create a first draft playbook for just this one purpose.

      I will start it out.

        Attachments

          Activity

          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          I will ensure that going forward.

          Show
          cdias1 Chester Dias (Inactive) added a comment - I will ensure that going forward.
          Hide
          ann.loraine Ann Loraine added a comment -

          Change request:

          When closing a ticket, we always re-assign it to the original developer. This is to make it easier to keep track of what people have done.

          Please re-assign this to me now that it is closed.
          Chester Dias

          Show
          ann.loraine Ann Loraine added a comment - Change request: When closing a ticket, we always re-assign it to the original developer. This is to make it easier to keep track of what people have done. Please re-assign this to me now that it is closed. Chester Dias
          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          Control Node provisioning threw an error initially but recovered the second time. I think this error could be due my slow internet
          Verifications Summary:
          1. python3 version = 3.7.6
          2. installed pip3 modules are present
          3. ansible version = 2.9.6
          4. ansible python = 3.7.6
          5. The correct playbook repo is cloning.
          6. The required public key is copying to the local machine for adding in bitbucket.
          7. The connection public key for provisioning target EC2 is also copying from local to control node.
          8. Rerun does not recreate a new control-node.

          Notes: This playbook has to be run twice to complete the provisioning.
          Suggestion: Creation of a bot user for bitbucket access which will allow username and password for git clone to be passed via control_node_vars.yml

          Attached complete output for future reference

          Show
          cdias1 Chester Dias (Inactive) added a comment - Control Node provisioning threw an error initially but recovered the second time. I think this error could be due my slow internet Verifications Summary: 1. python3 version = 3.7.6 2. installed pip3 modules are present 3. ansible version = 2.9.6 4. ansible python = 3.7.6 5. The correct playbook repo is cloning. 6. The required public key is copying to the local machine for adding in bitbucket. 7. The connection public key for provisioning target EC2 is also copying from local to control node. 8. Rerun does not recreate a new control-node. Notes: This playbook has to be run twice to complete the provisioning. Suggestion: Creation of a bot user for bitbucket access which will allow username and password for git clone to be passed via control_node_vars.yml Attached complete output for future reference
          Hide
          ann.loraine Ann Loraine added a comment -

          To test:

          • Follow instructions in control_node.yml to provision a control node "from scratch".
          • If you notice any errors or problems, please create a new Jira ticket for same.

          Chester Dias

          Show
          ann.loraine Ann Loraine added a comment - To test: Follow instructions in control_node.yml to provision a control node "from scratch". If you notice any errors or problems, please create a new Jira ticket for same. Chester Dias
          Hide
          ann.loraine Ann Loraine added a comment -

          Submitting PR from IGBF-2318 to master branch after squashing all the commits into one.

          Show
          ann.loraine Ann Loraine added a comment - Submitting PR from IGBF-2318 to master branch after squashing all the commits into one.
          Hide
          ann.loraine Ann Loraine added a comment -

          After running control node playbook with ec2_name "testAnsible":

          testAnsible $ ansible --version
          ansible 2.9.6
          config file = None
          configured module search path = ['/home/ec2-user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
          ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
          executable location = /usr/local/bin/ansible
          python version = 3.7.6 (default, Feb 26 2020, 20:54:15) [GCC 7.3.1 20180712 (Red Hat 7.3.1-6)]

          Show
          ann.loraine Ann Loraine added a comment - After running control node playbook with ec2_name "testAnsible": testAnsible $ ansible --version ansible 2.9.6 config file = None configured module search path = ['/home/ec2-user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.6 (default, Feb 26 2020, 20:54:15) [GCC 7.3.1 20180712 (Red Hat 7.3.1-6)]
          Hide
          ann.loraine Ann Loraine added a comment -

          Updated branch with new commit incorporating suggestions from Chester Dias.

          See: https://bitbucket.org/aloraine/appstore-playbooks/branch/IGBF-2318

          Show
          ann.loraine Ann Loraine added a comment - Updated branch with new commit incorporating suggestions from Chester Dias . See: https://bitbucket.org/aloraine/appstore-playbooks/branch/IGBF-2318
          Hide
          ann.loraine Ann Loraine added a comment -

          Adding suggestions from Chester Dias to branch.

          Show
          ann.loraine Ann Loraine added a comment - Adding suggestions from Chester Dias to branch.
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          My ansible - upgraded to latest available (required for many AWS modules)

          local aloraine$ ansible --version
          ansible 2.9.6
          config file = /etc/ansible/ansible.cfg
          configured module search path = ['/Users/aloraine/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
          ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
          executable location = /usr/local/bin/ansible
          python version = 3.7.3 (default, Jun 19 2019, 07:40:15) [Clang 10.0.0 (clang-1000.11.45.5)]

          Show
          ann.loraine Ann Loraine added a comment - - edited My ansible - upgraded to latest available (required for many AWS modules) local aloraine$ ansible --version ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = ['/Users/aloraine/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.3 (default, Jun 19 2019, 07:40:15) [Clang 10.0.0 (clang-1000.11.45.5)]
          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          PR created

          Show
          cdias1 Chester Dias (Inactive) added a comment - PR created
          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          I have reviewed the playbooks and added a little more to include support for pip3 and installation of ansible with python 3 version
          Also included the PyMySQL installation

          The addition of the ssh keys are also possible
          Separated out the variables into the group_vars for the secrets and control_node specific variables

          Added a small change to the prompt

          while setting up ansible on local machine please ensure that ansible is v9 and python is 3.X.X

          Show
          cdias1 Chester Dias (Inactive) added a comment - I have reviewed the playbooks and added a little more to include support for pip3 and installation of ansible with python 3 version Also included the PyMySQL installation The addition of the ssh keys are also possible Separated out the variables into the group_vars for the secrets and control_node specific variables Added a small change to the prompt while setting up ansible on local machine please ensure that ansible is v9 and python is 3.X.X
          Hide
          ann.loraine Ann Loraine added a comment -

          This morning, could you take a look at the playbook and associated documentation I created for provisioning a control node for provisioning app stores?

          Please see the Jira ticket for a link to the playbook.

          Show
          ann.loraine Ann Loraine added a comment - This morning, could you take a look at the playbook and associated documentation I created for provisioning a control node for provisioning app stores? Please see the Jira ticket for a link to the playbook.
          Show
          ann.loraine Ann Loraine added a comment - Working on branch: https://bitbucket.org/aloraine/appstore-playbooks/branch/IGBF-2318

            People

            • Assignee:
              cdias1 Chester Dias (Inactive)
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: