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

    Dr Bunsen Honeydew

    03/16/2023, 11:36 PM
    See the
    puppetlabs-chocolatey
    module at https://forge.puppet.com/puppetlabs/chocolatey?src=slack&channel=puppet
  • s

    Slackbot

    03/17/2023, 12:10 PM
    This message was deleted.
    s
    b
    • 3
    • 2
  • s

    Slackbot

    03/17/2023, 2:05 PM
    This message was deleted.
    c
    • 2
    • 1
  • c

    CVQuesty

    03/17/2023, 2:10 PM
    do you have a systemd service refresh resource anywhere? Remember, in the DSL, you are not notifyng the service itself. You are notifying the Puppet resource that controls the service you wish to refresh.
  • v

    vchepkov

    03/17/2023, 2:17 PM
    It's not any different from other resources
    Copy code
    notify => Systemd::Unit_file['myservice.service'],
  • v

    vchepkov

    03/17/2023, 2:18 PM
    and a side note, try to avoid 'puppet://' notation
  • s

    Slackbot

    03/17/2023, 2:19 PM
    This message was deleted.
    ๐Ÿ‘ 1
    y
    v
    +3
    • 6
    • 22
  • v

    vchepkov

    03/17/2023, 2:19 PM
    more efficient
  • r

    Robert Waffen

    03/17/2023, 2:21 PM
    thanks. have to get used to it. and maybe a lot of readmes and sample code has to be refreshed ๐Ÿ˜„
  • v

    vchepkov

    03/17/2023, 2:21 PM
    yeah, that old times, same as
    ::
    ๐Ÿ™‚
  • v

    vchepkov

    03/17/2023, 2:21 PM
    in front of everything
  • s

    Slackbot

    03/17/2023, 2:22 PM
    This message was deleted.
    d
    • 2
    • 1
  • r

    Robert Waffen

    03/17/2023, 2:22 PM
    switched everything from :: to $facts a while ago, and now i learned ther is fact() which might also be preferable thonk
  • r

    Robert Waffen

    03/17/2023, 2:22 PM
    switched everything from :: to $facts a while ago, and now i learned there is fact() which might also be preferable thonk
  • s

    Slackbot

    03/17/2023, 2:22 PM
    This message was deleted.
    facepalm 1
    v
    • 2
    • 1
  • c

    CVQuesty

    03/17/2023, 2:22 PM
    @vchepkov there is nothing in the source attribute documentation about that
  • s

    Slackbot

    03/17/2023, 2:22 PM
    This message was deleted.
    v
    • 2
    • 2
  • c

    chadh

    03/17/2023, 2:23 PM
    another advantage of
    fact()
    is that it's easier to find all your fact references when the paths change again ๐Ÿ™‚
  • v

    vchepkov

    03/17/2023, 2:23 PM
    Copy code
    content  => file("${module_name}/systemd/myservice.service"),
  • c

    CVQuesty

    03/17/2023, 2:23 PM
    Ok, @PUPPETPEOPLE DO NOT show me ads as rollovers when Iโ€™m trying to read documentation. Just go ahead and delete that right the heck now.
    ๐Ÿ‘ 1
  • c

    chadh

    03/17/2023, 2:24 PM
    fwiw, we take the same stance here and only use the puppet fileserver in extremely limited cases (like one case where we use it to distribute a small binary blob)
  • c

    CVQuesty

    03/17/2023, 2:25 PM
    But itโ€™s offered as the FIRST thing you should use in the docs. Youโ€™re going to have a hard row to hoe on that one
  • d

    David Sandilands

    03/17/2023, 2:32 PM
    let me take this away for ecosystem to chase assuming its agreed by folk in Puppet we can get the docs and style guide updated
  • d

    David Sandilands

    03/17/2023, 2:32 PM
    let me take this away for ecosystem to chase assuming its agreed by folk in Puppet we can get the docs and style guide updated
  • r

    Robert Waffen

    03/17/2023, 2:37 PM
    back to the initial question: notifying a systemd::unit_file with active set to true, also reloads the service. it wasn'T clear because the docu didnt talked about it.
  • r

    Robert Waffen

    03/17/2023, 2:38 PM
    back to the initial question: notifying a systemd::unit_file with active set to true, also reloads the service. it wasn'T clear because the docu didnt talked about it.
  • v

    vchepkov

    03/17/2023, 2:41 PM
    yes, it will
  • r

    Robert Waffen

    03/17/2023, 2:47 PM
    if one has set enable also to true, it makes also every time a systemd-daemon-reload thonk
  • s

    Slackbot

    03/17/2023, 2:47 PM
    This message was deleted.
    ๐Ÿค” 1
    ๐Ÿ‘€ 1
    v
    c
    • 3
    • 3
  • d

    David Sandilands

    03/17/2023, 2:47 PM
    Just some feedback from Charlie regarding the file function usage. "In general, reducing the number of file serving requests that hit JRubies is a good thing: https://tickets.puppetlabs.com/browse/PE-35439 When Code Manager is enabled, PE does this already for the
    modules/
    mount via static catalogs. Pulling content into the catalogs via
    file()
    is something you have. to. be. very. careful. with. Because that content is going to end up pushed out to places like PuppetDB and also increases the overhead of parsing and handling the JSON blob. (edited) It may work great for someone that has a handfull of
    .pem
    files and then someone with multi-megabyte files tries it and blows their entire leg off."
1...329330331...428Latest