nvnivs / jarbas

Chef based workstation setup
Other
0 stars 0 forks source link

[kitchen]: Support OSX #1

Open nvnivs opened 2 years ago

nvnivs commented 2 years ago

Using sickcodes/docker-osx do run osx integration tests with the following configuration on platform in kitchen.yaml:

  - name: osx
    driver:
      image: sickcodes/docker-osx

Fails to converge:

    System Info:
    ------------
    chef_version=15.17.4
    platform=arch
    platform_version=5.13.13-1-MANJARO
    ruby=ruby 2.6.7p197 (2021-04-05 revision 67941) [x86_64-linux]
    program_name=/opt/chef/bin/chef-client
    executable=/opt/chef/bin/chef-client

Running handlers:
[2022-02-12T08:33:26+00:00] ERROR: Running exception handlers
Running handlers complete
[2022-02-12T08:33:26+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 01 seconds
[2022-02-12T08:33:26+00:00] FATAL: Stacktrace dumped to /opt/kitchen/cache/chef-stacktrace.out
[2022-02-12T08:33:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-02-12T08:33:26+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Pacman update] (jarbas::platform_arch line 7) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of pacman -Syyu --noconfirm ----
STDOUT: 
STDERR: error: you cannot perform this operation unless you are root.
---- End output of pacman -Syyu --noconfirm ----
Ran pacman -Syyu --noconfirm returned 1
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>>     Converge failed on instance <default-osx>.  Please see .kitchen/logs/default-osx.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Docker imaged based on https://github.com/sickcodes/Docker-OSX