Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ suites:
provisioner:
dependencies:
- name: node
branch: test-kitchen
branch: master
repo: git
source: https://github.com/saltstack-formulas/node-formula.git
state_top:
Expand Down
18 changes: 17 additions & 1 deletion packages/gems.sls
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,25 @@ gem_req_pkgs:
### GEMS to install
# (requires the ruby/rubygem deb/rpm installed, either by the system or listed in
# the required packages
# Standarize gems to format { gem: version }
{% set gem = namespace(name = '', version = '') %}

{%- for gm in wanted_gems %}
{{ gm }}:
{%- if gm is mapping %}
{%- for k,v in gm.items() %}
{%- set gem.name = k %}
{%- set gem.version = v %}
{%- endfor %}
{%- else %}
{%- set gem.name = gm %}
{%- set gem.version = 'version_undefined' %}
{%- endif %}
{{ gem.name }}-{{ gem.version }}:
gem.installed:
- name: {{ gem.name }}
{%- if gem.version != 'version_undefined' %}
- version: {{ gem.version }}
{%- endif %}
- require:
- pkg: gem_req_pkgs
{%- if req_states %}
Expand Down
10 changes: 10 additions & 0 deletions packages/osfingermap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ CentOS Linux-8:
collides: ['snap']
symlink: true

Debian-9:
pips:
required:
pkgs:
# Pillar parameters have precedence so, if you add a package here, you
# should also add the python pip package you want. Otherwise, the formula
# will take care of getting it if needed.
- libpython2.7-dev
- python-pip

Oracle Linux Server-8:
pkgs:
required:
Expand Down
5 changes: 4 additions & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ packages:
- epel

wanted:
- dxpy
- iotop
- attrs
unwanted:
- campbel
Expand All @@ -57,6 +57,9 @@ packages:
wanted:
- progressbar
- minitest
# You can also specify a desired gem version
- some_gem: 1.2.3
- other: 2.3.4
unwanted:
- diff-lcs
- kitchen-vagrant
Expand Down
16 changes: 16 additions & 0 deletions test/integration/default/controls/gems_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@
end
end

### SPECIFIC GEMS VERSIONS
control "Specific gems' versions" do
title 'should be installed'

specific_gems = {
'regexp_parser' => '1.7.0',
'strings' => '0.1.8'
}
specific_gems.each do |p, v|
describe gem(p) do
it { should be_installed }
its('versions') { should include(v) }
end
end
end

### UNWANTED
control 'Unwanted gems' do
title 'should be uninstalled'
Expand Down
34 changes: 0 additions & 34 deletions test/integration/default/controls/pips_spec.rb.old

This file was deleted.

2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/almalinux-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/amazonlinux-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/centos-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/centos-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
5 changes: 3 additions & 2 deletions test/integration/default/files/_mapdata/debian-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down Expand Up @@ -89,14 +91,13 @@ values:
required:
pkgs:
- libpython2.7-dev
- python-pip
states: []
unwanted:
- campbel
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:
Expand Down
5 changes: 3 additions & 2 deletions test/integration/default/files/_mapdata/debian-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down Expand Up @@ -89,14 +91,13 @@ values:
required:
pkgs:
- libpython2.7-dev
- python-pip
states: []
unwanted:
- campbel
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:
Expand Down
4 changes: 3 additions & 1 deletion test/integration/default/files/_mapdata/debian-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down Expand Up @@ -96,7 +98,7 @@ values:
- reverse_geocode
- indy-crypto
wanted:
- dxpy
- iotop
- attrs
pkgs:
held:
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/fedora-33.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/fedora-34.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/gentoo-2-sysd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/gentoo-2-sysv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/opensuse-15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/oraclelinux-7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/oraclelinux-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/rockylinux-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ values:
- kwalify
wanted:
- progressbar
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean: []
goget: []
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/ubuntu-18.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean:
- github.com/golang/example/hello
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/files/_mapdata/ubuntu-20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ values:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
golang:
clean:
- github.com/golang/example/hello
Expand Down
2 changes: 2 additions & 0 deletions test/salt/pillar/amazon.sls
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ packages:
# https://stackoverflow.com/a/50931910
# $ sudo amazon-linux-extras install ruby2.6
# - minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
unwanted:
- diff-lcs
- kitchen-vagrant
Expand Down
2 changes: 2 additions & 0 deletions test/salt/pillar/arch.sls
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ packages:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
unwanted:
- diff-lcs
- kitchen-vagrant
Expand Down
11 changes: 5 additions & 6 deletions test/salt/pillar/debian.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
---
# Dependency (node)
node:
version: 12.16.1-1nodesource1
install_from_ppa: true
ppa:
repository_url: https://deb.nodesource.com/node_12.x
pkg:
use_upstream_repo: true

packages:
pkgs:
Expand Down Expand Up @@ -41,9 +39,8 @@ packages:
# should also add the python pip package you want. Otherwise, the formula
# will take care of getting it if needed.
- libpython2.7-dev
- python-pip
wanted:
- dxpy
- iotop
- attrs
unwanted:
- campbel
Expand All @@ -59,6 +56,8 @@ packages:
wanted:
- progressbar
- minitest
- strings: 0.1.8
- regexp_parser: 1.7.0
unwanted:
- diff-lcs
- kitchen-vagrant
Expand Down
Loading