Skip to content

Commit

Permalink
test Ubuntu 14 and CentOS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Dec 19, 2017
1 parent 4a1e3b4 commit 1bc70a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ provisioner:

platforms:
# https://github.com/test-kitchen/kitchen-docker/issues/268#issuecomment-304141235
- name: centos-6
driver:
disable_upstart: false
run_command: /sbin/init
- name: centos-7
driver_config:
image: centos/systemd
Expand All @@ -21,6 +25,7 @@ platforms:
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- systemctl enable sshd.service
- name: ubuntu-14.04
- name: ubuntu-16.04

suites:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Testing Locally
bundle
```

1. [Download Nessus Agent packages](https://www.tenable.com/products/nessus/agent-download) for CentOS 7 and Ubuntu 16.04. Put them under `test/integration/default/files/`.
1. [Download Nessus Agent packages](https://www.tenable.com/products/nessus/agent-download) for CentOS 6, CentOS 7, and Ubuntu 14.04/16.04. Put them under `test/integration/default/files/`.
1. Create credentials file.

```sh
Expand Down
4 changes: 4 additions & 0 deletions test/integration/default/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
- hosts: all
become: true
pre_tasks:
# not included by default on ubuntu:16.04 image
- name: Install time zone package
package: name=tzdata
roles:
- ansible-role-nessus-agent
10 changes: 7 additions & 3 deletions test/integration/default/group_vars/all/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
nessus_agent_version: "7.0.0"
# https://docs.tenable.com/cloud/Content/AdditionalResources/InstallNessusAgent.htm
nessus_agent_packages:
CentOS: NessusAgent-{{ nessus_agent_version }}-es7.x86_64.rpm
Ubuntu: NessusAgent-{{ nessus_agent_version }}-ubuntu1110_amd64.deb
nessus_agent_package: "{{ role_path }}/test/integration/default/files/{{ nessus_agent_packages[ansible_distribution] }}"
CentOS:
6: NessusAgent-{{ nessus_agent_version }}-es6.x86_64.rpm
7: NessusAgent-{{ nessus_agent_version }}-es7.x86_64.rpm
Ubuntu:
14: NessusAgent-{{ nessus_agent_version }}-ubuntu1110_amd64.deb
16: NessusAgent-{{ nessus_agent_version }}-ubuntu1110_amd64.deb
nessus_agent_package: "{{ role_path }}/test/integration/default/files/{{ nessus_agent_packages[ansible_distribution][ansible_distribution_major_version | int] }}"

0 comments on commit 1bc70a3

Please sign in to comment.