galaxy lint, dependency naming
This commit is contained in:
parent
dd64c0aa42
commit
7c34dce740
@ -27,4 +27,3 @@ suites:
|
|||||||
- name: default
|
- name: default
|
||||||
run_list:
|
run_list:
|
||||||
attributes:
|
attributes:
|
||||||
|
|
||||||
|
@ -35,4 +35,3 @@ suites:
|
|||||||
- name: default
|
- name: default
|
||||||
run_list:
|
run_list:
|
||||||
attributes:
|
attributes:
|
||||||
|
|
||||||
|
@ -78,4 +78,3 @@ script:
|
|||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
||||||
|
@ -77,4 +77,3 @@ script:
|
|||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
||||||
|
@ -91,4 +91,3 @@ script:
|
|||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
||||||
|
@ -72,4 +72,3 @@ script:
|
|||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|
||||||
|
@ -34,4 +34,3 @@ script:
|
|||||||
# Serverspec
|
# Serverspec
|
||||||
# - "test/integration/default/serverspec/run-local-tests.sh"
|
# - "test/integration/default/serverspec/run-local-tests.sh"
|
||||||
- "cd test/integration/default/serverspec/ && bundle exec rake spec"
|
- "cd test/integration/default/serverspec/ && bundle exec rake spec"
|
||||||
|
|
||||||
|
@ -6,4 +6,3 @@ fprobe_flow_collector: '127.0.0.1:9995'
|
|||||||
## downgrade user and chroot to dir
|
## downgrade user and chroot to dir
|
||||||
#fprobe_args: '-fip -u nobody -c /var/empty' ## not working with user nobody or non-existing chrooted dir
|
#fprobe_args: '-fip -u nobody -c /var/empty' ## not working with user nobody or non-existing chrooted dir
|
||||||
fprobe_args: '-fip -c /var/tmp'
|
fprobe_args: '-fip -c /var/tmp'
|
||||||
|
|
||||||
|
@ -9,11 +9,10 @@ else
|
|||||||
rolesdir=$(dirname $0)/..
|
rolesdir=$(dirname $0)/..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -d $rolesdir/juju4.redhat-epel ] && git clone https://github.com/juju4/ansible-redhat-epel $rolesdir/juju4.redhat-epel
|
[ ! -d $rolesdir/juju4.redhat_epel ] && git clone https://github.com/juju4/ansible-redhat-epel $rolesdir/juju4.redhat_epel
|
||||||
## galaxy naming: kitchen fails to transfer symlink folder
|
## galaxy naming: kitchen fails to transfer symlink folder
|
||||||
#[ ! -e $rolesdir/juju4.fprobe ] && ln -s ansible-fprobe $rolesdir/juju4.fprobe
|
#[ ! -e $rolesdir/juju4.fprobe ] && ln -s ansible-fprobe $rolesdir/juju4.fprobe
|
||||||
[ ! -e $rolesdir/juju4.fprobe ] && cp -R $rolesdir/ansible-fprobe $rolesdir/juju4.fprobe
|
[ ! -e $rolesdir/juju4.fprobe ] && cp -R $rolesdir/ansible-fprobe $rolesdir/juju4.fprobe
|
||||||
|
|
||||||
## don't stop build on this script return code
|
## don't stop build on this script return code
|
||||||
true
|
true
|
||||||
|
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
- name: restart fprobe
|
- name: restart fprobe
|
||||||
service: name={{ fprobe_svc }} state=restarted sleep=5
|
service: name={{ fprobe_svc }} state=restarted sleep=5
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
@ -4,11 +4,6 @@ galaxy_info:
|
|||||||
description: setup fprobe as netflow exporter
|
description: setup fprobe as netflow exporter
|
||||||
license: BSD
|
license: BSD
|
||||||
min_ansible_version: 2.0
|
min_ansible_version: 2.0
|
||||||
#
|
|
||||||
# Below are all platforms currently available. Just uncomment
|
|
||||||
# the ones that apply to your role. If you don't see your
|
|
||||||
# platform on this list, let us know and we'll get it added!
|
|
||||||
#
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
@ -20,14 +15,9 @@ galaxy_info:
|
|||||||
- trusty
|
- trusty
|
||||||
- xenial
|
- xenial
|
||||||
- bionic
|
- bionic
|
||||||
#
|
|
||||||
# Below are all categories currently available. Just as with
|
|
||||||
# the platforms above, uncomment those that apply to your role.
|
|
||||||
#
|
|
||||||
galaxy_tags:
|
galaxy_tags:
|
||||||
- system
|
- system
|
||||||
- security
|
- security
|
||||||
#dependencies: []
|
#dependencies: []
|
||||||
dependencies:
|
dependencies:
|
||||||
- juju4.redhat-epel
|
- juju4.redhat_epel
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: install fprobe from packages
|
- name: install fprobe from packages
|
||||||
package: name={{ item }} state=present
|
package: name={{ fprobe_pkg }} state=present
|
||||||
with_items: "{{ fprobe_pkg }}"
|
register: pkg_result
|
||||||
|
until: pkg_result is success
|
||||||
|
|
||||||
- name: Debian | update fprobe config
|
- name: Debian | update fprobe config
|
||||||
replace: "dest=/etc/default/fprobe regexp={{ item.re }} replace={{ item.rep }} backup=yes"
|
replace: "dest=/etc/default/fprobe regexp={{ item.re }} replace={{ item.rep }} backup=yes"
|
||||||
@ -28,7 +29,9 @@
|
|||||||
# changed_when: false
|
# changed_when: false
|
||||||
# - name: RedHat | start fprobe manually
|
# - name: RedHat | start fprobe manually
|
||||||
# command: "fprobe-ulog -c /var/tmp {{ fprobe_flow_collector }}"
|
# command: "fprobe-ulog -c /var/tmp {{ fprobe_flow_collector }}"
|
||||||
# when: ansible_os_family == 'RedHat' and ps is defined and ps.stdout is defined and ps.stdout.find(" fprobe-ulog ") == -1
|
# when: >
|
||||||
|
# ansible_os_family == 'RedHat' and ps is defined and ps.stdout is defined and
|
||||||
|
# ps.stdout.find(" fprobe-ulog ") == -1
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: install fprobe systemd configuration
|
- name: install fprobe systemd configuration
|
||||||
|
@ -26,5 +26,3 @@
|
|||||||
# attributes: '----i-----I--e--'
|
# attributes: '----i-----I--e--'
|
||||||
when: state == 'post'
|
when: state == 'post'
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,13 +8,12 @@
|
|||||||
when: ansible_distribution == 'Ubuntu'
|
when: ansible_distribution == 'Ubuntu'
|
||||||
- name: Include version-specific variables for RedHat
|
- name: Include version-specific variables for RedHat
|
||||||
include_vars: "RedHat-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
include_vars: "RedHat-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
||||||
when: ansible_os_family == "RedHat" or ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
#- include: debian.yml
|
#- include: debian.yml
|
||||||
# when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
# when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
#- include: redhat.yml
|
#- include: redhat.yml
|
||||||
# when: ansible_os_family == "RedHat" or ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
# when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
- include: fprobe.yml
|
- include: fprobe.yml
|
||||||
|
|
||||||
|
@ -3,4 +3,3 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- juju4.fprobe
|
- juju4.fprobe
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe-ulog
|
- fprobe-ulog
|
||||||
|
|
||||||
fprobe_svc: fprobe-ulog
|
fprobe_svc: fprobe-ulog
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe-ulog
|
- fprobe-ulog
|
||||||
|
|
||||||
fprobe_svc: fprobe-ulog
|
fprobe_svc: fprobe-ulog
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe
|
- fprobe
|
||||||
|
|
||||||
fprobe_svc: fprobe
|
fprobe_svc: fprobe
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe
|
- fprobe
|
||||||
|
|
||||||
fprobe_svc: fprobe
|
fprobe_svc: fprobe
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe
|
- fprobe
|
||||||
|
|
||||||
fprobe_svc: fprobe
|
fprobe_svc: fprobe
|
||||||
|
|
||||||
|
@ -4,4 +4,3 @@ fprobe_pkg:
|
|||||||
- fprobe
|
- fprobe
|
||||||
|
|
||||||
fprobe_svc: fprobe
|
fprobe_svc: fprobe
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user