Comments (10)
changing let rec entry = hash (entry|simple|array)
to let rec entry = hash (simple|array)
will make it work correctly on ruby-load-path in puppetserver.conf but breaks with on ca.conf which has nested hashes so to say.
from puppet-puppetserver.
Would this solve setting puppet-admin/client-whitelist to an array, too? Currently, this doesn't work, too (and I am really bad at writing lenses...)
from puppet-puppetserver.
In order to fix #7 I just commited a big change that remaps the entire lens and types every entry.
Therefore, entries will now be typed as either @hash
or @array
, which should solve that issue, too. Let me know!
from puppet-puppetserver.
@mmckinst @poikilotherm can you confirm that releaes 2.0.0 fixes that issue?
from puppet-puppetserver.
Hi @raphink, I will check on wednesday and report back as I attended a training for tomorrow.
from puppet-puppetserver.
Thank you @poikilotherm
from puppet-puppetserver.
Hi @raphink ,
the lens still is not working correctly.
Test case 1:
puppetserver::config::puppetserver { 'puppetserver.conf/puppet-admin/client-whitelist':
value => [$::fqdn]
}
Should result in
client-whitelist: [puppetmaster.fqdn.tld]
But results in
client-whitelist:puppetmaster.fqdn.tld
which breaks puppetserver.
Test case 2:
puppetserver::config::puppetserver { 'puppetserver.conf/puppet-admin/client-whitelist':
value => [$::fqdn, 'localhost']
}
results in
client-whitelist:[puppetmaster.fqdn.tld,localhost]
which is not very nice (missing spaces for readability) but works ok.
The indentation is not working, too. It should look like:
puppet-admin: {
client-whitelist:[puppetmaster.fqdn.tld,localhost]
}
but it looks like
puppet-admin: {
client-whitelist:[puppetmaster.fqdn.tld,localhost]
}
from puppet-puppetserver.
@poikilotherm You need to add setting_type => array
to your puppetserver::config::puppetserver
resource.
from puppet-puppetserver.
Ups, I didn't see that in the docs. Adding the setting_type
solves everything! Great!
I would really appreciate if the indentation issue could be fixed, too.
Thanks anyway :-)
from puppet-puppetserver.
The indentation cannot be fixed currently, due to a limitation of recursive lenses in Augeas. I could set a default indentation, but then all entries would be indented, which would be worse than none.
from puppet-puppetserver.
Related Issues (20)
- Use stahnma/puppetlabs_yum and ploperations/puppetlabs_apt to handle Puppet repositories HOT 5
- Travis shows acceptance tests green but are not run HOT 1
- puppetserver_config/augeas provider rspec failures on travis
- Release 3.0.0 HOT 6
- Update metadata.json
- Release 2.2.0 HOT 3
- puppetserver_gem provider requires PATH to include path to puppetserver binary HOT 2
- $targetfile in puppetserver::config::bootstrap doesn't respect puppetserver 5.1.x HOT 5
- value parameter of defined type puppetserver::config::bootstrap does not seem to be used
- Add ability to configure JRUBY_JAR setting to avoid `undefined method 'keep_alive_timeout=' for #<Net::HTTP..."` errors
- Documentation on managing puppetserver configuration is inadequate
- The puppeterver class's facilities for managing config files are rigid and limited
- check debian support
- Failure while initializing puppetserver
- Ubuntu 18.04 package repo has moved from "main" to "puppet"
- Deprecate this module in favour of foreman/puppet HOT 13
- 3.0.1 tag has old keyserver for debian
- Puppet 6 should be supported HOT 2
- Puppetserver >= 6.5 does have issues with Augeas Trapperkeeper lens
- Fix 'title patterns that use procs are not supported' HOT 2
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-puppetserver.