Skip to content

Commit

Permalink
feat(gentoo): add support and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 19, 2021
1 parent bd17a49 commit 534a1f6
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
26 changes: 26 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ platforms:
- name: oraclelinux-8-master-py3
driver:
image: saltimages/salt-master-py3:oraclelinux-8
- name: gentoo-stage3-latest-master-py3
driver:
image: saltimages/salt-master-py3:gentoo-stage3-latest
run_command: /sbin/init
- name: gentoo-stage3-systemd-master-py3
driver:
image: saltimages/salt-master-py3:gentoo-stage3-systemd

## SALT `3000.3`
- name: debian-10-3000-3-py3
Expand Down Expand Up @@ -359,3 +366,22 @@ suites:
verifier:
inspec_tests:
- path: test/integration/default
- name: gentoo
includes:
- gentoo-stage3-latest-master-py3
- gentoo-stage3-systemd-master-py3
provisioner:
state_top:
base:
'*':
- packages
pillars:
top.sls:
base:
'*':
- packages
pillars_from_files:
packages.sls: test/salt/pillar/gentoo.sls
verifier:
inspec_tests:
- path: test/integration/default
5 changes: 5 additions & 0 deletions test/integration/default/controls/pkgs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
platform_packages = %w[ruby]
held_packages = {}
lock_file = ''
when 'gentoo'
# Empty for now: The `package` resource is not supported on your OS yet.
platform_packages = %w[]
held_packages = {}
lock_file = ''
end
end

Expand Down
1 change: 1 addition & 0 deletions test/integration/default/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ supports:
- platform-name: amazon
- platform-name: oracle
- platform-name: arch
- platform-name: gentoo
45 changes: 45 additions & 0 deletions test/salt/pillar/gentoo.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
packages:
pkgs:
held:
- app-arch/alien
- sys-process/iotop
wanted:
- net-analyzer/netcat
- dev-lang/ruby
- dev-vcs/git
- sys-apps/less
- sys-devel/bc
- net-misc/curl
# - net-analyzer/fail2ban
unwanted:
- net-dns/avahi
required:
pkgs:
- dev-vcs/git
pips:
### Not working:
### ERROR: (Gentoo) Please run pip with the --user option to avoid
### breaking python-exec
# wanted:
# - attrs
unwanted:
- campbel
- reverse_geocode
- indy-crypto
gems:
wanted:
- progressbar
- minitest
unwanted:
- diff-lcs
- kitchen-vagrant
- kwalify
# remote_pkgs:
# zoom: 'https://zoom.us/client/latest/zoom_x86_64.tar.xz'

# Override the default setting to prevent wasteful delays in Travis
retry_options:
attempts: 1

0 comments on commit 534a1f6

Please sign in to comment.