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

    Michael Thomasson

    07/11/2022, 6:37 PM
    @greeno We have a PR #216 to fix a RHEL versioning issue where some versions have a nn:. Please review and merge when you get moment. Thank you very much.
  • r

    runlolarun

    07/11/2022, 6:48 PM
    message has been deleted
  • s

    Slackbot

    07/11/2022, 7:40 PM
    This message was deleted.
    t
    n
    +3
    • 6
    • 17
  • v

    vchepkov

    07/11/2022, 8:13 PM
    try
    Copy code
    class::param: "%{hiera('other_class::other_param')}"
  • r

    ramindk

    07/11/2022, 8:34 PM
    I'd be curious about the errors you're seeing. Have seen large, 100-200 internal module systems, go from 4->5 without too much trouble. I suspect you're running into internal types that have moved out of core and into modules. Example
    cronjob
    Fairly easy fix.
  • d

    Dr Bunsen Honeydew

    07/12/2022, 1:45 PM
    allthethings šŸ§‘ā€šŸ« Bolt is about to start up in #CFD8Z9A4T
  • s

    Slackbot

    07/12/2022, 2:00 PM
    This message was deleted.
    s
    r
    • 3
    • 38
  • d

    Dr Bunsen Honeydew

    07/12/2022, 2:45 PM
    kermit typing _🦊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in #CFD8Z9A4T
  • b

    Brian Schonecker

    07/12/2022, 3:27 PM
    I've been trying for about an hour now. Is there a way to use the fqdn_rand() function in a Hiera file? I need to run a cron job fqdn-randomly but I can't figure out the correct syntax. Something like this: (which I know is incorrect syntax): cron:hour "%fqdn_rand(59, $hostname)"
  • b

    Brian Schonecker

    07/12/2022, 3:28 PM
    I've been trying for about an hour now. Is there a way to use the fqdn_rand() function in a Hiera file? I need to run a cron job fqdn-randomly but I can't figure out the correct syntax. Something like this: (which I know is incorrect syntax): cron:hour "%fqdn_rand(59, $hostname)"
  • v

    vchepkov

    07/12/2022, 3:28 PM
    you would have to write a hiera backend to understand that function
  • v

    vchepkov

    07/12/2022, 3:29 PM
    why not do it in the class instead?
  • s

    Slackbot

    07/12/2022, 3:31 PM
    This message was deleted.
    n
    b
    h
    • 4
    • 4
  • b

    Brian Schonecker

    07/12/2022, 3:31 PM
    The AIDE module accepts the minute/hour for a cron job that runs. I'd like to just specify "random hour" in the aide::hour parameter, therefore not needing to modify any code. I'm using roles/profiles methodology so I could do the randomization there but I thought it would be cleanest if hiera would accept the fqdn_rand() function.
  • s

    Slackbot

    07/12/2022, 3:52 PM
    This message was deleted.
    r
    j
    • 3
    • 4
  • s

    Slackbot

    07/12/2022, 4:06 PM
    This message was deleted.
    n
    • 2
    • 1
  • s

    Slackbot

    07/12/2022, 4:09 PM
    This message was deleted.
    y
    n
    +2
    • 5
    • 15
  • n

    nwops

    07/12/2022, 4:09 PM
    by serving as a variable lookup mechanism. https://github.com/ribbybibby/terraform-provider-hiera
  • s

    smortex

    07/12/2022, 4:26 PM
    My conf is basically all in my `manifests/site.pp`:
    Copy code
    Apache::Vhost {
      port                         => 443,
      manage_docroot               => false,
      ssl                          => true,
      mdomain                      => true,
      use_servername_for_filenames => true,
      use_port_for_filenames       => true,
      userdir                      => 'disabled',
    }
  • s

    smortex

    07/12/2022, 4:29 PM
    Nice cool! If you have some "advanced" or "non default" things I would be happy you share: a lot of settings where only here in case somebody else implement the ACME protocol but back at that time there was no other options than letsencrypt which is the default one šŸ˜‰
  • s

    smortex

    07/12/2022, 4:40 PM
    Ugh… No… and PHP-like error reporting that is totaly useless… (
    unknown(line 0)
    )
  • s

    smortex

    07/12/2022, 4:46 PM
    Hehe, AFK too time to go to $WORK
  • j

    joeypiccola

    07/12/2022, 7:23 PM
    I have a
    file
    resource (e.g.
    file { '/etc/haproxy-files/':
    ) that is recursively copying over several files. I’d like to restart a service if one of those files changes (e.g.
    /etc/haproxy-files/allowed_list
    ). Because the
    file
    resource is recursive I can’t reference it like I normally would if it were an individual file (e.g.
    File["/etc/haproxy-files/allowed_list"] ~> Service["haproxy-blah"]
    ). Any ideas for how I would go about this? Thanks!
  • n

    natemccurdy

    07/12/2022, 7:32 PM
    If just one specific of those files change, or if any of those recursive files change?
  • n

    natemccurdy

    07/12/2022, 7:32 PM
    If just one specific of those files change, or if any of those recursive files change?
  • j

    joeypiccola

    07/12/2022, 7:41 PM
    just the one file @natemccurdy
  • n

    natemccurdy

    07/12/2022, 7:41 PM
    Your best best is to make a new
    file
    resource just for that one file, then setup your relationships with that.
  • n

    natemccurdy

    07/12/2022, 7:43 PM
    Copy code
    file { '/etc/big_dir':
      ensure  => directory,
      source  => 'puppet:///modules/foo/big_dir',
      recurse => true,
    }
    
    file { '/etc/big_dir/specific.txt':
      ensure => file,
      source => 'puppet:///modules/foo/big_dir/specific.txt',
      notify => Service['some-service'],
    }
  • n

    natemccurdy

    07/12/2022, 7:43 PM
    Copy code
    file { '/etc/big_dir':
      ensure  => directory,
      source  => 'puppet:///modules/foo/big_dir',
      recurse => true,
    }
    
    file { '/etc/big_dir/specific.txt':
      ensure => file,
      source => 'puppet:///modules/foo/big_dir/specific.txt',
      notify => Service['some-service'],
    }
  • j

    joeypiccola

    07/12/2022, 7:43 PM
    yea, i was thinking of making an explicit
    file
    resource for the
    allowed_list
    despite the redundancy
1...939495...428Latest