Skip to content
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

Add facts for Raspbian 9 and 10; alter Rakefile to support Raspbian #136

Merged
merged 2 commits into from
Feb 28, 2020

Conversation

threepistons
Copy link
Contributor

@threepistons threepistons commented Nov 16, 2019

Add facts for Raspbian 9 and 10; alter Rakefile to support Raspbian when generating the table, fixes #135.

To make Raspbian facts, put Raspbian on a Pi and run as root apt install facter ; facter -j --show-legacy > raspbian-$(awk 'BEGIN { FS="." } { print $1 }' /etc/debian_version)-$(uname -m).facts. If you get invalid option: --show-legacy then miss that option out, it only seems to apply to later Facters.

In the repo root, run for file in facts/*/*-armv7l.facts; do cat $file | sed -e 's/armv7l/armv6l/' > $(echo $file | sed 's/armv7l/armv6l/'); done to make Arm 6 factsets from Arm 7 ones, switching 6 and 7 if you have a Arm 6 Pi.

The facts in this PR are for the Facter available in Raspbian. Armhf packages are provided by Puppetlabs, but we don't currently use them.

@coveralls
Copy link

coveralls commented Nov 16, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling da79f7e on threepistons:master into a98b764 on camptocamp:master.

@threepistons threepistons force-pushed the master branch 2 times, most recently from 0874859 to 2359d3b Compare November 17, 2019 17:54
@bastelfreak
Copy link
Member

Thanks for the PR @threepistons. Can you maybe document the steps you did in the README.md? Also we try to use foo as hostname and example.com as the domain name for the facts, you could update that with sed?

@bastelfreak
Copy link
Member

ping @threepistons :)

@rodjek rodjek merged commit daccf9c into voxpupuli:master Feb 28, 2020
@threepistons
Copy link
Contributor Author

Sorry, I didn't spot this. I'll make sure to use the correct network names when 11 comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raspbian support
4 participants