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

    VoxBot

    06/23/2022, 11:09 AM
    I don't have to recompile world :P
  • v

    VoxBot

    06/23/2022, 11:09 AM
    (installing ruby does take a while tho)
  • v

    VoxBot

    06/23/2022, 11:10 AM
    # facter ipaddress_re0
  • v

    VoxBot

    06/23/2022, 11:10 AM
    <empty>
  • v

    VoxBot

    06/23/2022, 11:12 AM
    # facter networking.interfaces.re0.ip
  • v

    VoxBot

    06/23/2022, 11:12 AM
    192.168.23.254
  • v

    VoxBot

    06/23/2022, 11:12 AM
    so, uh, I guess you're right?
  • v

    VoxBot

    06/23/2022, 11:32 AM
    ok, I'll file a bug and use modern facts in our code
  • v

    VoxBot

    06/23/2022, 11:56 AM
    bleh, I was going to open the issue and then I got distracted: https://github.com/puppetlabs/facter/pull/2496
  • v

    VoxBot

    06/23/2022, 11:56 AM
    creating issues is hard :P
  • v

    VoxBot

    06/23/2022, 12:01 PM
    you should try fixing them :P
  • v

    VoxBot

    06/23/2022, 12:01 PM
    hey, the PR fixes an issue ;)
  • v

    VoxBot

    06/23/2022, 12:02 PM
    not the facter one! ;)
  • v

    VoxBot

    06/23/2022, 12:03 PM
    well, I filed https://tickets.puppetlabs.com/browse/FACT-3129 so now I can move on to the workaround
  • v

    VoxBot

    06/23/2022, 2:55 PM
    I'm working through the example of how to do a top level redirection of http to https in the nginx module, in the README.md their is a redirction example under the heading 'puppet class calling nginx::server with HTTPS FastCGI and redirection of http' - I'm only interested in the http->https redirection part, the process seems to be set location_cfg_append in the nginx::server class to do a rewrite of
  • v

    VoxBot

    06/23/2022, 2:55 PM
    http->https, seems straight forward, however, I can't see how to set location_cfg_append on only the http server, not the https server
  • v

    VoxBot

    06/23/2022, 2:55 PM
    the docs show how to set params for server and set location in either http/https/both - but I can't see how to use the location_cfg_append on only the http server
  • v

    VoxBot

    06/23/2022, 2:57 PM
    the code block (could be the wrong one) seems to just set it as part of the server class, which means it will append to both http / https
  • v

    VoxBot

    06/23/2022, 2:59 PM
    (I'm assuming I'm approaching it correctly using the location_cfg_append parameter)
  • v

    VoxBot

    06/23/2022, 3:01 PM
    just set ssl_redirect on the server https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/resource/server.pp#L109
  • v

    VoxBot

    06/23/2022, 3:01 PM
    both location.pp and server.pp seem to support location_cfg_append,
  • v

    VoxBot

    06/23/2022, 3:01 PM
    I totally missed that parmeter
  • v

    VoxBot

    06/23/2022, 3:01 PM
    so sorry, I was reading through the documentation rather than the individual parameters
  • b

    bastelfreak

    06/23/2022, 3:20 PM
    https://github.com/rubocop/rubocop/pull/8192
  • v

    VoxBot

    06/23/2022, 3:39 PM
    bastelfreak: that worked great, thank you, I'm sorry I missed that
  • v

    VoxBot

    06/23/2022, 3:43 PM
    bastelfreak: dedicated to you: https://github.com/theforeman/puppet-foreman_proxy/pull/764 ;)
  • v

    VoxBot

    06/23/2022, 3:45 PM
    ewoud: this is a nice update
  • v

    VoxBot

    06/23/2022, 3:46 PM
    took me a while to get to it, but finally getting rid of the legacy facts
  • v

    VoxBot

    06/23/2022, 3:46 PM
    blame a Facter 4 regression on FreeBSD :P
  • v

    VoxBot

    06/23/2022, 3:46 PM
    I suppose that's one way to force people
1...909192...648Latest