Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBs: Added PB for setting up vagrant machines #985

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

Willsparker
Copy link
Contributor

@Willsparker Willsparker commented Nov 7, 2019

Requested by @sxa555 to setup the machines to run the SXA-PlaybookCheckParallel.

Tested on an Ubuntu1804 machine, by running the following commands:

  • Took note of the IP
  • Created a host file called vagrant_hosts, with <IP_Address> ansible_ssh_user='root' ansible_ssh_pass=<Password>
  • Installed sshPass on my Macbook
  • Running ansible-playbook -i vagrant_host vagrant.yml.

I've written the playbook for the software versions to reflect the version that are currently installed on my Macbook

Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this to install java as well (either from apt or the adoptopenjdk java 8) if no java is already available on the system
Arguably it could do with creating a jenkins user as well, but I'm ok with leaving that out for now.

ansible/playbooks/vagrant.yml Outdated Show resolved Hide resolved
ansible/playbooks/vagrant.yml Show resolved Hide resolved
Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the winrm module install:

https://ci.adoptopenjdk.net/job/SXA-PlaybookCheckParallel/OS=Win2012,label=vagrant/122/console

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
fatal: [172.28.128.4]: FAILED! => {"msg": "winrm or requests is not installed: No module named winrm"}

PLAY RECAP *********************************************************************
172.28.128.4               : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

@sxa sxa merged commit 6871b17 into adoptium:master Dec 9, 2019
sxa pushed a commit that referenced this pull request Jan 3, 2020
@Willsparker Willsparker deleted the Vagrant_PB branch February 13, 2020 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants