-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed issue with correct version being set when using version install option * Added plaftform support for rhel9 based distro * Fixes issue when deleting configurations and not including CID. * Fix package version ohai fact * Integration tests added * Support new integration changes and inline with pr-target * Fix linting issues * Fix issue with location of chef executable * Support issue with suse, add lint dep * Added the rest of the suites * Removed opensuse from CI workflow Co-authored-by: ffalor <[email protected]>
- Loading branch information
1 parent
7e39e83
commit f0aca24
Showing
37 changed files
with
371 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rules '~MD013' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
## The forwarded_port port feature lets you connect to ports on the VM guest | ||
## via localhost on the host. | ||
## see also: https://www.vagrantup.com/docs/networking/forwarded_ports | ||
|
||
# network: | ||
# - ["forwarded_port", {guest: 80, host: 8080}] | ||
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %> | ||
chef_license: accept-no-persist | ||
provision: true | ||
provider: parallels | ||
|
||
provisioner: | ||
name: chef_zero | ||
|
||
## product_name and product_version specifies a specific Chef product and version to install. | ||
## see the Chef documentation for more details: https://docs.chef.io/workstation/config_yml_kitchen/ | ||
# product_name: chef | ||
# product_version: 17 | ||
|
||
verifier: | ||
name: inspec | ||
|
||
# NOTE: Right now, only RHEL based distros support ENV variables being passed | ||
# in by the lifecycle hooks. Also, RHEL 9 based distros have an issue with the | ||
# test kitchen SSH connection. So, we are skipping RHEL 9 for now. | ||
platforms: | ||
- name: ubuntu-20.04 | ||
- name: centos-8 | ||
- name: almalinux-8 | ||
- name: centos-7 | ||
|
||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[test::default] | ||
verifier: | ||
inspec_tests: | ||
- test/integration/default | ||
|
||
lifecycle: | ||
post_create: | ||
- remote: | | ||
sudo tee "/etc/profile.d/vars.sh" > "/dev/null" <<EOF | ||
export FALCON_CLIENT_ID=<%= ENV['FALCON_CLIENT_ID'] %> | ||
export FALCON_CLIENT_SECRET=<%= ENV['FALCON_CLIENT_SECRET'] %> | ||
export FALCON_CLOUD=<%= ENV['FALCON_CLOUD'] %> | ||
export FALCON_CID=<%= ENV['FALCON_CID'] %> | ||
export FALCON_VERSION=<%= ENV['FALCON_VERSION'] || '6.44.14108' %> | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Common recipes for most instllations | ||
falcon_config 'falcon' do | ||
cid ENV['FALCON_CID'] | ||
notifies :restart, 'falcon_service[falcon]', :delayed | ||
action :set | ||
end | ||
|
||
falcon_service 'falcon' do | ||
action [:start, :enable] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
falcon_config 'falcon' do | ||
# cid ENV['FALCON_CID'] | ||
proxy_host 'http://proxy.example.com' | ||
proxy_port 8080 | ||
proxy_enabled true | ||
tags %w(tag1 tag2) | ||
notifies :restart, 'falcon_service[falcon]', :delayed | ||
action :delete | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
falcon_install 'falcon' do | ||
client_id ENV['FALCON_CLIENT_ID'] | ||
client_secret ENV['FALCON_CLIENT_SECRET'] | ||
falcon_cloud ENV['FALCON_CLOUD'] | ||
action :install | ||
end | ||
|
||
falcon_config 'falcon' do | ||
cid ENV['FALCON_CID'] | ||
proxy_host 'http://proxy.example.com' | ||
proxy_port 8080 | ||
proxy_enabled true | ||
tags %w(tag1 tag2) | ||
notifies :restart, 'falcon_service[falcon]', :delayed | ||
action :set | ||
end | ||
|
||
falcon_service 'falcon' do | ||
action [:start, :enable] | ||
end |
Oops, something went wrong.