Skip to content

Commit

Permalink
trying with local install of ansible
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Lippold <[email protected]>
  • Loading branch information
aaronlippold committed Jan 23, 2024
1 parent 1d59a45 commit 92d5695
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/verify-vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ jobs:
# run: bundle exec inspec check .
- name: Run kitchen test
run: bundle exec kitchen test --destroy=always ${{ matrix.suite }}-ubuntu-1804 || true
- name: Display our ${{ matrix.suite }} results summary
run: bundle exec inspec_tools summary -j spec/results/ubuntu-18.04_${{ matrix.suite }}.json --json-counts | jq .
- name: Ensure the scan meets our ${{ matrix.suite }} results threshold
run: bundle exec inspec_tools compliance -j spec/results/ubuntu-18.04_${{ matrix.suite }}.json -f ${{ matrix.suite }}.threshold.yml
- name: Save Test Result JSON
uses: actions/upload-artifact@v2
with:
path: spec/results/
- name: Display our ${{ matrix.suite }} results summary
run: bundle exec inspec_tools summary -j spec/results/ubuntu-18.04_${{ matrix.suite }}.json --json-counts | jq .
- name: Ensure the scan meets our ${{ matrix.suite }} results threshold
run: bundle exec inspec_tools compliance -j spec/results/ubuntu-18.04_${{ matrix.suite }}.json -f ${{ matrix.suite }}.threshold.yml

35 changes: 19 additions & 16 deletions kitchen.vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ driver:
name: vagrant
driver_config:
ssl_verify_mode: ":verify_none"
customize:
cpus: 4
memory: 8192
accelerate3d: "off"
accelerate2dvideo: "off"
audio: "none"
usbcardreader: "off"
vrde: "off"
usb: "off"
nictype1: "82540EM"
clipboard: "disabled"
#nestedpaging: "off
# customize:
# cpus: 4
# memory: 8192
# accelerate3d: "off"
# accelerate2dvideo: "off"
# audio: "none"
# usbcardreader: "off"
# vrde: "off"
# usb: "off"
# nictype1: "82540EM"
# clipboard: "disabled"
#nestedpaging: "off

transport:
max_ssh_sessions: 6
max_ssh_sessions: 2

provisioner:
name: ansible_playbook
hosts: all
require_ansible_repo: false
require_ansible_omnibus: true
#require_ansible_omnibus: true
require_chef_for_busser: false
require_ruby_for_busser: false
require_pip3: true
# require_pip3: true
ansible_verbose: true
ansible_binary_path: /usr/local/bin
ansible_binary_path: /usr/bin
roles_path: spec/ansible/roles
galaxy_ignore_certs: true

Expand All @@ -46,3 +46,6 @@ lifecycle:
sudo chage -d $(( $( date +%s ) / 86400 )) vagrant
echo "NOTICE - updating vagrant sudo config"
sudo chmod 600 /etc/sudoers && sudo sed -i'' "/vagrant/d" /etc/sudoers && sudo chmod 400 /etc/sudoers
sudo apt -y upgrade
sudo apt -y install ansible

0 comments on commit 92d5695

Please sign in to comment.