https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    11/22/2024, 3:35 PM
    ewoud: looks like the augeas one can only manage host keys
  • v

    VoxBot

    11/22/2024, 3:36 PM
    ewoud: hmm... perhaps adding it there would be better, but then i need to write yet another type
  • v

    VoxBot

    11/22/2024, 3:36 PM
    and on top of augeas
  • v

    VoxBot

    11/22/2024, 3:36 PM
    and then i still need a type resource
  • v

    VoxBot

    11/22/2024, 3:36 PM
    in that case the autorequire stuff is equivalent for me
  • v

    VoxBot

    11/22/2024, 3:36 PM
    i'm starting to wonder if it's best just not to share that code at all
  • v

    VoxBot

    11/22/2024, 3:36 PM
    and go back to my cave
  • v

    VoxBot

    11/22/2024, 3:36 PM
    bastelfreak: yeah, it's hard to do... if you let the file be owned by the user, that doesn't work
  • v

    VoxBot

    11/22/2024, 3:37 PM
    i guess that's my objection with the ssh_authorized_key type, it favors that approach
  • v

    VoxBot

    11/22/2024, 3:37 PM
    anarcat: yes, I had some vague recollection it could manage SSH authorized keys too but can't find it now
  • v

    VoxBot

    11/22/2024, 3:37 PM
    I assumed they are owned by root or the ssh user
  • v

    VoxBot

    11/22/2024, 3:37 PM
    i also don't like how it breaks down the key in type/modulus/comment, you can't just pass around the entire line
  • v

    VoxBot

    11/22/2024, 3:38 PM
    wouldn't an EPP template be easier for your use case?
  • v

    VoxBot

    11/22/2024, 3:48 PM
    maaybe?
  • v

    VoxBot

    11/22/2024, 3:48 PM
    how would that work?
  • v

    VoxBot

    11/22/2024, 3:48 PM
    maybe that's what bastelfreak was talking about the other day about tapping into puppetdb
  • v

    VoxBot

    11/22/2024, 3:48 PM
    no, but that works as well
  • v

    VoxBot

    11/22/2024, 3:49 PM
    but something else: are you 100% sure that the authorized_keys file cannot be owned by root?
  • v

    VoxBot

    11/22/2024, 3:51 PM
    the internet says that works
  • v

    VoxBot

    11/22/2024, 3:51 PM
    i am 100% sure
  • v

    VoxBot

    11/22/2024, 3:51 PM
    (but I haven't tested it)
  • v

    VoxBot

    11/22/2024, 3:52 PM
    https://superuser.com/a/1788508 mhm
  • v

    VoxBot

    11/22/2024, 3:53 PM
    and that's besides the point, if the file is owned by the user, we fail
  • v

    VoxBot

    11/22/2024, 3:53 PM
    because the user can modify it
  • v

    VoxBot

    11/22/2024, 3:54 PM
    according to the internet, it can be owned by root
  • v

    VoxBot

    11/22/2024, 3:54 PM
    with 0600
  • v

    VoxBot

    11/22/2024, 3:54 PM
    oh
  • v

    VoxBot

    11/22/2024, 3:54 PM
    well it didn't work in my tests
  • v

    VoxBot

    11/22/2024, 3:54 PM
    let me reproduce, hold on
  • v

    VoxBot

    11/22/2024, 3:55 PM
    uh.
1...626627628...648Latest