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

Update to 18.04 #125

Merged
merged 5 commits into from
Aug 9, 2019
Merged

Update to 18.04 #125

merged 5 commits into from
Aug 9, 2019

Conversation

ruebot
Copy link
Contributor

@ruebot ruebot commented Jul 12, 2019

GitHub Issue: Islandora/documentation#848

What does this Pull Request do?

How should this be tested?

Interested parties

@Islandora-Devops/committers

- Update Vagrantfile to use 18.04 for Ubuntu builds
- Tweak package names, and required packages for 18.04
- Updates to get rid of some deprecation warnings
- Addresses Islandora/documentation#848
- Requires islandora-deprecated/ansible-role-grok#6
@Natkeeran
Copy link
Contributor

Natkeeran commented Jul 15, 2019

Deployed without issues. Sanity tests with image works.

@ruebot Do we only need this for ubuntu/xenial64?

README may need to be updated. Can be a separate issue.

@dannylamb
Copy link
Member

vagrant up

@dannylamb
Copy link
Member

failed on installing grok. did any underlying roles change?

@Natkeeran
Copy link
Contributor

@dannylamb

Did you get the islandora-deprecated/ansible-role-grok#6 ?

@dannylamb
Copy link
Member

Bingo. Read the PR description Danny....

@dannylamb
Copy link
Member

Ok, let's try this again 🤦‍♂️

@ruebot
Copy link
Contributor Author

ruebot commented Jul 15, 2019

@Natkeeran I'll update on Friday, when I'm back at York.

@dannylamb
Copy link
Member

With islandora-deprecated/ansible-role-grok#6 I'm getting

TASK [Islandora-Devops.grok : Install Grok dependencies (apt)] *****************
Monday 15 July 2019  16:51:50 -0300 (0:00:02.767)       0:35:07.447 *********** 
failed: [default] (item=[u'cmake', u'libpng16-dev', u'libtiff-dev', u'liblcms2-dev']) => {"ansible_loop_var": "item", "changed": false, "item": ["cmake", "libpng16-dev", "libtiff-dev", "liblcms2-dev"], "msg": "No package matching 'libpng16-dev' is available"}

@ruebot
Copy link
Contributor Author

ruebot commented Jul 19, 2019

Not sure on the proper procedure for testing Ansible Playbooks with internal/external roles, but what I did locally was to edit roles/external/Islandora-Devops.grok/tasks/install.yml with the changes in islandora-deprecated/ansible-role-grok#6, then do vagrant up.

@ruebot
Copy link
Contributor Author

ruebot commented Jul 19, 2019

Updated locally, and testing with the changes @Natkeeran requested #125 (comment)

@ruebot
Copy link
Contributor Author

ruebot commented Jul 19, 2019

Tested with 16f2e43, and things appear to be good.

@dannylamb
Copy link
Member

FWIW I deleted the role and then updated requirements.yml to point to the branch for the PR. Let me try again.

@dannylamb
Copy link
Member

Yeah... turns out that when you provision a remote environment, it caches the roles in roles/internal as well. So even if you blow up roles/external it resorts to using roles/internal before downloading a new version. :rage4:

So that wold explain lots of things. Sorry @ruebot. Let's try this again. vagrant up

@dannylamb
Copy link
Member

Three derps later and I finally got it. Provisions fine and passes my smoke tests.

I merged islandora-deprecated/ansible-role-grok#6 and sliced a 2.0.0 release of the role. @ruebot can you update the requirements.yml file to reference 2.0.0?

@Natkeeran
Copy link
Contributor

@dannylamb

I've tested this and it works. It does not look like we need the extra variable islandora_distro passed in as the only placed it was used has been removed. Can you pls confirm?

@dannylamb
Copy link
Member

Its used in the Vagrantfile to set up the linux user: https://github.com/Islandora-Devops/claw-playbook/blob/dev/Vagrantfile#L18

@Natkeeran
Copy link
Contributor

Natkeeran commented Aug 8, 2019

Do we need it in the README as in the following command:

ansible-playbook -i inventory/production playbook.yml -e "islandora_distro=ubuntu/xenial64"

@dannylamb
Copy link
Member

Yeah weird... Everything is really based off of ansible_os_family, which I can't seem to figure out how that gets defined by islandora_distro... I'll have to dig.

@Natkeeran
Copy link
Contributor

Natkeeran commented Aug 8, 2019

ansible_os_family seems like a built in variable.

islandora_distro is only being used here: https://github.com/Islandora-Devops/claw-playbook/blob/65a7f9ec6b4217c6b4a5ed28925eaf15ff51b931/bootstrap.yml#L17, which is being removed with this PR.

@ruebot
Copy link
Contributor Author

ruebot commented Aug 9, 2019

@Natkeeran @dannylamb let me know what you decide about the README, and I can update if you'd like. I'm on campus today.

@ruebot
Copy link
Contributor Author

ruebot commented Aug 9, 2019

There's also this PR that needs another set of eye. I think @jonathangreen is good with it. Not sure if that's all it needs.

@dannylamb
Copy link
Member

I'll defer to @jonathangreen on Islandora/documentation#1217. I don't have enough experience with that sort of thing to speak authoritatively about it.

@dannylamb
Copy link
Member

@Natkeeran Ok, so ansible_os_family is automagic. I guess we were using ISLANDORA_DISTRO because it is not defined before ansible kicks off, and we need to do logic in the Vagrantfile with it. If we're not using it outside of vagrant, then yes, delete it from the README example.

The only thing I want to make sure is that people can create a remote CENTOS environment without specifying that variable. @seth-shaw-unlv? Is it possible to build a remote CENTOS server without ISLANDORA_DISTRO=centos/7?

@Natkeeran
Copy link
Contributor

@dannylamb
We can merge this and find that out later as well via a separate ticket.

@seth-shaw-unlv
Copy link
Contributor

It seems so @dannylamb. I recently ran just the tomcat.yml against a CentOS box and it set up correctly. I only use the variable when building a vagrant box.

@dannylamb
Copy link
Member

@seth-shaw-unlv++ @Natkeeran++ Thanks guys.

@ruebot Can you chop off the ISLANDORA_DISTRO bits for provisioning a remote server? Then let's do this 🚀

@jonathangreen
Copy link
Contributor

Islandora/documentation#1217 is merged now!

@ruebot
Copy link
Contributor Author

ruebot commented Aug 9, 2019

@dannylamb @Natkeeran @seth-shaw-unlv that good?

Copy link
Member

@dannylamb dannylamb left a comment

Choose a reason for hiding this comment

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

yep

@dannylamb dannylamb merged commit d0f7670 into Islandora-Devops:dev Aug 9, 2019
@ruebot ruebot deleted the issue-848 branch August 9, 2019 16:25
whikloj pushed a commit to whikloj/claw-playbook that referenced this pull request Dec 18, 2019
* Update to 18.04

- Update Vagrantfile to use 18.04 for Ubuntu builds
- Tweak package names, and required packages for 18.04
- Updates to get rid of some deprecation warnings
- Addresses Islandora/documentation#848
- Requires islandora-deprecated/ansible-role-grok#6

* Update README and remove some cruft per @Natkeeran's review.

* use ansible-role-grok 2.0.0

* review

* cut more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants