Add entropy_repo type/provider, with tests and docs

This commit is contained in:
2016-10-16 00:40:35 +01:00
parent 0c3db36c4d
commit 3a4c1c85ad
6 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
require 'puppet/property/boolean'
Puppet::Type.newtype(:entropy_repo) do
@desc = "Manages Entropy Repositories"
newparam(:name) do
desc "Name of the Entropy Repository"
end
newproperty(:repo_type, :readonly => true) do
desc "What type of repository this is (enman or entropy)"
end
newproperty(:enabled) do
desc "Whether the repository is enabled or not"
newvalues('true', 'false')
end
end
# vim: set ts=2 shiftwidth=2 expandtab :