8 Commits

Author SHA1 Message Date
c3d62763c1 Add executable bits on sabayon.sh operatingsytem fact 2017-03-13 21:00:29 +00:00
Alexander "Ace" Olofsson
0bc87f0cbf Replace custom fact with executable fact
Should solve #4
2017-03-12 23:46:36 +01:00
c87ceb824b Add CircleCI badge 2016-11-12 18:44:20 +00:00
Ben Roberts
55da9601b0 Merge pull request #3 from ace13/patch-1
Update operatingsystem.rb
2016-11-01 21:39:40 +00:00
Alexander "Ace" Olofsson
c46c360eb0 Update operatingsystem.rb
Use additional confines instead of checks in setcode to detect the distribution ID
2016-10-31 09:31:41 +01:00
9d89654211 Document requirement for lsb-release 2016-10-24 15:19:57 +01:00
d8b9a1b4a5 Add circle.yml to run automated tests on github push 2016-10-19 21:35:30 +01:00
9f8cc61cf1 [blacksmith] Bump version to 0.3.1 2016-10-16 13:44:51 +01:00
5 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,7 @@
# Sabayon
[![CircleCI](https://circleci.com/gh/Sabayon/puppet-sabayon.svg?style=shield)](https://circleci.com/gh/Sabayon/puppet-sabayon)
#### Table of Contents
1. [Description](#description)
@@ -37,6 +39,10 @@ It adds support for:
This module overrides the default provider for `package` resources to
force use of `entropy`
### Prerequisites
* `sys-apps/lsb-release` is required for the operatingsystem fact to work
### Beginning with sabayon
The types and providers within this module can be used without any special

3
circle.yml Normal file
View File

@@ -0,0 +1,3 @@
test:
override:
- bundle exec rake test

5
facts.d/sabayon.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
if [ -f /etc/sabayon-release ]; then
echo "operatingsystem=Sabayon"
fi

View File

@@ -1,14 +0,0 @@
Facter.add(:operatingsystem) do
# Sabayon Linux is a variant of Gentoo so this resolution needs to come
# before the Gentoo resolution.
has_weight(100)
confine :kernel => :linux
setcode do
distid = Facter.value(:lsbdistid)
if distid == "Sabayon"
'Sabayon'
end
end
end

View File

@@ -1,6 +1,6 @@
{
"name": "optiz0r-sabayon",
"version": "0.3.0",
"version": "0.3.1",
"author": "Ben Roberts",
"license": "MIT",
"summary": "Extends Puppet with support for the Sabayon Linux distribution",