saltstack-formulas / salt-formula

Yes, Salt can Salt itself!
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
197 stars 423 forks source link

MacOS compatibility #531

Open lkubb opened 2 years ago

lkubb commented 2 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Secondary type

Does this PR introduce a BREAKING CHANGE?

No.

Related issues and/or pull requests

I did not open issues for both fixes since the cause is evident.

  1. remove-macpackage-salt uses file.absent, but is referenced by salt-minion onchanges_in requisite as cmd: remove-macpackage-salt
  2. There is no group root on MacOS:
    ----------
          ID: permissions-minion-config
    Function: file.managed
        Name: /private/etc/salt/minion
      Result: False
     Comment: Group root is not available
     Started: 09:04:11.330316
    Duration: 2.895 ms
  3. The unless requisites on two MacOS-specific states always evaluate to false, causing a reinstall on every run on MacOS. This is caused by an incorrect shell command.

Describe the changes you're proposing

Pillar / config required to test the proposed changes

Debug log showing how the proposed changes work

Documentation checklist

Testing checklist

There is no test suite for MacOS.

Additional context

myii commented 2 years ago

Thanks for the PR, @lkubb. It would be great if we had MacOS testing running in the CI but we haven't got that far yet.

@noelmcloughlin Do you still have access to MacOS minions that you can test this on?

lkubb commented 1 year ago

Any updates on this PR? :) Disregarding the missing root group, the issues described here can be retraced by checking the code, which cannot work as intended in its current form.