Code Monkey home page Code Monkey logo

Comments (10)

mmckinst avatar mmckinst commented on August 19, 2024

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.

poikilotherm avatar poikilotherm commented on August 19, 2024

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.

raphink avatar raphink commented on August 19, 2024

@mmckinst @poikilotherm

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.

raphink avatar raphink commented on August 19, 2024

@mmckinst @poikilotherm can you confirm that releaes 2.0.0 fixes that issue?

from puppet-puppetserver.

poikilotherm avatar poikilotherm commented on August 19, 2024

Hi @raphink, I will check on wednesday and report back as I attended a training for tomorrow.

from puppet-puppetserver.

raphink avatar raphink commented on August 19, 2024

Thank you @poikilotherm

from puppet-puppetserver.

poikilotherm avatar poikilotherm commented on August 19, 2024

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.

raphink avatar raphink commented on August 19, 2024

@poikilotherm You need to add setting_type => array to your puppetserver::config::puppetserver resource.

from puppet-puppetserver.

poikilotherm avatar poikilotherm commented on August 19, 2024

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.

raphink avatar raphink commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.