-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set systemd as default for Raspbian 12 #9170
Conversation
Thanks @jaevans! Could you rebase your PR on |
Can one of the admins verify this patch? |
74a2eb5
to
a911d1c
Compare
I rebased on |
Hi @jaevans could you do the following:
Then change the |
a911d1c
to
2dc127f
Compare
Hi @jaevans it seems your pull request contains a merge commit
The above commands assume |
d4c9652
to
3ce4097
Compare
Sorry for the delay, should be fixed now. |
What are the blockers for this PR? |
it "should be the default provider on raspbian12" do | ||
allow(Facter).to receive(:value).with(:osfamily).and_return(:debian) | ||
allow(Facter).to receive(:value).with(:operatingsystem).and_return(:raspbian) | ||
allow(Facter).to receive(:value).with(:operatingsystemmajrelease).and_return("12") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puppet 8 (main) uses structured facts so these stubs need to be updated. Something like:
- allow(Facter).to receive(:value).with(:osfamily).and_return(:debian)
- allow(Facter).to receive(:value).with(:operatingsystem).and_return(:raspbian)
- allow(Facter).to receive(:value).with(:operatingsystemmajrelease).and_return("12")
+ allow(Facter).to receive(:value).with(:os.family).and_return(:debian)
+ allow(Facter).to receive(:value).with(:os.name).and_return(:raspbian)
+ allow(Facter).to receive(:value).with(:os.release.major).and_return("12")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaevans will you take care or have you given up (for whatever reason)?
I've created a new PR in #9477 and updated the specs to stub facter correctly. You'll remain the original author for the commit. Thanks for your contribution! |
Fix for #9169. Needed for Raspberry Pis running bookworm.
https://perforce.atlassian.net/browse/PUP-11949