File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ $baseurl = " https://repo.saltproject.io/salt/py3/redhat/${facts['os']['release']['major']}/\$ basearch/latest"
2+
3+ yumrepo { 'salt-repo' :
4+ descr => " Salt repo for RHEL/CentOS ${facts['os']['release']['major']} PY3" ,
5+ baseurl => $baseurl ,
6+ gpgkey => " ${baseurl} /SALT-PROJECT-GPG-PUBKEY-2023.pub" ,
7+ before => Class[' foreman_proxy::plugin::salt' ],
8+ }
9+
10+ include foreman_proxy
11+ include foreman_proxy::plugin::salt
Original file line number Diff line number Diff line change 1+ require 'spec_helper_acceptance'
2+
3+ describe 'Scenario: install foreman-proxy with openscap plugin' , if : [ 'redhat' , 'centos' ] . include? ( os [ :family ] ) do
4+ before ( :context ) { purge_foreman_proxy }
5+
6+ include_examples 'the example' , 'salt.pp'
7+
8+ it_behaves_like 'the default foreman proxy application'
9+
10+ specify { expect ( file ( '/etc/salt/master.d' ) ) . to be_directory }
11+ specify { expect ( file ( '/etc/salt/master.d/foreman.conf' ) ) . to be_file . and ( have_attributes ( owner : 'root' , group : 'foreman-proxy' ) ) }
12+ end
You can’t perform that action at this time.
0 commit comments