Comments (7)
As far as I understand, you want to employ inheritance in a way such that the subtype on purpose does NOT provide a kind of functionality defined in the supertype's contract. That would be bad design, as it violates the Liskov principle.
However, if you want to run up that technical debt, note that most parts of the module will still work when you omit loading the defined class cups
and instead manage package installation and services manually.
from puppet-cups.
Let me add that, as explained in README.md
,
- this module strongly relies on the
ipptool
command line utility, which is not included in CUPS 1.4.8, but can be downloaded from www.cups.org. - it is vital that the file
/etc/lpoptions
is absent. This one of the tasks handled by the classcups
.
You could also use this nifty workaround
service { 'cups':
ensure => absent,
enable => false,
}
class { 'cups':
services => [], # Disable automatic service management
require => Service['cups'],
}
from puppet-cups.
Not loading the cups class leaves the service in an unmanaged state. My desire is to have a managed state of "disabled". I guess I view the contract as "This service is managed." The way in which it is managed specified far closer to the node in question.
from puppet-cups.
Does the "nifty workaround" above your last post help?
from puppet-cups.
The workaround above effectively requires me to maintain one module which enables cups and sets up my printers (thanks for v1.2.0 btw) and another which disables it. While it does provide a managed state, it also provides two possible places for the source of that managed state. That is more or less what I'm doing now, but that is the sort of thing I'm looking to get away from.
from puppet-cups.
The fundamental premise of this module is that you do want the CUPS daemon to be running and to manage queues. If that is not your intention, the module should not be including on that particular node. Everything you want to do on your kiosk nodes can be done in plain Puppet. Including this module on such a node can only get you in trouble.
I'm always happy to help and I'm committed to keeping the module fit and simple for all intended usage. Covering up for design flaws higher up in the stack usually conflicts with these goals.
from puppet-cups.
Keeping the module lean feels viable. I'll deploy another workaround.
from puppet-cups.
Related Issues (20)
- Module cannot be upgraded from 1.2.2 to 2.2.0 without first loading 2.0.x HOT 3
- /var/log/cups/error_log flooded with SSL errors HOT 4
- [Feature] Structured facts with printer capabilities HOT 4
- Add possibility to restrict queue usage based on IP addresses HOT 6
- Deprecation message prevents creation of queue HOT 4
- Could not prefetch cups_queue provider 'cups' on Ubuntu 18.04 HOT 14
- [Feature] Configurability for MaxJobs and PreserveJobHistory HOT 3
- Configuration for MaxSubscriptions (needed for > 100 clients)
- Depfu Error: Depfu is stuck and needs your help
- Depfu Error: Depfu is stuck and needs your help
- spec/acceptance/puppet/cups_issue_4766_spec.rb fails on centos7 HOT 2
- "Unable to connect" on slow restart (EL7) HOT 1
- Error on "purge_unmanaged_queues" with CUPS stopped HOT 2
- Depfu Error: Depfu is stuck and needs your help
- Depfu Error: Depfu is stuck and needs your help
- Please add an options hash
- Enhancement Request : need MaxJobsPerPrinter directive to be added in cupsd template file _directives.erb HOT 2
- AuthInfoRequired username,password setup HOT 2
- Ubuntu 20.04 - Could not prefetch cups_queue provider 'cups' HOT 4
- Failure to add IPP Everywhere queue HOT 4
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-cups.