Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Conversation

rndmh3ro
Copy link
Member

@rndmh3ro rndmh3ro commented Jun 8, 2016

I implemented Debian 8 support (and removed debian 6 support, since its EOL) as well as making it easier to locally test the role with inspec.

Sebastian Gumprich added 4 commits June 8, 2016 17:28
* add support for debian 8
* cleanup kitchen.yml, add inspec support
* remove oracle from meta file, bc it does not exist in ansible galaxy
#
{% if ssh_client_cbc_required -%}
{% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' -%}
{% if ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04' or (ansible_distribution == 'Debian' and ansible_distribution_version >= '8') -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

For the sake of readability, put parens around the Ubuntu declarations as well, so the line looks like:

{% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version >= '14.04') or (ansible_distribution == 'Debian' and ansible_distribution_version >= '8') -%}

That should be done throughout the template.

@rndmh3ro
Copy link
Member Author

Added the parantheses, thanks!

@conorsch
Copy link
Contributor

Great. I'll test this locally. Related ot discussion in #28, I'm maintaining custom vars for Debian hosts to override what the role defaults for Debian 8. If these changes account for my customizations, as they seem to, I'll be happy to remove the custom vars.

@rndmh3ro
Copy link
Member Author

This also fixes #61.

@conorsch
Copy link
Contributor

I can definitely confirm that this fixes #61 on my end—excellent! The docs updates work great for local testing, no issues there.

As far as Debian 8 support goes, I was able to remove custom vars from my project config, and the role as applied preserved the sshd config as expected with a single changed line. The hard-coded tests I use for kex, mac, and algos all passed, save one, which exposed that I was forcing support of the [email protected] mac, which I'm happy dropping support for (particularly because the role already supports the -etm version).

👍 for merge, thanks for your hard work on this, @rndmh3ro!

@rndmh3ro rndmh3ro merged commit 97c80ef into master Jun 20, 2016
@rndmh3ro rndmh3ro deleted the debian8 branch June 20, 2016 18:14
@rndmh3ro
Copy link
Member Author

Thanks for testing, @conorsch!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants