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

    natemccurdy

    06/30/2022, 1:17 AM
    I’d try first with Implicit Subqueries: https://puppet.com/docs/puppetdb/7/api/query/v4/pql.html#implicit-subqueries
  • s

    Slackbot

    06/30/2022, 1:25 AM
    This message was deleted.
    n
    • 2
    • 1
  • n

    nwops

    06/30/2022, 1:26 AM
    Was able to run this on the puppet-debugger too.
  • s

    Slackbot

    06/30/2022, 1:03 PM
    This message was deleted.
    a
    b
    • 3
    • 6
  • s

    Slackbot

    06/30/2022, 1:21 PM
    This message was deleted.
    m
    c
    • 3
    • 23
  • m

    Moe

    06/30/2022, 1:24 PM
    Like say this for example:
    Copy code
    1 Test: <%= $variable %>
    2 Test: <%= $variable %>
    3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%>
    4 Test: <%= $variable %>
    5 Test: <%= $variable %>
  • m

    Moe

    06/30/2022, 1:26 PM
    Like say this for example:
    Copy code
    1 Test: <%= $variable %>
    2 Test: <%= $variable %>
    3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%>
    4 Test: <%= $variable %>
    5 Test: <%= $variable %>
    In this example it would result in the following final output: If
    $othervar
    has data in it:
    Copy code
    1 Test: data
    2 Test: data
    3 Test: otherdata
    4 Test: data
    5 Test: data
    and if it does not have data in it, so it is undef, the output would be:
    Copy code
    1 Test: data
    2 Test: dataTest: otherdata
    3 Test: data
    4 Test: data
    Hope this makes it a bit more clear.
  • v

    vchepkov

    06/30/2022, 1:28 PM
    Yes. Check an example, where it's handled properly
  • v

    vchepkov

    06/30/2022, 1:28 PM
    https://github.com/voxpupuli/puppet-chrony/blob/master/templates/chrony.conf.epp
  • v

    vchepkov

    06/30/2022, 1:28 PM
    https://github.com/voxpupuli/puppet-chrony/blob/master/templates/chrony.conf.epp
  • m

    Moe

    06/30/2022, 1:28 PM
    I have a thread open šŸ™‚
  • s

    Slackbot

    06/30/2022, 1:29 PM
    This message was deleted.
    šŸ˜† 3
    šŸ™ƒ 2
    y
    • 2
    • 1
  • m

    Moe

    06/30/2022, 1:37 PM
    Like say this for example:
    Copy code
    1 Test: <%= $variable %>
    2 Test: <%= $variable %>
    3 <% if $othervar =~ Undef { %><% } else { %><%= $othervar %><% } -%><% } %>
    4 Test: <%= $variable %>
    5 Test: <%= $variable %>
    In this example it would result in the following final output: If
    $othervar
    has data in it:
    Copy code
    1 Test: data
    2 Test: data
    3 Test: otherdata
    4 Test: data
    5 Test: data
    and if it does not have data in it, so it is undef, the output would be:
    Copy code
    1 Test: data
    2 Test: dataTest: otherdata
    3 Test: data
    4 Test: data
    Hope this makes it a bit more clear.
  • m

    Moe

    06/30/2022, 1:38 PM
    In an .epp template, can I have conditional newlines? I have this block of text and some variables in between some lines. Sometimes a value of a variable is set and sometimes it's not. Is it possible to add a new line in case of the variable being not there and if it is, not to? I have code I can share and am willing to write up a bigger example to showcase this issue but I thought I'd ask first. I posted an example in my thread šŸ‘‡
  • m

    Moe

    06/30/2022, 2:35 PM
    In an .epp template, can I have conditional newlines? I have this block of text and some variables in between some lines. Sometimes a value of a variable is set and sometimes it's not. Is it possible to add a new line in case of the variable being not there and if it is, not to? I have code I can share and am willing to write up a bigger example to showcase this issue but I thought I'd ask first. I posted an example in my thread šŸ‘‡ Solved āœ…
  • a

    AngeloMileto

    06/30/2022, 2:52 PM
    Having a difficult time getting offline agents working in PE 2019.8.11. I downloaded the .tar.gz file for el-7-x86_64 (latest version is 6.27.1) and dropped it into staging (doing this with el8 and fips as well but didn't test those). When I run sudo puppet agent --test on the master, I can see the pe_staging::deploy running and extracting the .tar.gz file from staging. Afterwards, in the public/current/el-7-x86_64/ there is a puppet-agent-6.27.1-1.el7.x86_64.rpm and a repodata directory. When I curl on a potential agent, returns the error "No package puppet-agent-6.27.1 available". If I manually create the pe_repo file and yum list available, it shows nothing. What am I missing?
  • s

    Slackbot

    06/30/2022, 2:57 PM
    This message was deleted.
    a
    v
    d
    • 4
    • 11
  • s

    sameer

    06/30/2022, 3:24 PM
    Hi members!!!!! any idea what problem is this? File "/usr/lib/nagios/plugins/check_x224", line 90 if l_setup_received <> l_expected_short and l_setup_received <> l_expected_long:
  • s

    Slackbot

    06/30/2022, 3:27 PM
    This message was deleted.
    s
    v
    b
    • 4
    • 11
  • a

    Allahshukur Ahmadzada

    06/30/2022, 3:33 PM
    ?
  • v

    vchepkov

    06/30/2022, 3:33 PM
    ditto, I didn't understand your line of code šŸ™‚
  • b

    bastelfreak

    06/30/2022, 3:39 PM
    there is at least a restart method https://github.com/puppetlabs/puppetlabs-docker/blob/main/lib/puppet/provider/docker_compose/ruby.rb#L98
  • b

    bastelfreak

    06/30/2022, 3:44 PM
    you can call it the correct python binary or adjust the shebang in the script
  • c

    CVQuesty

    06/30/2022, 4:00 PM
    https://forge.puppet.com/modules/maxlareo/docker_compose
  • c

    CVQuesty

    06/30/2022, 4:01 PM
    Does that help? My Docker-fu is rather limited
  • a

    Allahshukur Ahmadzada

    06/30/2022, 4:15 PM
    well did not tried that module, docker module looks qualitative , This is suprising for me that it does not have latest mode
  • s

    Slackbot

    06/30/2022, 4:15 PM
    This message was deleted.
    b
    • 2
    • 1
  • b

    binford2k

    06/30/2022, 6:32 PM
    Happy birthday @dev_el_ops++
  • d

    Dr Bunsen Honeydew

    06/30/2022, 6:32 PM
    dev_el_ops leveled up! (Karma: 3)
  • d

    Dr Bunsen Honeydew

    06/30/2022, 8:45 PM
    letsplay šŸ§‘ā€šŸ«PE Console is about to start up in #CFD8Z9A4T
1...878889...428Latest