Comments (6)
Hi. Not sure what you're asking for. You can create a set in /etc/portage/sets with the file
built-in class of puppet, and you can emerge them using either exec
or portage::package
. Am I missing something here?
from puppet-portage.
I believe you are mistaken about using portage::package, it rejects them due to them as being in the wrong format.
testsrv ~ # puppet agent --test
err: Failed to apply catalog: Parameter name failed on Package_use[vim-set]: name must be a properly formatted atom, see portage(5) for more information at /etc/puppet/modules/test/manifests/packages.pp:29
portage/lib/puppet/util/portage.rb's valid_package function matches all names against a regex to check that they are in the format of 'category/package' so using the format of '@set' fails.
However changing this regex alone will solve the issue since after that the package name will be rejected by puppet's built in portage provider since it relies on eix lookups to check if a packages is installed.
From my point of view to achieve this either puppet's portage provider needs to be patched to support sets or we need to create a custom type/provider.
from puppet-portage.
Indeed I was mistaken, sorry for that. My opinion is:
- We should file a bug upstream about lack of
@set
format support ( @p8952 wanna handle that?) - We don't need a type/provider in this module for sets, since sets can be created with the file class, and can be installed normally (assuming 1 is fixed)
- Upstream portage provider shouldn't have extra checks for package format, portage itself has those checks and I don't see the benefit of adding more. It could just read the errors from portage and act accordingly
@adrienthebo opinions please?
from puppet-portage.
If possible it would be great to have this supported in the upstream provider, however if @puppetlabs would prefer not to include this functionality I have sent a Pull Request containing a type and provider to install, upgrade, and remove portage sets.
from puppet-portage.
With respect to input validation, the important detail is to make sure that errors are clearly reported. If portage can hand over the correct information to Puppet then that's perfect, and if not then the provider itself should do validation so that if the input is bad the user knows what went wrong, why, and how to fix it.
from puppet-portage.
we can continue the discussion in #70, closing as duplicate
from puppet-portage.
Related Issues (20)
- Implement type/provider for mirrorselect
- Each time I run puppet agent it re-emerges php HOT 4
- eselect no longer support --no-color (it should be --colour=no) HOT 3
- package_keywords and portage::package conflict on declaration
- Ability to install multiple versions of the same package
- Missing support for package.license
- package_env improvements
- Support for repos.conf
- permit multiple package_* definitions for same package
- Facter 3.0.1 Compatability? HOT 1
- package_keywords fails to parse package.keywords comment lines HOT 4
- Layman >=2.3.0
- Package is always rebuilt when flags change
- comment matching pattern HOT 1
- Anyone maintainig this? HOT 1
- Add possibilty to set keyword versions for module maintained packages HOT 2
- Package not rebuild after new flag addition HOT 3
- portage::package doesnt ensure @world presence
- Layman support breaks make.conf HOT 1
- Providers are overly restrictive and confine to operatingsystem rather than osfamily
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-portage.